Merge pull request #721 from miguelaferreira/git-merge-scripts Add scripts to merge PRs and release fixes forwardAs it is now, additions to CloudStack need to go through a GitHub PR and, if accepted, merged to the Apache remote (not in GitHub). This means that merging a PR for CloudStack is a bit more involved than merging a normal GitHub PR. In addition to that, a PR that fixes something in an older release needs to be merged against a release branch, and then forward merged up to master (if applicable).
To help with these two kinds of merges, @remibergsma, @karuturi, @DaanHoogland and myself, have created two scripts (contributed in this PR). One script (**git-pr**) helps in merging a PR from GitHub to the Apache remote. The script will read the PR info using GitHub's API and will create a merge commit that contains the same commit message a normal GitHub PR merge commit, plus, as extra info, a list of commits that are being merged. The other script (**git-fwd-merge**) will create a specific merge commit message that indicates a forward merge, and lists the commits being merged. This Apache wiki [page](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61311655) describes how to use these two scripts, and points to an even more detailed [page](https://github.com/schubergphilis/cloudstack-git-tree-manipulation/wiki) that explains the merge scenarios step-by-step. By the way, beacause both scripts follow the naming convention for git tools, as long as they are in your "path" you can execute them as simply as "git pr" and "git fwd-merge". But be aware that, in order to use these scripts, you should make sure to remove any aliases that can cause a name clash. * pr/721: Add git merge scripts Signed-off-by: Remi Bergsma <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9229f359 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9229f359 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9229f359 Branch: refs/heads/master Commit: 9229f3594228b74964c22adbb102a6e3bba92433 Parents: 044e685 9211202 Author: Remi Bergsma <[email protected]> Authored: Thu Aug 20 07:32:10 2015 +0200 Committer: Remi Bergsma <[email protected]> Committed: Thu Aug 20 07:32:10 2015 +0200 ---------------------------------------------------------------------- tools/git/git-fwd-merge | 56 +++++++++++ tools/git/git-pr | 222 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 278 insertions(+) ----------------------------------------------------------------------
