fix(presubmit): uses proper branch instead of hard coded

Closes #3552
This commit is contained in:
Misko Hevery 2015-08-09 10:37:57 -07:00 committed by Miško Hevery
parent 4038150246
commit 96e34c1d36
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if [ "$TRAVIS_REPO_SLUG" = "angular/angular" ]; then
git rebase upstream/master
if [[ $TRAVIS_BRANCH == *"-pr-"* ]]; then
PR_NO=`echo presubmit-mhevery-pr-1234 | sed -e 's/^.*-pr-//'`
PR_NO=`echo $TRAVIS_BRANCH | sed -e 's/^.*-pr-//'`
if echo $PR_NO | egrep -q '^[0-9]+$'; then
echo "Adding Closes #$PR_NO"
git filter-branch -f --msg-filter "cat /dev/stdin && echo && echo Closes \#$PR_NO" HEAD~1..HEAD