mirror of
https://github.com/traefik/traefik.git
synced 2025-11-25 04:31:18 +01:00
refactor: fix for PR with master branch.
This commit is contained in:
parent
91b4b47f04
commit
72baf746f4
2
.github/cpr.sh
vendored
2
.github/cpr.sh
vendored
@ -23,4 +23,4 @@ branch=$(curl -s https://api.github.com/repos/containous/traefik/pulls/$pr | jq
|
|||||||
|
|
||||||
git remote add $remote git@github.com:$remote/traefik.git
|
git remote add $remote git@github.com:$remote/traefik.git
|
||||||
git fetch $remote $branch
|
git fetch $remote $branch
|
||||||
git checkout -t $remote/$branch
|
git checkout -t -b "$pr--$branch" $remote/$branch
|
||||||
2
.github/rmpr.sh
vendored
2
.github/rmpr.sh
vendored
@ -23,5 +23,5 @@ branch=$(curl -s https://api.github.com/repos/containous/traefik/pulls/$pr | jq
|
|||||||
|
|
||||||
# clean
|
# clean
|
||||||
git checkout $initial
|
git checkout $initial
|
||||||
git branch -D $branch
|
git branch -D "$pr--$branch"
|
||||||
git remote remove $remote
|
git remote remove $remote
|
||||||
2
.github/rpr.sh
vendored
2
.github/rpr.sh
vendored
@ -33,4 +33,4 @@ trap clean EXIT
|
|||||||
.github/cpr.sh $pr
|
.github/cpr.sh $pr
|
||||||
|
|
||||||
git rebase $base
|
git rebase $base
|
||||||
git push --force-with-lease $remote $branch
|
git push --force-with-lease $remote "$pr--$branch"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user