mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-22 15:50:29 +00:00
Initial source code modifications
This commit is contained in:
@@ -49,6 +49,15 @@ public class PullRequestTest extends AbstractGitHubApiTestBase {
|
||||
assertTrue(comments.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMergeCommitSHA() throws Exception {
|
||||
String name = rnd.next();
|
||||
GHRepository repo = gitHub.getMyself().getRepository("website");
|
||||
GHPullRequest p = repo.createPullRequest(name, "feature5", "master", "## test");
|
||||
GHRef ref = repo.getRef("pull/" + p.getNumber() + "/merge");
|
||||
assertTrue(ref.getObject().getSha() == p.getMergeCommitSha());
|
||||
}
|
||||
|
||||
@Test
|
||||
// Requires push access to the test repo to pass
|
||||
public void setLabels() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user