The Repo Merging API supports merging branches in a repository. This accomplishes essentially the same thing as merging one branch into another in a local repository and then pushing to GitHub. The benefit is that the merge is done on the server side and a local repository is not needed. This makes it more appropriate for automation and other tools where maintaining local repositories would be cumbersome and inefficient.
API: https://developer.github.com/v3/repos/merging/
Constructors
-
New
Merge(String, Create a new commit which has multiple parents (i.e. a merge commit)String)
Properties
- Base The name of the base branch that the head will be merged into (REQUIRED).
-
Commit
Message Gets or sets the commit message. -
Debugger
Display - Head The head to merge. This can be a branch name or a commit SHA1 (REQUIRED).