Skip to content

Commit 0f7d2ca

Browse files
committed
build: add more labels to review-pr script (angular#26493)
PR Close angular#26493
1 parent 81c9720 commit 0f7d2ca

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/github/review-pr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ async function main(args) {
4545
shell.echo(`Fetching pull request #${prNumber} with ${prNumber} SHA(s) into branch range: pr/${prNumber}_base..pr/${prNumber}_top`);
4646
shell.exec(`git fetch -f git@github.com:angular/angular.git pull/${prNumber}/head:pr/${prNumber}_top`);
4747

48+
shell.exec(`git branch -f pr/${prNumber}_bottom pr/${prNumber}_top~${prShaCount - 1}`);
4849
shell.exec(`git branch -f pr/${prNumber}_base pr/${prNumber}_top~${prShaCount}`);
4950

51+
// Create aliases
52+
shell.exec(`git branch -f pr/TOP pr/${prNumber}_top`);
53+
shell.exec(`git branch -f pr/BASE pr/${prNumber}_base`);
54+
shell.exec(`git branch -f pr/BOTTOM pr/${prNumber}_bottom`);
55+
5056
shell.echo(`======================================================================================`);
5157
shell.exec(`git log --oneline --color pr/${prNumber}_base..pr/${prNumber}_top`);
5258
shell.echo(`======================================================================================`);

0 commit comments

Comments
 (0)