Assumptions:
- You have
hub
(https://github.com/github/hub) installed - You have your own fork of Slim as
origin
and have added slimphp/slim as a remote calledupstream
Process:
-
Update:
$ git checkout 4.x && git pull upstream 4.x $ git checkout 3.x && git pull upstream 3.x
-
Grab PR:
$ hub checkout https://github.com/slimphp/Slim/pull/XXXX
Review and test it!
-
If PR targets 3.x, merge to 3.x and 4.x:
$ git checkout 3.x $ git merge --no-ff -
Add
Closes #XXXX
to the commit message$ git checkout - $ git checkout 4.x $ git merge --no-ff -
Add
Forward port #XXXX
to the commit message -
If PR targets 4.x only:
$ git checkout 4.x $ git merge --no-ff -
Add
Closes #XXXX
to the commit message -
Push:
$ git push upstream 3.x:3.x && git push upstream 4.x:4.x
-
Delete the branch:
$ git branch -d {branch name}
-
Go to the PR on GitHub and assign to the lowest numbered milestone that you can.