diff --git a/scripts/github/review-pr b/scripts/github/review-pr index d8883d0381..9e9ff8ba96 100755 --- a/scripts/github/review-pr +++ b/scripts/github/review-pr @@ -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.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}`); + // 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.exec(`git log --oneline --color pr/${prNumber}_base..pr/${prNumber}_top`); shell.echo(`======================================================================================`);