mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
The parent commit appears to be totally untested.
The placement of the method makes no sense, and the API route is wrong. The parameter is missing, and the expected response type is wrong.
This commit is contained in:
@@ -205,4 +205,16 @@ public class GHPullRequest extends GHIssue {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge this pull request.
|
||||
*
|
||||
* The equivalent of the big green "Merge pull request" button.
|
||||
*
|
||||
* @param msg
|
||||
* Commit message. If null, the default one will be used.
|
||||
*/
|
||||
public void merge(String msg) throws IOException {
|
||||
new Requester(root).method("PUT").with("commit_message",msg).to(getApiRoute()+"/merge");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user