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:
Kohsuke Kawaguchi
2014-03-28 09:40:55 -07:00
parent 37c58bffba
commit 21a54e2333
2 changed files with 12 additions and 11 deletions

View File

@@ -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");
}
}