build: add more labels to review-pr script (#26493)

PR Close #26493
This commit is contained in:
Miško Hevery 2018-10-16 14:29:41 -07:00
parent 81c9720acb
commit 0f7d2ca7a8
1 changed files with 6 additions and 0 deletions

View File

@ -45,8 +45,14 @@ async function main(args) {
shell.echo(`Fetching pull request #${prNumber} with ${prNumber} SHA(s) into branch range: pr/${prNumber}_base..pr/${prNumber}_top`); shell.echo(`Fetching pull request #${prNumber} with ${prNumber} SHA(s) into branch range: pr/${prNumber}_base..pr/${prNumber}_top`);
shell.exec(`git fetch -f git@github.com:angular/angular.git pull/${prNumber}/head:pr/${prNumber}_top`); shell.exec(`git fetch -f git@github.com:angular/angular.git pull/${prNumber}/head:pr/${prNumber}_top`);
shell.exec(`git branch -f pr/${prNumber}_bottom pr/${prNumber}_top~${prShaCount - 1}`);
shell.exec(`git branch -f pr/${prNumber}_base pr/${prNumber}_top~${prShaCount}`); shell.exec(`git branch -f pr/${prNumber}_base pr/${prNumber}_top~${prShaCount}`);
// Create aliases
shell.exec(`git branch -f pr/TOP pr/${prNumber}_top`);
shell.exec(`git branch -f pr/BASE pr/${prNumber}_base`);
shell.exec(`git branch -f pr/BOTTOM pr/${prNumber}_bottom`);
shell.echo(`======================================================================================`); shell.echo(`======================================================================================`);
shell.exec(`git log --oneline --color pr/${prNumber}_base..pr/${prNumber}_top`); shell.exec(`git log --oneline --color pr/${prNumber}_base..pr/${prNumber}_top`);
shell.echo(`======================================================================================`); shell.echo(`======================================================================================`);