diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 0000000000..0043ce7fe7 --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,20 @@ +name: Java CI Build and Test + +on: [push, pull_request] + + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Maven Download all dependencies + run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.1:go-offline + - name: Maven Build + run: mvn -B package --file pom.xml -Dtest=CommitTest,GistTest,PullRequestTest,UserTest,WireMockStatusReporterTest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..0de9d96e70 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,62 @@ +# Contributing + +## Using WireMock and Snapshots + +This project has started converting to using WireMock to stub out http responses instead of use live data. +This change will allow tests to run in a CI environment without needing to touch github.com. +The tests will instead serve previously recorded responses from local data files. + +### Running WireMock tests + +Example: + +`mvn install -Dtest=WireMockStatusReporterTest` + +This the default behavior. + + +### Setting up credential + +1. Create an OAuth token on github.com +2. Set the GITHUB_OAUTH environment variable to the value of that token +3. Set the system property `test.github.useProxy` (usually like "-Dtest.github.useProxy" as a Java VM option) + + `mvn install -Dtest.github.useProxy -Dtest=WireMockStatusReporterTest` + +4. The above should report no test failures and include the following console output: + + `WireMockStatusReporterTest: GitHub proxying and user auth correctly configured for user login: ` + +Whenever you run tests with `-Dtest.github.useProxy`, they will try to get data from local files but will fallback to proxying to github if not found. + + +### Writing a new test + +Once you have credentials setup, you add new test classes and test methods as you would normally. +Keep `useProxy` enabled and iterate on your tests as needed. Remember, while proxying your tests are interacting with GitHub - you will need to clean up your state between runs. + +When you are ready to create a snapshot of your test data, +run your test with `test.github.takeSnapshot` ("-Dtest.github.takeSnapshot" as a Java VM option). For example: + + `mvn install -Dtest.github.takeSnapshot -Dtest=YourTestClassName` + +The above command would create snapshot WireMock data files under the path `src/test/resources/org/kohsuhke/github/YourTestClassName/wiremock`. +Each method would get a separate director that would hold the data files for that test method. + +Add all files including the generated data to your commit and submit a PR. + +### Modifying existing tests + +When modifying existing tests, you can change the stubbed WireMock data files by hand or you can try generating a new snapshot. + +#### Manual editing of data (minor changes only) + +If you know what data will change, it is sometimes simplest to make any required changes to the data files manually. +This can be easier if the changes are minor or when you development environment is not setup to to take updated snapshots. + +#### Generating a new snapshot + +For more most changes, it is recommended to take a new snapshot when updating tests. +Delete the wiremock data files for the test method you will be modifying. +For more significant changes, you can even delete the WireMock files for an entire test class. +Then follow the same as when writing a new test: run with proxy enabled to debug, take a new snapshot when done, commit everything, and submit the PR. diff --git a/README b/README deleted file mode 100644 index 6fb589b09a..0000000000 --- a/README +++ /dev/null @@ -1,3 +0,0 @@ -Java API for GitHub - -See http://github-api.kohsuke.org/ for more details diff --git a/README.md b/README.md new file mode 100644 index 0000000000..e3f7a64105 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +Java API for GitHub + +See https://github-api.kohsuke.org/ for more details diff --git a/pom.xml b/pom.xml index 15c85ed319..8b69185653 100644 --- a/pom.xml +++ b/pom.xml @@ -3,19 +3,20 @@ org.kohsuke pom - 20 + 21 + github-api 1.96-SNAPSHOT GitHub API for Java - http://github-api.kohsuke.org/ + https://github-api.kohsuke.org/ GitHub API for Java scm:git:git@github.com/kohsuke/${project.artifactId}.git scm:git:ssh://git@github.com/kohsuke/${project.artifactId}.git - http://${project.artifactId}.kohsuke.org/ + https://${project.artifactId}.kohsuke.org/ HEAD @@ -28,12 +29,23 @@ UTF-8 - 3.0.2 - true + 3.1.11 + 3.1.12 + true + 2.1 + + maven-compiler-plugin + 3.8.1 + + 7 + 7 + + + maven-surefire-plugin 2.22.1 @@ -75,22 +87,41 @@ - org.codehaus.mojo - findbugs-maven-plugin - ${findbugs-maven-plugin.version} + com.github.spotbugs + spotbugs-maven-plugin + ${spotbugs-maven-plugin.version} true - ${findbugs-maven-plugin.failOnError} + ${spotbugs-maven-plugin.failOnError} - run-findbugs + run-spotbugs verify check + + + + com.github.spotbugs + spotbugs + ${spotbugs.version} + + + + + + org.codehaus.gmaven + gmaven-plugin + + + + + + @@ -106,22 +137,35 @@ commons-codec 1.7 + + org.hamcrest + hamcrest + ${hamcrest.version} + test + + + + org.hamcrest + hamcrest-core + ${hamcrest.version} + test + + + org.hamcrest + hamcrest-library + ${hamcrest.version} + test + junit junit 4.12 test - - org.hamcrest - hamcrest-all - 1.3 - test - com.fasterxml.jackson.core jackson-databind - 2.9.2 + 2.9.9.3 commons-io @@ -171,22 +215,28 @@ test - com.google.code.findbugs - annotations - 3.0.1 - provided + com.github.spotbugs + spotbugs-annotations + ${spotbugs.version} + true + + + com.github.tomakehurst + wiremock-jre8-standalone + 2.24.1 + test repo.jenkins-ci.org - http://repo.jenkins-ci.org/public/ + https://repo.jenkins-ci.org/public/ repo.jenkins-ci.org - http://repo.jenkins-ci.org/public/ + https://repo.jenkins-ci.org/public/ @@ -202,7 +252,7 @@ The MIT license - http://www.opensource.org/licenses/mit-license.php + https://www.opensource.org/licenses/mit-license.php repo diff --git a/src/main/java/org/kohsuke/github/GHDeployKey.java b/src/main/java/org/kohsuke/github/GHDeployKey.java index 04acda8022..f5d0f9de6d 100644 --- a/src/main/java/org/kohsuke/github/GHDeployKey.java +++ b/src/main/java/org/kohsuke/github/GHDeployKey.java @@ -8,10 +8,10 @@ public class GHDeployKey { protected String url, key, title; protected boolean verified; - protected int id; + protected long id; private GHRepository owner; - public int getId() { + public long getId() { return id; } diff --git a/src/main/java/org/kohsuke/github/GHEventInfo.java b/src/main/java/org/kohsuke/github/GHEventInfo.java index e875f2df59..ca7e3d4f04 100644 --- a/src/main/java/org/kohsuke/github/GHEventInfo.java +++ b/src/main/java/org/kohsuke/github/GHEventInfo.java @@ -34,7 +34,7 @@ public class GHEventInfo { "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" }, justification = "JSON API") public static class GHEventRepository { @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now") - private int id; + private long id; @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "We don't provide it in API now") private String url; // repository API URL private String name; // owner/repo diff --git a/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java index 141cf4d681..74bae03e2a 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java @@ -20,6 +20,9 @@ public GHPullRequestQueryBuilder state(GHIssueState state) { } public GHPullRequestQueryBuilder head(String head) { + if (head != null && !head.contains(":")) { + head = repo.getOwnerName() + ":" + head; + } req.with("head",head); return this; } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReview.java b/src/main/java/org/kohsuke/github/GHPullRequestReview.java index 45b6c044d9..e5b025e5e3 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReview.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReview.java @@ -25,6 +25,7 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import java.util.Date; import javax.annotation.CheckForNull; import java.io.IOException; import java.net.URL; @@ -43,6 +44,7 @@ public class GHPullRequestReview extends GHObject { private GHUser user; private String commit_id; private GHPullRequestReviewState state; + private String submitted_at; /*package*/ GHPullRequestReview wrapUp(GHPullRequest owner) { this.owner = owner; @@ -88,6 +90,21 @@ protected String getApiRoute() { return owner.getApiRoute()+"/reviews/"+id; } + /** + * When was this resource created? + */ + public Date getSubmittedAt() throws IOException { + return GitHub.parseDate(submitted_at); + } + + /** + * Since this method does not exist, we forward this value. + */ + @Override + public Date getCreatedAt() throws IOException { + return getSubmittedAt(); + } + /** * @deprecated * Former preview method that changed when it got public. Left here for backward compatibility. diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 8b1e2b5928..49e073e096 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -762,10 +762,36 @@ public GHPullRequestQueryBuilder queryPullRequests() { * of a pull request. */ public GHPullRequest createPullRequest(String title, String head, String base, String body) throws IOException { + return createPullRequest(title, head, base, body, true); + } + + /** + * Creates a new pull request. Maintainer's permissions aware. + * + * @param title + * Required. The title of the pull request. + * @param head + * Required. The name of the branch where your changes are implemented. + * For cross-repository pull requests in the same network, + * namespace head with a user like this: username:branch. + * @param base + * Required. The name of the branch you want your changes pulled into. + * This should be an existing branch on the current repository. + * @param body + * The contents of the pull request. This is the markdown description + * of a pull request. + * @param maintainerCanModify + * Indicates whether maintainers can modify the pull request. + */ + public GHPullRequest createPullRequest(String title, String head, String base, String body, + boolean maintainerCanModify) throws IOException { return new Requester(root).with("title",title) .with("head",head) .with("base",base) - .with("body",body).to(getApiTailUrl("pulls"),GHPullRequest.class).wrapUp(this); + .with("body",body) + .with("maintainer_can_modify", maintainerCanModify) + .to(getApiTailUrl("pulls"),GHPullRequest.class) + .wrapUp(this); } /** diff --git a/src/main/java/org/kohsuke/github/GHTeam.java b/src/main/java/org/kohsuke/github/GHTeam.java index bccec4b5ed..d18ba0d33a 100644 --- a/src/main/java/org/kohsuke/github/GHTeam.java +++ b/src/main/java/org/kohsuke/github/GHTeam.java @@ -140,7 +140,7 @@ public void add(GHUser u) throws IOException { */ public void add(GHUser user, Role role) throws IOException { org.root.retrieve().method("PUT") - .with("role", role.name()) + .with("role", role) .to(api("/memberships/" + user.getLogin()), null); } diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index d5d0a2be33..521dc96835 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -452,7 +452,6 @@ public PagedIterable listOrganizations(final String since) { return new PagedIterable() { @Override public PagedIterator _iterator(int pageSize) { - System.out.println("page size: " + pageSize); return new PagedIterator(retrieve().with("since",since) .asIterator("/organizations", GHOrganization[].class, pageSize)) { @Override @@ -474,6 +473,14 @@ public GHRepository getRepository(String name) throws IOException { String[] tokens = name.split("/"); return retrieve().to("/repos/" + tokens[0] + '/' + tokens[1], GHRepository.class).wrap(this); } + + /** + * Gets the repository object from its ID + */ + public GHRepository getRepositoryById(String id) throws IOException { + return retrieve().to("/repositories/" + id, GHRepository.class).wrap(this); + } + /** * Returns a list of popular open source licenses * @@ -578,6 +585,13 @@ public Map> getMyTeams() throws IOException { return allMyTeams; } + /** + * Gets a sigle team by ID. + */ + public GHTeam getTeam(int id) throws IOException { + return retrieve().to("/teams/" + id, GHTeam.class).wrapUp(this); + } + /** * Public events visible to you. Equivalent of what's displayed on https://github.com/ */ @@ -694,7 +708,7 @@ public GHAuthorization resetAuth(@Nonnull String clientId, @Nonnull String acces /** * Ensures that the credential is valid. */ - public boolean isCredentialValid() throws IOException { + public boolean isCredentialValid() { try { retrieve().to("/user", GHUser.class); return true; diff --git a/src/main/java/org/kohsuke/github/GitHubBuilder.java b/src/main/java/org/kohsuke/github/GitHubBuilder.java index e54359892c..56a784d7ff 100644 --- a/src/main/java/org/kohsuke/github/GitHubBuilder.java +++ b/src/main/java/org/kohsuke/github/GitHubBuilder.java @@ -126,7 +126,7 @@ public static GitHubBuilder fromEnvironment() throws IOException { } return fromProperties(props); } - + public static GitHubBuilder fromPropertyFile() throws IOException { File homeDir = new File(System.getProperty("user.home")); File propertyFile = new File(homeDir, ".github"); diff --git a/src/main/java/org/kohsuke/github/Requester.java b/src/main/java/org/kohsuke/github/Requester.java index 4670e311e5..3c0e95ecdf 100644 --- a/src/main/java/org/kohsuke/github/Requester.java +++ b/src/main/java/org/kohsuke/github/Requester.java @@ -526,7 +526,7 @@ private void fetch() { } } } catch (IOException e) { - throw new GHException("Failed to retrieve "+url); + throw new GHException("Failed to retrieve " + url, e); } } diff --git a/src/test/java/org/kohsuke/github/AbstractGitHubApiTestBase.java b/src/test/java/org/kohsuke/github/AbstractGitHubApiTestBase.java index a7afb38fd7..f246838de6 100644 --- a/src/test/java/org/kohsuke/github/AbstractGitHubApiTestBase.java +++ b/src/test/java/org/kohsuke/github/AbstractGitHubApiTestBase.java @@ -18,6 +18,7 @@ public abstract class AbstractGitHubApiTestBase extends Assert { protected GitHub gitHub; + @Before public void setUp() throws Exception { File f = new File(System.getProperty("user.home"), ".github.kohsuke2"); diff --git a/src/test/java/org/kohsuke/github/AbstractGitHubApiWireMockTest.java b/src/test/java/org/kohsuke/github/AbstractGitHubApiWireMockTest.java new file mode 100644 index 0000000000..90739071d9 --- /dev/null +++ b/src/test/java/org/kohsuke/github/AbstractGitHubApiWireMockTest.java @@ -0,0 +1,107 @@ +package org.kohsuke.github; + +import com.github.tomakehurst.wiremock.common.FileSource; +import com.github.tomakehurst.wiremock.core.WireMockConfiguration; +import com.github.tomakehurst.wiremock.extension.Parameters; +import com.github.tomakehurst.wiremock.extension.ResponseTransformer; +import com.github.tomakehurst.wiremock.http.Request; +import com.github.tomakehurst.wiremock.http.Response; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Rule; +import org.kohsuke.github.junit.WireMockRule; + +import java.util.Properties; + +import static com.github.tomakehurst.wiremock.client.WireMock.*; + +/** + * @author Kohsuke Kawaguchi + */ +public abstract class AbstractGitHubApiWireMockTest extends Assert { + + // By default the wiremock tests will, run without proxy or taking a snapshot. + // The tests will use only the stubbed data and will fail if requests are made for missing data. + // You can use the proxy without taking a snapshot while writing and debugging tests. + // You cannot take a snapshot without proxying. + protected final static boolean takeSnapshot = System.getProperty("test.github.takeSnapshot", "false") != "false"; + protected final static boolean useProxy = takeSnapshot || System.getProperty("test.github.useProxy", "false") != "false"; + + public final static String STUBBED_USER_LOGIN = "placeholder-user"; + public final static String STUBBED_USER_PASSWORD = "placeholder-password"; + + protected GitHub gitHub; + private final String baseFilesClassPath = this.getClass().getName().replace('.', '/'); + protected final String baseRecordPath = "src/test/resources/" + baseFilesClassPath + "/wiremock"; + + + + @Rule + public WireMockRule githubApi = new WireMockRule(WireMockConfiguration.options() + .dynamicPort() + .usingFilesUnderDirectory(baseRecordPath) + .extensions( + new ResponseTransformer() { + @Override + public Response transform(Request request, Response response, FileSource files, + Parameters parameters) { + if ("application/json" + .equals(response.getHeaders().getContentTypeHeader().mimeTypePart()) + && !response.getHeaders().getHeader("Content-Encoding").containsValue("gzip")) { + return Response.Builder.like(response) + .but() + .body(response.getBodyAsString() + .replace("https://api.github.com/", + "http://localhost:" + githubApi.port() + "/") + ) + .build(); + } + return response; + } + + @Override + public String getName() { + return "github-api-url-rewrite"; + } + }) + ); + + @Before + public void wireMockSetup() throws Exception { + + GitHubBuilder builder = GitHubBuilder.fromEnvironment() + .withEndpoint("http://localhost:" + githubApi.port()) + .withRateLimitHandler(RateLimitHandler.FAIL); + + + if(useProxy) { + githubApi.stubFor( + proxyAllTo("https://api.github.com/") + .atPriority(100) + ); + } else { + // This sets the user and password to a placeholder for wiremock testing + // This makes the tests believe they are running with permissions + // The recorded stubs will behave like they running with permissions + builder.withPassword(STUBBED_USER_LOGIN, STUBBED_USER_PASSWORD); + + // Just to be super clear + githubApi.stubFor( + any(urlPathMatching(".*")) + .willReturn(status(500).withBody("Stubbed data not found. Set test.github.use-proxy to have WireMock proxy to github")) + .atPriority(100)); + } + + gitHub = builder.build(); + } + + @After + public void snapshotRequests() { + if (takeSnapshot) { + githubApi.snapshotRecord(recordSpec() + .forTarget("https://api.github.com") + .extractTextBodiesOver(255)); + } + } +} diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index 807e8ca7c6..01ee64f149 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -245,6 +245,17 @@ private boolean shouldBelongToTeam(String organizationName, String teamName) thr assertNotNull(team); return team.hasMember(gitHub.getMyself()); } + + @Test + public void testShouldFetchTeam() throws Exception { + GHOrganization j = gitHub.getOrganization("github-api-test-org"); + GHTeam teamByName = j.getTeams().get("Core Developers"); + + GHTeam teamById = gitHub.getTeam(teamByName.getId()); + assertNotNull(teamById); + + assertEquals(teamByName, teamById); + } @Test public void testFetchPullRequest() throws Exception { diff --git a/src/test/java/org/kohsuke/github/CommitTest.java b/src/test/java/org/kohsuke/github/CommitTest.java index 8e4edb1fed..4c28bd83f7 100644 --- a/src/test/java/org/kohsuke/github/CommitTest.java +++ b/src/test/java/org/kohsuke/github/CommitTest.java @@ -8,11 +8,11 @@ /** * @author Kohsuke Kawaguchi */ -public class CommitTest extends AbstractGitHubApiTestBase { +public class CommitTest extends AbstractGitHubApiWireMockTest { @Test // issue 152 public void lastStatus() throws IOException { GHTag t = gitHub.getRepository("stapler/stapler").listTags().iterator().next(); - t.getCommit().getLastStatus(); + assertNotNull(t.getCommit().getLastStatus()); } @Test // issue 230 diff --git a/src/test/java/org/kohsuke/github/GistTest.java b/src/test/java/org/kohsuke/github/GistTest.java index df3baf8eeb..d46f071290 100644 --- a/src/test/java/org/kohsuke/github/GistTest.java +++ b/src/test/java/org/kohsuke/github/GistTest.java @@ -1,11 +1,17 @@ package org.kohsuke.github; +import com.github.tomakehurst.wiremock.stubbing.Scenario; import org.junit.Test; +import static com.github.tomakehurst.wiremock.client.WireMock.*; +import static org.hamcrest.Matchers.notNullValue; + +import static org.hamcrest.core.Is.is; + /** * @author Kohsuke Kawaguchi */ -public class GistTest extends AbstractGitHubApiTestBase { +public class GistTest extends AbstractGitHubApiWireMockTest { /** * CRUD operation. */ @@ -18,9 +24,9 @@ public void lifecycleTest() throws Exception { .file("def.txt","def") .create(); - assertNotNull(gist.getCreatedAt()); - assertNotNull(gist.getUpdatedAt()); + assertThat(gist.getCreatedAt(), is(notNullValue())); + assertNotNull(gist.getUpdatedAt()); assertNotNull(gist.getCommentsUrl()); assertNotNull(gist.getCommitsUrl()); assertNotNull(gist.getGitPullUrl()); @@ -35,8 +41,10 @@ public void starTest() throws Exception { GHGist gist = gitHub.getGist("9903708"); assertEquals("rtyler",gist.getOwner().getLogin()); + gist.star(); assertTrue(gist.isStarred()); + gist.unstar(); assertFalse(gist.isStarred()); @@ -65,7 +73,7 @@ public void gistFile() throws Exception { assertEquals(1,gist.getFiles().size()); GHGistFile f = gist.getFile("keybase.md"); - assertEquals("text/plain", f.getType()); + assertEquals("text/markdown", f.getType()); assertEquals("Markdown", f.getLanguage()); assertTrue(f.getContent().contains("### Keybase proof")); assertNotNull(f.getContent()); diff --git a/src/test/java/org/kohsuke/github/PullRequestTest.java b/src/test/java/org/kohsuke/github/PullRequestTest.java index ceb741bd34..7bd0f9f030 100644 --- a/src/test/java/org/kohsuke/github/PullRequestTest.java +++ b/src/test/java/org/kohsuke/github/PullRequestTest.java @@ -1,6 +1,7 @@ package org.kohsuke.github; import org.junit.After; +import org.junit.Before; import org.junit.Test; import java.io.IOException; @@ -12,29 +13,42 @@ /** * @author Kohsuke Kawaguchi */ -public class PullRequestTest extends AbstractGitHubApiTestBase { +public class PullRequestTest extends AbstractGitHubApiWireMockTest { + @Test public void createPullRequest() throws Exception { - String name = rnd.next(); - GHPullRequest p = getRepository().createPullRequest(name, "stable", "master", "## test"); + String name = "createPullRequest"; + GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test"); System.out.println(p.getUrl()); assertEquals(name, p.getTitle()); } @Test public void createPullRequestComment() throws Exception { - String name = rnd.next(); - GHPullRequest p = getRepository().createPullRequest(name, "stable", "master", "## test"); + String name = "createPullRequestComment"; + GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test"); p.comment("Some comment"); } + @Test + public void closePullRequest() throws Exception { + String name = "closePullRequest"; + GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test"); + System.out.println(p.getUrl()); + assertEquals(name, p.getTitle()); + assertEquals(GHIssueState.OPEN, getRepository().getPullRequest(p.getNumber()).getState()); + p.close(); + assertEquals(GHIssueState.CLOSED, getRepository().getPullRequest(p.getNumber()).getState()); + } + + @Test - public void testPullRequestReviews() throws Exception { - String name = rnd.next(); - GHPullRequest p = getRepository().createPullRequest(name, "stable", "master", "## test"); + public void pullRequestReviews() throws Exception { + String name = "testPullRequestReviews"; + GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test"); GHPullRequestReview draftReview = p.createReview() .body("Some draft review") - .comment("Some niggle", "changelog.html", 1) + .comment("Some niggle", "README.md", 1) .create(); assertThat(draftReview.getState(), is(GHPullRequestReviewState.PENDING)); assertThat(draftReview.getBody(), is("Some draft review")); @@ -52,18 +66,18 @@ public void testPullRequestReviews() throws Exception { assertEquals("Some niggle", comment.getBody()); draftReview = p.createReview() .body("Some new review") - .comment("Some niggle", "changelog.html", 1) + .comment("Some niggle", "README.md", 1) .create(); draftReview.delete(); } @Test - public void testPullRequestReviewComments() throws Exception { - String name = rnd.next(); - GHPullRequest p = getRepository().createPullRequest(name, "stable", "master", "## test"); + public void pullRequestReviewComments() throws Exception { + String name = "pullRequestReviewComments"; + GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test"); System.out.println(p.getUrl()); assertTrue(p.listReviewComments().asList().isEmpty()); - p.createReviewComment("Sample review comment", p.getHead().getSha(), "cli/pom.xml", 5); + p.createReviewComment("Sample review comment", p.getHead().getSha(), "README.md", 1); List comments = p.listReviewComments().asList(); assertEquals(1, comments.size()); GHPullRequestReviewComment comment = comments.get(0); @@ -81,12 +95,15 @@ public void testPullRequestReviewComments() throws Exception { } @Test - public void testMergeCommitSHA() throws Exception { - String name = rnd.next(); - GHPullRequest p = getRepository().createPullRequest(name, "mergeable-branch", "master", "## test"); - for (int i=0; i<100; i++) { + public void mergeCommitSHA() throws Exception { + String name = "mergeCommitSHA"; + GHPullRequest p = getRepository().createPullRequest(name, "test/mergeable_branch", "master", "## test"); + p.getMergeable(); + // mergeability computation takes time. give it more chance + Thread.sleep(1000); + for (int i=0; i<10; i++) { GHPullRequest updated = getRepository().getPullRequest(p.getNumber()); - if (updated.getMergeCommitSha()!=null) { + if (updated.getMergeable() && updated.getMergeCommitSha()!=null) { // make sure commit exists GHCommit commit = getRepository().getCommit(updated.getMergeCommitSha()); assertNotNull(commit); @@ -94,52 +111,82 @@ public void testMergeCommitSHA() throws Exception { } // mergeability computation takes time. give it more chance - Thread.sleep(100); + Thread.sleep(1000); } // hmm? fail(); } @Test - public void testSquashMerge() throws Exception { - String name = rnd.next(); + public void squashMerge() throws Exception { + String name = "squashMerge"; + String branchName = "test/" + name; GHRef masterRef = getRepository().getRef("heads/master"); - GHRef branchRef = getRepository().createRef("refs/heads/" + name, masterRef.getObject().getSha()); + GHRef branchRef = getRepository().createRef("refs/heads/" + branchName, masterRef.getObject().getSha()); - getRepository().createContent(name, name, name, name); + getRepository().createContent(name, name, name, branchName); Thread.sleep(1000); - GHPullRequest p = getRepository().createPullRequest(name, name, "master", "## test squash"); + GHPullRequest p = getRepository().createPullRequest(name, branchName, "master", "## test squash"); Thread.sleep(1000); p.merge("squash merge", null, GHPullRequest.MergeMethod.SQUASH); - branchRef.delete(); } + @Test - public void testUpdateContentSquashMerge() throws Exception { - String name = rnd.next(); + public void updateContentSquashMerge() throws Exception { + String name = "updateContentSquashMerge"; + String branchName = "test/" + name; + GHRef masterRef = getRepository().getRef("heads/master"); - GHRef branchRef = getRepository().createRef("refs/heads/" + name, masterRef.getObject().getSha()); + GHRef branchRef = getRepository().createRef("refs/heads/" + branchName, masterRef.getObject().getSha()); - GHContentUpdateResponse response = getRepository().createContent(name, name, name, name); + GHContentUpdateResponse response = getRepository().createContent(name, name, name, branchName); Thread.sleep(1000); getRepository().createContent() - .content(name + name) - .path(name) - .branch(name) - .message(name) - .sha(response.getContent().getSha()) - .commit(); - GHPullRequest p = getRepository().createPullRequest(name, name, "master", "## test squash"); + .content(name + name) + .path(name) + .branch(branchName) + .message(name) + .sha(response.getContent().getSha()) + .commit(); + GHPullRequest p = getRepository().createPullRequest(name, branchName, "master", "## test squash"); Thread.sleep(1000); p.merge("squash merge", null, GHPullRequest.MergeMethod.SQUASH); - branchRef.delete(); + } + + @Test + public void queryPullRequestsQualifiedHead() throws Exception { + GHRepository repo = getRepository(); + // Create PRs from two different branches to master + repo.createPullRequest("queryPullRequestsQualifiedHead_stable", "test/stable", "master", null); + repo.createPullRequest("queryPullRequestsQualifiedHead_rc", "test/rc", "master", null); + + // Query by one of the heads and make sure we only get that branch's PR back. + List prs = repo.queryPullRequests().state(GHIssueState.OPEN).head("github-api-test-org:test/stable").base("master").list().asList(); + assertNotNull(prs); + assertEquals(1, prs.size()); + assertEquals("test/stable", prs.get(0).getHead().getRef()); + } + + @Test + public void queryPullRequestsUnqualifiedHead() throws Exception { + GHRepository repo = getRepository(); + // Create PRs from two different branches to master + repo.createPullRequest("queryPullRequestsUnqualifiedHead_stable", "test/stable", "master", null); + repo.createPullRequest("queryPullRequestsUnqualifiedHead_rc", "test/rc", "master", null); + + // Query by one of the heads and make sure we only get that branch's PR back. + List prs = repo.queryPullRequests().state(GHIssueState.OPEN).head("test/stable").base("master").list().asList(); + assertNotNull(prs); + assertEquals(1, prs.size()); + assertEquals("test/stable", prs.get(0).getHead().getRef()); } @Test // Requires push access to the test repo to pass public void setLabels() throws Exception { - GHPullRequest p = getRepository().createPullRequest(rnd.next(), "stable", "master", "## test"); - String label = rnd.next(); + GHPullRequest p = getRepository().createPullRequest("setLabels", "test/stable", "master", "## test"); + String label = "setLabels_label_name"; p.setLabels(label); Collection labels = getRepository().getPullRequest(p.getNumber()).getLabels(); @@ -150,7 +197,7 @@ public void setLabels() throws Exception { @Test // Requires push access to the test repo to pass public void setAssignee() throws Exception { - GHPullRequest p = getRepository().createPullRequest(rnd.next(), "stable", "master", "## test"); + GHPullRequest p = getRepository().createPullRequest("setAssignee", "test/stable", "master", "## test"); GHMyself user = gitHub.getMyself(); p.assignTo(user); @@ -158,8 +205,8 @@ public void setAssignee() throws Exception { } @Test - public void testGetUser() throws IOException { - GHPullRequest p = getRepository().createPullRequest(rnd.next(), "stable", "master", "## test"); + public void getUser() throws IOException { + GHPullRequest p = getRepository().createPullRequest("getUser", "test/stable", "master", "## test"); GHPullRequest prSingle = getRepository().getPullRequest(p.getNumber()); assertNotNull(prSingle.getUser().root); prSingle.getMergeable(); @@ -181,6 +228,6 @@ public void cleanUp() throws Exception { } private GHRepository getRepository() throws IOException { - return gitHub.getOrganization("github-api-test-org").getRepository("jenkins"); + return gitHub.getOrganization("github-api-test-org").getRepository("github-api"); } } diff --git a/src/test/java/org/kohsuke/github/UserTest.java b/src/test/java/org/kohsuke/github/UserTest.java index 9d1cfcbbac..5a3c303953 100644 --- a/src/test/java/org/kohsuke/github/UserTest.java +++ b/src/test/java/org/kohsuke/github/UserTest.java @@ -9,7 +9,7 @@ /** * @author Kohsuke Kawaguchi */ -public class UserTest extends AbstractGitHubApiTestBase { +public class UserTest extends AbstractGitHubApiWireMockTest { @Test public void listFollowsAndFollowers() throws IOException { GHUser u = gitHub.getUser("rtyler"); diff --git a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java new file mode 100644 index 0000000000..717dfe1d08 --- /dev/null +++ b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java @@ -0,0 +1,137 @@ +package org.kohsuke.github; + +import org.kohsuke.github.junit.WireMockRule; +import org.hamcrest.Matchers; +import org.junit.Ignore; +import org.junit.Test; +import static org.hamcrest.Matchers.*; +import static org.junit.Assume.assumeFalse; +import static org.junit.Assume.assumeTrue; + + +/** + * Tests in this class are meant to show the behavior of {@link AbstractGitHubApiWireMockTest} with proxying on or off. + * + * The wiremock data for these tests should only be modified by hand - thus most are skipped when snapshotting. + * + * @author Liam Newman + */ +public class WireMockStatusReporterTest extends AbstractGitHubApiWireMockTest { + + @Test + public void user_whenProxying_AuthCorrectlyConfigured() throws Exception { + assumeFalse("Test only valid when not taking a snapshot", takeSnapshot); + assumeTrue("Test only valid when proxying (-Dtest.github.useProxy to enable)", useProxy); + + assertThat( + "GitHub connection believes it is anonymous. Make sure you set GITHUB_OAUTH or both GITHUB_USER and GITHUB_PASSWORD environment variables", + gitHub.isAnonymous(), is(false)); + + assertThat(gitHub.login, not(equalTo(STUBBED_USER_LOGIN))); + + // If this user query fails, either the proxying config has broken (unlikely) + // or your auth settings are not being retrieved from the environemnt. + // Check your settings. + GHUser user = gitHub.getMyself(); + assertThat(user.getLogin(), notNullValue()); + + System.out.println(); + System.out.println("WireMockStatusReporterTest: GitHub proxying and user auth correctly configured for user login: " + user.getLogin()); + System.out.println(); + } + + @Test + public void user_whenNotProxying_Stubbed() throws Exception { + assumeFalse("Test only valid when not taking a snapshot", takeSnapshot); + assumeFalse("Test only valid when not proxying", useProxy); + + assertThat(gitHub.isAnonymous(), is(false)); + assertThat(gitHub.login, equalTo(STUBBED_USER_LOGIN)); + + GHUser user = gitHub.getMyself(); + // NOTE: the stubbed user does not have to match the login provided from the github object + // github.login is literally just a placeholder when mocking + assertThat(user.getLogin(), not(equalTo(STUBBED_USER_LOGIN))); + assertThat(user.getLogin(), equalTo("stubbed-user-login")); + + System.out.println("GitHub proxying and user auth correctly configured for user login: " + user.getLogin()); + } + + @Test + public void BasicBehaviors_whenNotProxying() throws Exception { + assumeFalse("Test only valid when not taking a snapshot", takeSnapshot); + assumeFalse("Test only valid when not proxying", useProxy); + + Exception e = null; + GHRepository repo = null; + + // Valid repository, stubbed + repo = gitHub.getRepository("github-api/github-api"); + assertThat(repo.getDescription(), equalTo("this is a stubbed description")); + + // Valid repository, without stub - fails 500 when not proxying + try { + gitHub.getRepository("jenkinsci/jenkins"); + fail(); + } catch (Exception ex) { + e = ex; + } + assertThat(e, Matchers.instanceOf(HttpException.class)); + assertThat("Status should be 500 for missing stubs", ((HttpException)e).getResponseCode(), equalTo(500)); + assertThat(e.getMessage(), equalTo("Stubbed data not found. Set test.github.use-proxy to have WireMock proxy to github")); + + // Invalid repository, without stub - fails 500 when not proxying + e = null; + try { + gitHub.getRepository("github-api/non-existant-repository"); + fail(); + } catch (Exception ex) { + e = ex; + } + + assertThat(e, Matchers.instanceOf(HttpException.class)); + assertThat("Status should be 500 for missing stubs", ((HttpException)e).getResponseCode(), equalTo(500)); + assertThat(e.getMessage(), equalTo("Stubbed data not found. Set test.github.use-proxy to have WireMock proxy to github")); + } + + @Test + public void BasicBehaviors_whenProxying() throws Exception { + assumeFalse("Test only valid when not taking a snapshot", takeSnapshot); + assumeTrue("Test only valid when proxying (-Dtest.github.useProxy to enable)", useProxy); + Exception e = null; + GHRepository repo = null; + + // Valid repository, stubbed + repo = gitHub.getRepository("github-api/github-api"); + assertThat(repo.getDescription(), equalTo("this is a stubbed description")); + + // Valid repository, without stub - succeeds when proxying + repo = gitHub.getRepository("jenkinsci/jenkins"); + assertThat(repo.getDescription(), notNullValue()); + + // Invalid repository, without stub - fails 404 when proxying + e = null; + try { + gitHub.getRepository("github-api/non-existant-repository"); + } catch (Exception ex) { + e = ex; + } + + assertThat(e, Matchers.instanceOf(GHFileNotFoundException.class)); + assertThat(e.getMessage(), equalTo("{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3/repos/#get\"}")); + } + + @Test + public void whenSnapshot_EnsureProxy() throws Exception { + assumeTrue("Test only valid when Snapshotting (-Dtest.github.takeSnapshot to enable)", takeSnapshot); + + assertTrue("When taking a snapshot, proxy should automatically be enabled", useProxy); + } + + @Ignore("Not implemented yet") + @Test + public void whenSnapshot_EnsureRecordToExpectedLocation() throws Exception { + assumeTrue("Test only valid when Snapshotting (-Dtest.github.takeSnapshot to enable)", takeSnapshot); + + } +} diff --git a/src/test/java/org/kohsuke/github/junit/WireMockRule.java b/src/test/java/org/kohsuke/github/junit/WireMockRule.java new file mode 100644 index 0000000000..e0e5d09a43 --- /dev/null +++ b/src/test/java/org/kohsuke/github/junit/WireMockRule.java @@ -0,0 +1,510 @@ +package org.kohsuke.github.junit; + +import com.github.tomakehurst.wiremock.WireMockServer; +import com.github.tomakehurst.wiremock.admin.model.*; +import com.github.tomakehurst.wiremock.client.MappingBuilder; +import com.github.tomakehurst.wiremock.client.VerificationException; +import com.github.tomakehurst.wiremock.client.WireMock; +import com.github.tomakehurst.wiremock.common.*; +import com.github.tomakehurst.wiremock.core.*; +import com.github.tomakehurst.wiremock.extension.Extension; +import com.github.tomakehurst.wiremock.global.GlobalSettings; +import com.github.tomakehurst.wiremock.global.GlobalSettingsHolder; +import com.github.tomakehurst.wiremock.http.CaseInsensitiveKey; +import com.github.tomakehurst.wiremock.http.HttpServerFactory; +import com.github.tomakehurst.wiremock.http.RequestListener; +import com.github.tomakehurst.wiremock.http.ThreadPoolFactory; +import com.github.tomakehurst.wiremock.http.trafficlistener.WiremockNetworkTrafficListener; +import com.github.tomakehurst.wiremock.junit.Stubbing; +import com.github.tomakehurst.wiremock.matching.RequestPattern; +import com.github.tomakehurst.wiremock.matching.RequestPatternBuilder; +import com.github.tomakehurst.wiremock.matching.StringValuePattern; +import com.github.tomakehurst.wiremock.recording.RecordSpec; +import com.github.tomakehurst.wiremock.recording.RecordSpecBuilder; +import com.github.tomakehurst.wiremock.recording.RecordingStatusResult; +import com.github.tomakehurst.wiremock.recording.SnapshotRecordResult; +import com.github.tomakehurst.wiremock.security.Authenticator; +import com.github.tomakehurst.wiremock.standalone.JsonFileMappingsSource; +import com.github.tomakehurst.wiremock.standalone.MappingsLoader; +import com.github.tomakehurst.wiremock.standalone.MappingsSource; +import com.github.tomakehurst.wiremock.stubbing.ServeEvent; +import com.github.tomakehurst.wiremock.stubbing.StubImport; +import com.github.tomakehurst.wiremock.stubbing.StubMapping; +import com.github.tomakehurst.wiremock.verification.*; + +import java.io.File; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +import com.github.tomakehurst.wiremock.verification.notmatched.NotMatchedRenderer; +import org.junit.rules.MethodRule; +import org.junit.rules.TestRule; +import org.junit.runner.Description; +import org.junit.runners.model.FrameworkMethod; +import org.junit.runners.model.Statement; +import wiremock.com.google.common.base.Optional; + +public class WireMockRule implements MethodRule, TestRule, Container, Stubbing, Admin { + + private WireMockServer wireMockServer; + private boolean failOnUnmatchedRequests; + private final Options options; + + public WireMockRule(Options options) { + this(options, true); + } + + public WireMockRule(Options options, boolean failOnUnmatchedRequests) { + this.options = options; + this.failOnUnmatchedRequests = failOnUnmatchedRequests; + } + + public WireMockRule(int port) { + this(WireMockConfiguration.wireMockConfig().port(port)); + } + + public WireMockRule(int port, Integer httpsPort) { + this(WireMockConfiguration.wireMockConfig().port(port).httpsPort(httpsPort)); + } + + public WireMockRule() { + this(WireMockConfiguration.wireMockConfig()); + } + + public Statement apply(Statement base, Description description) { + return this.apply(base, description.getMethodName()); + } + + public Statement apply(final Statement base, FrameworkMethod method, Object target) { + return this.apply(base, method.getName()); + } + + private Statement apply(final Statement base, final String methodName) { + return new Statement() { + public void evaluate() throws Throwable { + final Options localOptions = new WireMockOptions( + WireMockRule.this.options, + methodName); + + new File(localOptions.filesRoot().getPath(), "mappings").mkdirs(); + new File(localOptions.filesRoot().getPath(), "__files").mkdirs(); + + WireMockRule.this.wireMockServer = new WireMockServer(localOptions); + WireMockRule.this.start(); + WireMock.configureFor("localhost", WireMockRule.this.port()); + + try { + WireMockRule.this.before(); + base.evaluate(); + WireMockRule.this.checkForUnmatchedRequests(); + } finally { + WireMockRule.this.after(); + WireMockRule.this.stop(); + } + + } + }; + } + + private void checkForUnmatchedRequests() { + if (this.failOnUnmatchedRequests) { + List unmatchedRequests = this.findAllUnmatchedRequests(); + if (!unmatchedRequests.isEmpty()) { + List nearMisses = this.findNearMissesForAllUnmatchedRequests(); + if (nearMisses.isEmpty()) { + throw VerificationException.forUnmatchedRequests(unmatchedRequests); + } + + throw VerificationException.forUnmatchedNearMisses(nearMisses); + } + } + + } + + protected void before() { + } + + protected void after() { + } + + + private class WireMockOptions implements Options { + + private final Options wireMockConfiguration; + private final String childDirectory; + private final FileSource childSource; + private final MappingsSource mappingsSource; + + public WireMockOptions(Options options, String childDirectory) { + wireMockConfiguration = options; + this.childDirectory = childDirectory; + childSource = wireMockConfiguration.filesRoot().child(childDirectory); + mappingsSource = new JsonFileMappingsSource(childSource.child("mappings")); + } + + public int portNumber() { + return wireMockConfiguration.portNumber(); + } + + public int containerThreads() { + return wireMockConfiguration.containerThreads(); + } + + public HttpsSettings httpsSettings() { + return wireMockConfiguration.httpsSettings(); + } + + public JettySettings jettySettings() { + return wireMockConfiguration.jettySettings(); + } + + public boolean browserProxyingEnabled() { + return wireMockConfiguration.browserProxyingEnabled(); + } + + public ProxySettings proxyVia() { + return wireMockConfiguration.proxyVia(); + } + + public FileSource filesRoot() { + return childSource; + } + + public MappingsLoader mappingsLoader() { + return mappingsSource; + } + + public MappingsSaver mappingsSaver() { + return mappingsSource; + } + + public Notifier notifier() { + return wireMockConfiguration.notifier(); + } + + public boolean requestJournalDisabled() { + return wireMockConfiguration.requestJournalDisabled(); + } + + public Optional maxRequestJournalEntries() { + return wireMockConfiguration.maxRequestJournalEntries(); + } + + public String bindAddress() { + return wireMockConfiguration.bindAddress(); + } + + public List matchingHeaders() { + return wireMockConfiguration.matchingHeaders(); + } + + public HttpServerFactory httpServerFactory() { + return wireMockConfiguration.httpServerFactory(); + } + + public ThreadPoolFactory threadPoolFactory() { + return wireMockConfiguration.threadPoolFactory(); + } + + public boolean shouldPreserveHostHeader() { + return wireMockConfiguration.shouldPreserveHostHeader(); + } + + public String proxyHostHeader() { + return wireMockConfiguration.proxyHostHeader(); + } + + public Map extensionsOfType(Class extensionType) { + return wireMockConfiguration.extensionsOfType(extensionType); + } + + public WiremockNetworkTrafficListener networkTrafficListener() { + return wireMockConfiguration.networkTrafficListener(); + } + + public Authenticator getAdminAuthenticator() { + return wireMockConfiguration.getAdminAuthenticator(); + } + + public boolean getHttpsRequiredForAdminApi() { + return wireMockConfiguration.getHttpsRequiredForAdminApi(); + } + + public NotMatchedRenderer getNotMatchedRenderer() { + return wireMockConfiguration.getNotMatchedRenderer(); + } + + public AsynchronousResponseSettings getAsynchronousResponseSettings() { + return wireMockConfiguration.getAsynchronousResponseSettings(); + } + + public ChunkedEncodingPolicy getChunkedEncodingPolicy() { + return wireMockConfiguration.getChunkedEncodingPolicy(); + } + + public boolean getGzipDisabled() { + return wireMockConfiguration.getGzipDisabled(); + } + } + + public void loadMappingsUsing(MappingsLoader mappingsLoader) { + wireMockServer.loadMappingsUsing(mappingsLoader); + } + + public GlobalSettingsHolder getGlobalSettingsHolder() { + return wireMockServer.getGlobalSettingsHolder(); + } + + public void addMockServiceRequestListener(RequestListener listener) { + wireMockServer.addMockServiceRequestListener(listener); + } + + public void enableRecordMappings(FileSource mappingsFileSource, FileSource filesFileSource) { + wireMockServer.enableRecordMappings(mappingsFileSource, filesFileSource); + } + + public void stop() { + wireMockServer.stop(); + } + + public void start() { + wireMockServer.start(); + } + + public void shutdown() { + wireMockServer.shutdown(); + } + + public int port() { + return wireMockServer.port(); + } + + public int httpsPort() { + return wireMockServer.httpsPort(); + } + + public String url(String path) { + return wireMockServer.url(path); + } + + public String baseUrl() { + return wireMockServer.baseUrl(); + } + + public boolean isRunning() { + return wireMockServer.isRunning(); + } + + public StubMapping givenThat(MappingBuilder mappingBuilder) { + return wireMockServer.givenThat(mappingBuilder); + } + + public StubMapping stubFor(MappingBuilder mappingBuilder) { + return wireMockServer.stubFor(mappingBuilder); + } + + public void editStub(MappingBuilder mappingBuilder) { + wireMockServer.editStub(mappingBuilder); + } + + public void removeStub(MappingBuilder mappingBuilder) { + wireMockServer.removeStub(mappingBuilder); + } + + public void removeStub(StubMapping stubMapping) { + wireMockServer.removeStub(stubMapping); + } + + public List getStubMappings() { + return wireMockServer.getStubMappings(); + } + + public StubMapping getSingleStubMapping(UUID id) { + return wireMockServer.getSingleStubMapping(id); + } + + public List findStubMappingsByMetadata(StringValuePattern pattern) { + return wireMockServer.findStubMappingsByMetadata(pattern); + } + + public void removeStubMappingsByMetadata(StringValuePattern pattern) { + wireMockServer.removeStubMappingsByMetadata(pattern); + } + + public void removeStubMapping(StubMapping stubMapping) { + wireMockServer.removeStubMapping(stubMapping); + } + + public void verify(RequestPatternBuilder requestPatternBuilder) { + wireMockServer.verify(requestPatternBuilder); + } + + public void verify(int count, RequestPatternBuilder requestPatternBuilder) { + wireMockServer.verify(count, requestPatternBuilder); + } + + public List findAll(RequestPatternBuilder requestPatternBuilder) { + return wireMockServer.findAll(requestPatternBuilder); + } + + public List getAllServeEvents() { + return wireMockServer.getAllServeEvents(); + } + + public void setGlobalFixedDelay(int milliseconds) { + wireMockServer.setGlobalFixedDelay(milliseconds); + } + + public List findAllUnmatchedRequests() { + return wireMockServer.findAllUnmatchedRequests(); + } + + public List findNearMissesForAllUnmatchedRequests() { + return wireMockServer.findNearMissesForAllUnmatchedRequests(); + } + + public List findAllNearMissesFor(RequestPatternBuilder requestPatternBuilder) { + return wireMockServer.findAllNearMissesFor(requestPatternBuilder); + } + + public List findNearMissesFor(LoggedRequest loggedRequest) { + return wireMockServer.findNearMissesFor(loggedRequest); + } + + public void addStubMapping(StubMapping stubMapping) { + wireMockServer.addStubMapping(stubMapping); + } + + public void editStubMapping(StubMapping stubMapping) { + wireMockServer.editStubMapping(stubMapping); + } + + public ListStubMappingsResult listAllStubMappings() { + return wireMockServer.listAllStubMappings(); + } + + public SingleStubMappingResult getStubMapping(UUID id) { + return wireMockServer.getStubMapping(id); + } + + public void saveMappings() { + wireMockServer.saveMappings(); + } + + public void resetAll() { + wireMockServer.resetAll(); + } + + public void resetRequests() { + wireMockServer.resetRequests(); + } + + public void resetToDefaultMappings() { + wireMockServer.resetToDefaultMappings(); + } + + public GetServeEventsResult getServeEvents() { + return wireMockServer.getServeEvents(); + } + + public SingleServedStubResult getServedStub(UUID id) { + return wireMockServer.getServedStub(id); + } + + public void resetScenarios() { + wireMockServer.resetScenarios(); + } + + public void resetMappings() { + wireMockServer.resetMappings(); + } + + public VerificationResult countRequestsMatching(RequestPattern requestPattern) { + return wireMockServer.countRequestsMatching(requestPattern); + } + + public FindRequestsResult findRequestsMatching(RequestPattern requestPattern) { + return wireMockServer.findRequestsMatching(requestPattern); + } + + public FindRequestsResult findUnmatchedRequests() { + return wireMockServer.findUnmatchedRequests(); + } + + public void updateGlobalSettings(GlobalSettings newSettings) { + wireMockServer.updateGlobalSettings(newSettings); + } + + public FindNearMissesResult findNearMissesForUnmatchedRequests() { + return wireMockServer.findNearMissesForUnmatchedRequests(); + } + + public GetScenariosResult getAllScenarios() { + return wireMockServer.getAllScenarios(); + } + + public FindNearMissesResult findTopNearMissesFor(LoggedRequest loggedRequest) { + return wireMockServer.findTopNearMissesFor(loggedRequest); + } + + public FindNearMissesResult findTopNearMissesFor(RequestPattern requestPattern) { + return wireMockServer.findTopNearMissesFor(requestPattern); + } + + public void startRecording(String targetBaseUrl) { + wireMockServer.startRecording(targetBaseUrl); + } + + public void startRecording(RecordSpec spec) { + wireMockServer.startRecording(spec); + } + + public void startRecording(RecordSpecBuilder recordSpec) { + wireMockServer.startRecording(recordSpec); + } + + public SnapshotRecordResult stopRecording() { + return wireMockServer.stopRecording(); + } + + public RecordingStatusResult getRecordingStatus() { + return wireMockServer.getRecordingStatus(); + } + + public SnapshotRecordResult snapshotRecord() { + return wireMockServer.snapshotRecord(); + } + + public SnapshotRecordResult snapshotRecord(RecordSpecBuilder spec) { + return wireMockServer.snapshotRecord(spec); + } + + public SnapshotRecordResult snapshotRecord(RecordSpec spec) { + return wireMockServer.snapshotRecord(spec); + } + + public Options getOptions() { + return wireMockServer.getOptions(); + } + + public void shutdownServer() { + wireMockServer.shutdownServer(); + } + + public ListStubMappingsResult findAllStubsByMetadata(StringValuePattern pattern) { + return wireMockServer.findAllStubsByMetadata(pattern); + } + + public void removeStubsByMetadata(StringValuePattern pattern) { + wireMockServer.removeStubsByMetadata(pattern); + } + + public void importStubs(StubImport stubImport) { + wireMockServer.importStubs(stubImport); + } + + public GetGlobalSettingsResult getGlobalSettings() { + return wireMockServer.getGlobalSettings(); + } +} diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json new file mode 100644 index 0000000000..edcdf7d625 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json @@ -0,0 +1 @@ +{"id":1548514,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4NTE0","name":"stapler","full_name":"stapler/stapler","private":false,"owner":{"login":"stapler","id":700341,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMDM0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/700341?v=4","gravatar_id":"","url":"https://api.github.com/users/stapler","html_url":"https://github.com/stapler","followers_url":"https://api.github.com/users/stapler/followers","following_url":"https://api.github.com/users/stapler/following{/other_user}","gists_url":"https://api.github.com/users/stapler/gists{/gist_id}","starred_url":"https://api.github.com/users/stapler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapler/subscriptions","organizations_url":"https://api.github.com/users/stapler/orgs","repos_url":"https://api.github.com/users/stapler/repos","events_url":"https://api.github.com/users/stapler/events{/privacy}","received_events_url":"https://api.github.com/users/stapler/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stapler/stapler","description":"Stapler web framework","fork":false,"url":"https://api.github.com/repos/stapler/stapler","forks_url":"https://api.github.com/repos/stapler/stapler/forks","keys_url":"https://api.github.com/repos/stapler/stapler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stapler/stapler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stapler/stapler/teams","hooks_url":"https://api.github.com/repos/stapler/stapler/hooks","issue_events_url":"https://api.github.com/repos/stapler/stapler/issues/events{/number}","events_url":"https://api.github.com/repos/stapler/stapler/events","assignees_url":"https://api.github.com/repos/stapler/stapler/assignees{/user}","branches_url":"https://api.github.com/repos/stapler/stapler/branches{/branch}","tags_url":"https://api.github.com/repos/stapler/stapler/tags","blobs_url":"https://api.github.com/repos/stapler/stapler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stapler/stapler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stapler/stapler/git/refs{/sha}","trees_url":"https://api.github.com/repos/stapler/stapler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stapler/stapler/statuses/{sha}","languages_url":"https://api.github.com/repos/stapler/stapler/languages","stargazers_url":"https://api.github.com/repos/stapler/stapler/stargazers","contributors_url":"https://api.github.com/repos/stapler/stapler/contributors","subscribers_url":"https://api.github.com/repos/stapler/stapler/subscribers","subscription_url":"https://api.github.com/repos/stapler/stapler/subscription","commits_url":"https://api.github.com/repos/stapler/stapler/commits{/sha}","git_commits_url":"https://api.github.com/repos/stapler/stapler/git/commits{/sha}","comments_url":"https://api.github.com/repos/stapler/stapler/comments{/number}","issue_comment_url":"https://api.github.com/repos/stapler/stapler/issues/comments{/number}","contents_url":"https://api.github.com/repos/stapler/stapler/contents/{+path}","compare_url":"https://api.github.com/repos/stapler/stapler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stapler/stapler/merges","archive_url":"https://api.github.com/repos/stapler/stapler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stapler/stapler/downloads","issues_url":"https://api.github.com/repos/stapler/stapler/issues{/number}","pulls_url":"https://api.github.com/repos/stapler/stapler/pulls{/number}","milestones_url":"https://api.github.com/repos/stapler/stapler/milestones{/number}","notifications_url":"https://api.github.com/repos/stapler/stapler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stapler/stapler/labels{/name}","releases_url":"https://api.github.com/repos/stapler/stapler/releases{/id}","deployments_url":"https://api.github.com/repos/stapler/stapler/deployments","created_at":"2011-03-30T22:39:45Z","updated_at":"2019-08-27T16:42:33Z","pushed_at":"2019-08-19T18:47:57Z","git_url":"git://github.com/stapler/stapler.git","ssh_url":"git@github.com:stapler/stapler.git","clone_url":"https://github.com/stapler/stapler.git","svn_url":"https://github.com/stapler/stapler","homepage":"http://stapler.kohsuke.org/","size":41906,"stargazers_count":112,"watchers_count":112,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":28,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":75,"open_issues":28,"watchers":112,"default_branch":"master","permissions":{"admin":false,"push":false,"pull":true},"organization":{"login":"stapler","id":700341,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMDM0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/700341?v=4","gravatar_id":"","url":"https://api.github.com/users/stapler","html_url":"https://github.com/stapler","followers_url":"https://api.github.com/users/stapler/followers","following_url":"https://api.github.com/users/stapler/following{/other_user}","gists_url":"https://api.github.com/users/stapler/gists{/gist_id}","starred_url":"https://api.github.com/users/stapler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapler/subscriptions","organizations_url":"https://api.github.com/users/stapler/orgs","repos_url":"https://api.github.com/users/stapler/repos","events_url":"https://api.github.com/users/stapler/events{/privacy}","received_events_url":"https://api.github.com/users/stapler/received_events","type":"Organization","site_admin":false},"network_count":75,"subscribers_count":12} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json new file mode 100644 index 0000000000..b3dd22e105 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json @@ -0,0 +1 @@ +[{"url":"https://api.github.com/repos/stapler/stapler/statuses/6a243869aa3c3f80579102d00848a0083953d654","avatar_url":"https://avatars3.githubusercontent.com/u/874715?v=4","id":7455218060,"node_id":"MDEzOlN0YXR1c0NvbnRleHQ3NDU1MjE4MDYw","state":"error","description":"This commit cannot be built","target_url":"https://ci.jenkins.io/job/Stapler/job/stapler/job/master/50/display/redirect","context":"continuous-integration/jenkins/branch","created_at":"2019-08-19T18:45:31Z","updated_at":"2019-08-19T18:45:31Z","creator":{"login":"jenkinsadmin","id":874715,"node_id":"MDQ6VXNlcjg3NDcxNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/874715?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsadmin","html_url":"https://github.com/jenkinsadmin","followers_url":"https://api.github.com/users/jenkinsadmin/followers","following_url":"https://api.github.com/users/jenkinsadmin/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsadmin/subscriptions","organizations_url":"https://api.github.com/users/jenkinsadmin/orgs","repos_url":"https://api.github.com/users/jenkinsadmin/repos","events_url":"https://api.github.com/users/jenkinsadmin/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsadmin/received_events","type":"User","site_admin":false}},{"url":"https://api.github.com/repos/stapler/stapler/statuses/6a243869aa3c3f80579102d00848a0083953d654","avatar_url":"https://avatars3.githubusercontent.com/u/874715?v=4","id":7455157752,"node_id":"MDEzOlN0YXR1c0NvbnRleHQ3NDU1MTU3NzUy","state":"pending","description":"This commit is being built","target_url":"https://ci.jenkins.io/job/Stapler/job/stapler/job/master/50/display/redirect","context":"continuous-integration/jenkins/branch","created_at":"2019-08-19T18:39:00Z","updated_at":"2019-08-19T18:39:00Z","creator":{"login":"jenkinsadmin","id":874715,"node_id":"MDQ6VXNlcjg3NDcxNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/874715?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsadmin","html_url":"https://github.com/jenkinsadmin","followers_url":"https://api.github.com/users/jenkinsadmin/followers","following_url":"https://api.github.com/users/jenkinsadmin/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsadmin/subscriptions","organizations_url":"https://api.github.com/users/jenkinsadmin/orgs","repos_url":"https://api.github.com/users/jenkinsadmin/repos","events_url":"https://api.github.com/users/jenkinsadmin/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsadmin/received_events","type":"User","site_admin":false}},{"url":"https://api.github.com/repos/stapler/stapler/statuses/6a243869aa3c3f80579102d00848a0083953d654","avatar_url":"https://avatars3.githubusercontent.com/u/874715?v=4","id":7455156636,"node_id":"MDEzOlN0YXR1c0NvbnRleHQ3NDU1MTU2NjM2","state":"pending","description":"This commit is being built","target_url":"https://ci.jenkins.io/job/Stapler/job/stapler/job/master/50/display/redirect","context":"continuous-integration/jenkins/branch","created_at":"2019-08-19T18:38:52Z","updated_at":"2019-08-19T18:38:52Z","creator":{"login":"jenkinsadmin","id":874715,"node_id":"MDQ6VXNlcjg3NDcxNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/874715?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsadmin","html_url":"https://github.com/jenkinsadmin","followers_url":"https://api.github.com/users/jenkinsadmin/followers","following_url":"https://api.github.com/users/jenkinsadmin/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsadmin/subscriptions","organizations_url":"https://api.github.com/users/jenkinsadmin/orgs","repos_url":"https://api.github.com/users/jenkinsadmin/repos","events_url":"https://api.github.com/users/jenkinsadmin/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsadmin/received_events","type":"User","site_admin":false}}] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json new file mode 100644 index 0000000000..d23fbcec73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json @@ -0,0 +1 @@ +[{"name":"stapler-parent-1.258","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.258","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.258","commit":{"sha":"6a243869aa3c3f80579102d00848a0083953d654","url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1OA=="},{"name":"stapler-parent-1.257.2","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.257.2","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.257.2","commit":{"sha":"c5cf668da1b891488236f18eb8a2d668e8af8d83","url":"https://api.github.com/repos/stapler/stapler/commits/c5cf668da1b891488236f18eb8a2d668e8af8d83"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Ny4y"},{"name":"stapler-parent-1.257.1","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.257.1","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.257.1","commit":{"sha":"88b67ccecb572faaec5a0ecff327b1a4ea902591","url":"https://api.github.com/repos/stapler/stapler/commits/88b67ccecb572faaec5a0ecff327b1a4ea902591"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Ny4x"},{"name":"stapler-parent-1.257","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.257","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.257","commit":{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Nw=="},{"name":"stapler-parent-1.256.2","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.256.2","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.256.2","commit":{"sha":"d7f798079b03569d07d79f2eb62cd8a4662da65b","url":"https://api.github.com/repos/stapler/stapler/commits/d7f798079b03569d07d79f2eb62cd8a4662da65b"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Ni4y"},{"name":"stapler-parent-1.256.1","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.256.1","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.256.1","commit":{"sha":"d7aa86f790295ac8e7b00ac2734032773e5a5f6a","url":"https://api.github.com/repos/stapler/stapler/commits/d7aa86f790295ac8e7b00ac2734032773e5a5f6a"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Ni4x"},{"name":"stapler-parent-1.256","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.256","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.256","commit":{"sha":"d9f05512169d70bbd8deff1e87afe3fdd251dc54","url":"https://api.github.com/repos/stapler/stapler/commits/d9f05512169d70bbd8deff1e87afe3fdd251dc54"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Ng=="},{"name":"stapler-parent-1.255","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.255","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.255","commit":{"sha":"c7d9760c909ca34c9c8ad3e8959a79eec433b45e","url":"https://api.github.com/repos/stapler/stapler/commits/c7d9760c909ca34c9c8ad3e8959a79eec433b45e"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1NQ=="},{"name":"stapler-parent-1.254.3","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.254.3","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.254.3","commit":{"sha":"a4617a3f25067e05c3efdb6bc6678f2710bffa57","url":"https://api.github.com/repos/stapler/stapler/commits/a4617a3f25067e05c3efdb6bc6678f2710bffa57"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1NC4z"},{"name":"stapler-parent-1.254.2","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.254.2","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.254.2","commit":{"sha":"91087c2e85b9e9539fb291c8298fb4692a7c2d84","url":"https://api.github.com/repos/stapler/stapler/commits/91087c2e85b9e9539fb291c8298fb4692a7c2d84"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1NC4y"},{"name":"stapler-parent-1.254.1","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.254.1","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.254.1","commit":{"sha":"eb7bb985c89187288fc54f9a50aeb80e90821f7c","url":"https://api.github.com/repos/stapler/stapler/commits/eb7bb985c89187288fc54f9a50aeb80e90821f7c"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1NC4x"},{"name":"stapler-parent-1.254","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.254","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.254","commit":{"sha":"07a22fed12081904a6c6b89b02117279274b4065","url":"https://api.github.com/repos/stapler/stapler/commits/07a22fed12081904a6c6b89b02117279274b4065"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1NA=="},{"name":"stapler-parent-1.253","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.253","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.253","commit":{"sha":"055ee2b100f8778049410289c0fa5a3baa07cfb9","url":"https://api.github.com/repos/stapler/stapler/commits/055ee2b100f8778049410289c0fa5a3baa07cfb9"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Mw=="},{"name":"stapler-parent-1.252","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.252","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.252","commit":{"sha":"ea125284477865c8344337877b5eefef0d48b9b3","url":"https://api.github.com/repos/stapler/stapler/commits/ea125284477865c8344337877b5eefef0d48b9b3"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1Mg=="},{"name":"stapler-parent-1.251","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.251","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.251","commit":{"sha":"bec133a7f228e863870a9324734cb9565270c1c3","url":"https://api.github.com/repos/stapler/stapler/commits/bec133a7f228e863870a9324734cb9565270c1c3"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1MQ=="},{"name":"stapler-parent-1.250.2","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.250.2","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.250.2","commit":{"sha":"c45ae36a80dfc29d78d8008f3923010f734b2aa7","url":"https://api.github.com/repos/stapler/stapler/commits/c45ae36a80dfc29d78d8008f3923010f734b2aa7"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1MC4y"},{"name":"stapler-parent-1.250.1","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.250.1","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.250.1","commit":{"sha":"2c24c6b625eac22b0b0bbe15ee28ba89b518fbcf","url":"https://api.github.com/repos/stapler/stapler/commits/2c24c6b625eac22b0b0bbe15ee28ba89b518fbcf"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1MC4x"},{"name":"stapler-parent-1.250","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.250","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.250","commit":{"sha":"139a5c48f7ccf099a4e4d486ce8143d6b3ebaa60","url":"https://api.github.com/repos/stapler/stapler/commits/139a5c48f7ccf099a4e4d486ce8143d6b3ebaa60"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI1MA=="},{"name":"stapler-parent-1.249","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.249","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.249","commit":{"sha":"f0a4fb3b17fc19dc44b7974f6048540358a2ab27","url":"https://api.github.com/repos/stapler/stapler/commits/f0a4fb3b17fc19dc44b7974f6048540358a2ab27"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0OQ=="},{"name":"stapler-parent-1.248","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.248","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.248","commit":{"sha":"ee1fdfea8774953afd7c3b810a218d2809e394d4","url":"https://api.github.com/repos/stapler/stapler/commits/ee1fdfea8774953afd7c3b810a218d2809e394d4"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0OA=="},{"name":"stapler-parent-1.247","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.247","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.247","commit":{"sha":"16a445745c1a8dc45ec235af9b0466284ce0fffb","url":"https://api.github.com/repos/stapler/stapler/commits/16a445745c1a8dc45ec235af9b0466284ce0fffb"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0Nw=="},{"name":"stapler-parent-1.246","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.246","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.246","commit":{"sha":"bf36e810674526adceb8a66b17a05be7e219ac8e","url":"https://api.github.com/repos/stapler/stapler/commits/bf36e810674526adceb8a66b17a05be7e219ac8e"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0Ng=="},{"name":"stapler-parent-1.244","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.244","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.244","commit":{"sha":"956c847fd721de4ffa1622ddc640c0a00b603c45","url":"https://api.github.com/repos/stapler/stapler/commits/956c847fd721de4ffa1622ddc640c0a00b603c45"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0NA=="},{"name":"stapler-parent-1.243","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.243","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.243","commit":{"sha":"1dcecfbde98af18fe165019b61c8313a8ee881f5","url":"https://api.github.com/repos/stapler/stapler/commits/1dcecfbde98af18fe165019b61c8313a8ee881f5"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0Mw=="},{"name":"stapler-parent-1.242","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.242","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.242","commit":{"sha":"cb92998f404fee084bef8a922428bc34d731ecda","url":"https://api.github.com/repos/stapler/stapler/commits/cb92998f404fee084bef8a922428bc34d731ecda"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0Mg=="},{"name":"stapler-parent-1.241","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.241","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.241","commit":{"sha":"b14b8d346b5d5e601760fa2f7072bbd8e83480d7","url":"https://api.github.com/repos/stapler/stapler/commits/b14b8d346b5d5e601760fa2f7072bbd8e83480d7"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0MQ=="},{"name":"stapler-parent-1.240","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.240","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.240","commit":{"sha":"430665e6d3d97c5897810f070d2abf93eb0d7c43","url":"https://api.github.com/repos/stapler/stapler/commits/430665e6d3d97c5897810f070d2abf93eb0d7c43"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjI0MA=="},{"name":"stapler-parent-1.239","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.239","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.239","commit":{"sha":"9114f84b9db915712a55e08ffdabd88697ecd5f7","url":"https://api.github.com/repos/stapler/stapler/commits/9114f84b9db915712a55e08ffdabd88697ecd5f7"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjIzOQ=="},{"name":"stapler-parent-1.238","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.238","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.238","commit":{"sha":"208ed27c27156e3d7ef8d7307f0d20785c3bc712","url":"https://api.github.com/repos/stapler/stapler/commits/208ed27c27156e3d7ef8d7307f0d20785c3bc712"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjIzOA=="},{"name":"stapler-parent-1.237","zipball_url":"https://api.github.com/repos/stapler/stapler/zipball/stapler-parent-1.237","tarball_url":"https://api.github.com/repos/stapler/stapler/tarball/stapler-parent-1.237","commit":{"sha":"a915ca5b380e89df8706edffcb09c65fcc07421b","url":"https://api.github.com/repos/stapler/stapler/commits/a915ca5b380e89df8706edffcb09c65fcc07421b"},"node_id":"MDM6UmVmMTU0ODUxNDpzdGFwbGVyLXBhcmVudC0xLjIzNw=="}] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json new file mode 100644 index 0000000000..91444a04ba --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/__files/user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json @@ -0,0 +1 @@ +{"login":"bitwiseman","id":1958953,"node_id":"MDQ6VXNlcjE5NTg5NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1958953?v=4","gravatar_id":"","url":"https://api.github.com/users/bitwiseman","html_url":"https://github.com/bitwiseman","followers_url":"https://api.github.com/users/bitwiseman/followers","following_url":"https://api.github.com/users/bitwiseman/following{/other_user}","gists_url":"https://api.github.com/users/bitwiseman/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwiseman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwiseman/subscriptions","organizations_url":"https://api.github.com/users/bitwiseman/orgs","repos_url":"https://api.github.com/users/bitwiseman/repos","events_url":"https://api.github.com/users/bitwiseman/events{/privacy}","received_events_url":"https://api.github.com/users/bitwiseman/received_events","type":"User","site_admin":false,"name":"Liam Newman","company":"Cloudbees, Inc.","blog":"","location":"Seattle, WA, USA","email":"bitwiseman@gmail.com","hireable":null,"bio":"https://twitter.com/bitwiseman","public_repos":166,"public_gists":4,"followers":133,"following":9,"created_at":"2012-07-11T20:38:33Z","updated_at":"2019-06-03T17:47:20Z"} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json new file mode 100644 index 0000000000..6c722ae38e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json @@ -0,0 +1,40 @@ +{ + "id" : "dea29c4a-c5b6-460d-8550-09d75d487830", + "name" : "repos_stapler_stapler", + "request" : { + "url" : "/repos/stapler/stapler", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler-dea29c4a-c5b6-460d-8550-09d75d487830.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:06 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4932", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"449cae6ec2615b7bcbe15d6e821627cc\"", + "Last-Modified" : "Tue, 27 Aug 2019 16:42:33 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "repo", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99F:2C7D:C96DC:EC84C:5D769A6A" + } + }, + "uuid" : "dea29c4a-c5b6-460d-8550-09d75d487830", + "persistent" : true, + "insertionIndex" : 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json new file mode 100644 index 0000000000..d16fbe2df3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json @@ -0,0 +1,39 @@ +{ + "id" : "b564ee52-421b-4d1a-aa96-bdb613581b8a", + "name" : "repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654", + "request" : { + "url" : "/repos/stapler/stapler/statuses/6a243869aa3c3f80579102d00848a0083953d654", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_statuses_6a243869aa3c3f80579102d00848a0083953d654-b564ee52-421b-4d1a-aa96-bdb613581b8a.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:06 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4930", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"5f8e313af31f78898aeeeae1b6f45a5b\"", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "repo, repo:status", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99F:2C7D:C9739:EC8B4:5D769A6A" + } + }, + "uuid" : "b564ee52-421b-4d1a-aa96-bdb613581b8a", + "persistent" : true, + "insertionIndex" : 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json new file mode 100644 index 0000000000..bb21e32e6b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json @@ -0,0 +1,41 @@ +{ + "id" : "7637217e-0e80-4f8b-bf01-93a7a97952fd", + "name" : "repos_stapler_stapler_tags", + "request" : { + "url" : "/repos/stapler/stapler/tags", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_tags-7637217e-0e80-4f8b-bf01-93a7a97952fd.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:06 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4931", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"dcf4cf083a57185673e19420a37d0ca0\"", + "Last-Modified" : "Tue, 27 Aug 2019 16:42:33 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Link" : "; rel=\"next\", ; rel=\"last\"", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99F:2C7D:C9716:EC893:5D769A6A" + } + }, + "uuid" : "7637217e-0e80-4f8b-bf01-93a7a97952fd", + "persistent" : true, + "insertionIndex" : 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json new file mode 100644 index 0000000000..1ed75d7fa8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/lastStatus/mappings/user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json @@ -0,0 +1,40 @@ +{ + "id" : "bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a", + "name" : "user", + "request" : { + "url" : "/user", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "user-bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:06 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4933", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified" : "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99F:2C7D:C96C8:EC833:5D769A69" + } + }, + "uuid" : "bde54f7e-5b5a-49b2-b94c-a0cf8f7a0d1a", + "persistent" : true, + "insertionIndex" : 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json new file mode 100644 index 0000000000..edcdf7d625 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json @@ -0,0 +1 @@ +{"id":1548514,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4NTE0","name":"stapler","full_name":"stapler/stapler","private":false,"owner":{"login":"stapler","id":700341,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMDM0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/700341?v=4","gravatar_id":"","url":"https://api.github.com/users/stapler","html_url":"https://github.com/stapler","followers_url":"https://api.github.com/users/stapler/followers","following_url":"https://api.github.com/users/stapler/following{/other_user}","gists_url":"https://api.github.com/users/stapler/gists{/gist_id}","starred_url":"https://api.github.com/users/stapler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapler/subscriptions","organizations_url":"https://api.github.com/users/stapler/orgs","repos_url":"https://api.github.com/users/stapler/repos","events_url":"https://api.github.com/users/stapler/events{/privacy}","received_events_url":"https://api.github.com/users/stapler/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stapler/stapler","description":"Stapler web framework","fork":false,"url":"https://api.github.com/repos/stapler/stapler","forks_url":"https://api.github.com/repos/stapler/stapler/forks","keys_url":"https://api.github.com/repos/stapler/stapler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stapler/stapler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stapler/stapler/teams","hooks_url":"https://api.github.com/repos/stapler/stapler/hooks","issue_events_url":"https://api.github.com/repos/stapler/stapler/issues/events{/number}","events_url":"https://api.github.com/repos/stapler/stapler/events","assignees_url":"https://api.github.com/repos/stapler/stapler/assignees{/user}","branches_url":"https://api.github.com/repos/stapler/stapler/branches{/branch}","tags_url":"https://api.github.com/repos/stapler/stapler/tags","blobs_url":"https://api.github.com/repos/stapler/stapler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stapler/stapler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stapler/stapler/git/refs{/sha}","trees_url":"https://api.github.com/repos/stapler/stapler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stapler/stapler/statuses/{sha}","languages_url":"https://api.github.com/repos/stapler/stapler/languages","stargazers_url":"https://api.github.com/repos/stapler/stapler/stargazers","contributors_url":"https://api.github.com/repos/stapler/stapler/contributors","subscribers_url":"https://api.github.com/repos/stapler/stapler/subscribers","subscription_url":"https://api.github.com/repos/stapler/stapler/subscription","commits_url":"https://api.github.com/repos/stapler/stapler/commits{/sha}","git_commits_url":"https://api.github.com/repos/stapler/stapler/git/commits{/sha}","comments_url":"https://api.github.com/repos/stapler/stapler/comments{/number}","issue_comment_url":"https://api.github.com/repos/stapler/stapler/issues/comments{/number}","contents_url":"https://api.github.com/repos/stapler/stapler/contents/{+path}","compare_url":"https://api.github.com/repos/stapler/stapler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stapler/stapler/merges","archive_url":"https://api.github.com/repos/stapler/stapler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stapler/stapler/downloads","issues_url":"https://api.github.com/repos/stapler/stapler/issues{/number}","pulls_url":"https://api.github.com/repos/stapler/stapler/pulls{/number}","milestones_url":"https://api.github.com/repos/stapler/stapler/milestones{/number}","notifications_url":"https://api.github.com/repos/stapler/stapler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stapler/stapler/labels{/name}","releases_url":"https://api.github.com/repos/stapler/stapler/releases{/id}","deployments_url":"https://api.github.com/repos/stapler/stapler/deployments","created_at":"2011-03-30T22:39:45Z","updated_at":"2019-08-27T16:42:33Z","pushed_at":"2019-08-19T18:47:57Z","git_url":"git://github.com/stapler/stapler.git","ssh_url":"git@github.com:stapler/stapler.git","clone_url":"https://github.com/stapler/stapler.git","svn_url":"https://github.com/stapler/stapler","homepage":"http://stapler.kohsuke.org/","size":41906,"stargazers_count":112,"watchers_count":112,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":28,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":75,"open_issues":28,"watchers":112,"default_branch":"master","permissions":{"admin":false,"push":false,"pull":true},"organization":{"login":"stapler","id":700341,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMDM0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/700341?v=4","gravatar_id":"","url":"https://api.github.com/users/stapler","html_url":"https://github.com/stapler","followers_url":"https://api.github.com/users/stapler/followers","following_url":"https://api.github.com/users/stapler/following{/other_user}","gists_url":"https://api.github.com/users/stapler/gists{/gist_id}","starred_url":"https://api.github.com/users/stapler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapler/subscriptions","organizations_url":"https://api.github.com/users/stapler/orgs","repos_url":"https://api.github.com/users/stapler/repos","events_url":"https://api.github.com/users/stapler/events{/privacy}","received_events_url":"https://api.github.com/users/stapler/received_events","type":"Organization","site_admin":false},"network_count":75,"subscribers_count":12} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json new file mode 100644 index 0000000000..d5cb14b50a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json @@ -0,0 +1 @@ +[{"sha":"950acbd60ed4289520dcd2a395e5d77f181e1cff","node_id":"MDY6Q29tbWl0MTU0ODUxNDo5NTBhY2JkNjBlZDQyODk1MjBkY2QyYTM5NWU1ZDc3ZjE4MWUxY2Zm","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:53Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:53Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8","url":"https://api.github.com/repos/stapler/stapler/git/trees/cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAl1a7L0ACgkQHdpp2Uti\nQxHaAwgApG8F+WMMEdEkw5pqcbz3m5fIRD47tKvgyXHRzE9nCIQ26GLyw4gRNBX+\nDT2lOE6EEPSpC5yqlAJSOZUKlmh7QLbolJwfm5NTi6+siV0zFQB7Y1A/BW6PawCh\nPoCgkWIpR6ElC2y48KSmWRC5BJ4NkXtwh/v3yqa094wY1zlv5EazT/e2CcWhL7Ky\n0/a4IFMFuVRMt1qzY43umTAWP6k36PorBWHOTsMrQ2Nrq3LHjbldH3KzRPqkWy9X\ntTp5hMQ1zr4wQYeb9duQFE5m8UcJaZP1Rl0uET2DdeceibLBeFWEFruuzWeY6y+d\ngmzN3JL1Qjeex/qI3s1G4vh0ybfxMg==\n=lHha\n-----END PGP SIGNATURE-----","payload":"tree cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8\nparent 6a243869aa3c3f80579102d00848a0083953d654\nauthor Jesse Glick 1566239933 -0400\ncommitter Jesse Glick 1566239933 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff","html_url":"https://github.com/stapler/stapler/commit/950acbd60ed4289520dcd2a395e5d77f181e1cff","comments_url":"https://api.github.com/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"6a243869aa3c3f80579102d00848a0083953d654","url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654","html_url":"https://github.com/stapler/stapler/commit/6a243869aa3c3f80579102d00848a0083953d654"}]},{"sha":"6a243869aa3c3f80579102d00848a0083953d654","node_id":"MDY6Q29tbWl0MTU0ODUxNDo2YTI0Mzg2OWFhM2MzZjgwNTc5MTAyZDAwODQ4YTAwODM5NTNkNjU0","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:42Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:42Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.258","tree":{"sha":"61eb4efc23a5899681e45c581290617c98856e26","url":"https://api.github.com/repos/stapler/stapler/git/trees/61eb4efc23a5899681e45c581290617c98856e26"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/6a243869aa3c3f80579102d00848a0083953d654","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAl1a7LIACgkQHdpp2Uti\nQxEO8wf/fbacmCDXus8GhagFs240dUjvMbKTxVTX0yS8dHf7TvmpljikXRC8l4RM\nYy9g+J0Gbf9jMaz8walo4bXt7m8RaCDJmcKyA3Y3vC3O5G2Y5wlFLQwtN0ZykbKc\nPH0xLW4n8NBWBk1F50ka9y+/EBEAeMn8oSjmJhBDyc+xWWiuewrYaiX81JHKU9PY\ngwYW+eCxh0Z14CZQstfJx8SeVXbWJtpm+x/Hyjetj7VaVdvzKNAUTQ6wPp5drvGI\nQ0H91v01TA5pskbKDeegMLIlItqyjgjTnGV8rx4JjzZcvH+lPXbnI5Tcb68DvZgN\noJt4cb0b5dIo1pSbzF9W5i6Ro8QxGA==\n=Mduu\n-----END PGP SIGNATURE-----","payload":"tree 61eb4efc23a5899681e45c581290617c98856e26\nparent 3d3d6f01c553724350a6763d9b726fc3db268ccf\nauthor Jesse Glick 1566239922 -0400\ncommitter Jesse Glick 1566239922 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.258\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654","html_url":"https://github.com/stapler/stapler/commit/6a243869aa3c3f80579102d00848a0083953d654","comments_url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"3d3d6f01c553724350a6763d9b726fc3db268ccf","url":"https://api.github.com/repos/stapler/stapler/commits/3d3d6f01c553724350a6763d9b726fc3db268ccf","html_url":"https://github.com/stapler/stapler/commit/3d3d6f01c553724350a6763d9b726fc3db268ccf"}]},{"sha":"06b1108ec041fd8d6e7f54c8578d84a672fee9e4","node_id":"MDY6Q29tbWl0MTU0ODUxNDowNmIxMTA4ZWMwNDFmZDhkNmU3ZjU0Yzg1NzhkODRhNjcyZmVlOWU0","commit":{"author":{"name":"Jeff Thompson","email":"37345299+jeffret-b@users.noreply.github.com","date":"2019-08-19T17:42:58Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2019-08-19T17:42:58Z"},"message":"Update BSD license reference.\n\nCo-Authored-By: Jesse Glick ","tree":{"sha":"859fffa8ce0c958e4e4209c7a758be16f0c97c55","url":"https://api.github.com/repos/stapler/stapler/git/trees/859fffa8ce0c958e4e4209c7a758be16f0c97c55"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJdWt+iCRBK7hj4Ov3rIwAAdHIIAF2vncFEFRwkJdZrVZEkT30N\neYJXFeILq+wFRDuWEDOueIkUwCy9Z4xYnM/n7fw+51LsRK+4kaFNjP6HFJGr/+m5\nioCArE27vaXnZjTAldpAG0Jku3eIfChutub0HcBy4UURozLw70ajWpbA3vOQ560B\ntontgx2I/pJmwOqkXRVvM7yxTlW751kyTVWScCtOeX2efuveeotECsDrqScKxq66\nkvJ1xmb9olWdlTjChOgqNrLbLC0jUHqc1nMGCkkVL0Pl2BMB8cXrKBQyU71ZuVJt\n4EW8IBWBtuHwHFtwABBCHXdtSsCGPat0hVag72CHiqKoZV/EAPecIlyiZMAYYig=\n=7zTb\n-----END PGP SIGNATURE-----\n","payload":"tree 859fffa8ce0c958e4e4209c7a758be16f0c97c55\nparent 2a971c4e38c6d6693f7ad8b6768e4d74840d6679\nauthor Jeff Thompson <37345299+jeffret-b@users.noreply.github.com> 1566236578 -0600\ncommitter GitHub 1566236578 -0600\n\nUpdate BSD license reference.\n\nCo-Authored-By: Jesse Glick "}},"url":"https://api.github.com/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","html_url":"https://github.com/stapler/stapler/commit/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","comments_url":"https://api.github.com/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","site_admin":false},"parents":[{"sha":"2a971c4e38c6d6693f7ad8b6768e4d74840d6679","url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","html_url":"https://github.com/stapler/stapler/commit/2a971c4e38c6d6693f7ad8b6768e4d74840d6679"}]},{"sha":"2a971c4e38c6d6693f7ad8b6768e4d74840d6679","node_id":"MDY6Q29tbWl0MTU0ODUxNDoyYTk3MWM0ZTM4YzZkNjY5M2Y3YWQ4YjY3NjhlNGQ3NDg0MGQ2Njc5","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-06-28T16:16:04Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-06-28T16:21:18Z"},"message":"A little bit of pom cleanup.\n\nPrimarily about using https.","tree":{"sha":"3ebce198db76fb2e0073f2698c255ea0eee6527c","url":"https://api.github.com/repos/stapler/stapler/git/trees/3ebce198db76fb2e0073f2698c255ea0eee6527c"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","html_url":"https://github.com/stapler/stapler/commit/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","comments_url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7","url":"https://api.github.com/repos/stapler/stapler/commits/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7","html_url":"https://github.com/stapler/stapler/commit/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7"}]},{"sha":"2f4ca0f03c1e6188867bddddce12ff213a107d9d","node_id":"MDY6Q29tbWl0MTU0ODUxNDoyZjRjYTBmMDNjMWU2MTg4ODY3YmRkZGRjZTEyZmYyMTNhMTA3ZDlk","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:21Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:21Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"f8ca916d33ffab1c342e6a92f7fd44dbad1609ec","url":"https://api.github.com/repos/stapler/stapler/git/trees/f8ca916d33ffab1c342e6a92f7fd44dbad1609ec"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWGkACgkQHdpp2Uti\nQxF9Hgf9Es/4uq/vG+zlttbpXr/RwYUgLiTO2Dw8bs+21OxfApMF0OBUtgb3SPdf\nMvWCc13Jbg3yQ2JaIP4IziEoTxZCu2ZEpgW6VtXik63f7HWyxeTeuO0I/kGNIm6J\nU4bZgeryOImU06w3SGTiaNvcxLsOjp99E8aIILqDrrHEN47sW5rBnKDDRzB5Ga74\nvZt88peqr792b6DGhYpjwl+qj3Hxqdm11JOAEwP6dLl5NhStQW6nZezcJnYJqSyd\ntfQQ0m+9qqSZaY+moenDnKEh9LleswGQwex84UNdG7i4gwsQs5GhCXaN3gMCtyiz\nU4nPC4mD3wbw93S1zORXGXvK0pUq5g==\n=KJwq\n-----END PGP SIGNATURE-----","payload":"tree f8ca916d33ffab1c342e6a92f7fd44dbad1609ec\nparent d922b808068cf95d6f6ab624ce2c7f49d51f5321\nauthor Jesse Glick 1554733161 -0400\ncommitter Jesse Glick 1554733161 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d","html_url":"https://github.com/stapler/stapler/commit/2f4ca0f03c1e6188867bddddce12ff213a107d9d","comments_url":"https://api.github.com/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","html_url":"https://github.com/stapler/stapler/commit/d922b808068cf95d6f6ab624ce2c7f49d51f5321"}]},{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","node_id":"MDY6Q29tbWl0MTU0ODUxNDpkOTIyYjgwODA2OGNmOTVkNmY2YWI2MjRjZTJjN2Y0OWQ1MWY1MzIx","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:11Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:11Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.257","tree":{"sha":"86a648b84700a80e22f089252cea0d70e61857bf","url":"https://api.github.com/repos/stapler/stapler/git/trees/86a648b84700a80e22f089252cea0d70e61857bf"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWF8ACgkQHdpp2Uti\nQxFUSQf/TTTCnvT3vAgDwXjs8YOqX9HNxwGl7ugrAN6TU2tRhBjLQovwFZgdJWMK\nVbQ9LNHPM4pDmedCnSMV7dd7b686Auy4qY3oSrr4ATtOZFj+qIxo3WzLXFfTm0+f\n2crxX4TrVj+to5kFb+tXZo5tB/36WThebpVJvT8KMgGEuUheYOanJeqqygsH0eCe\nbC3lMunAqKIe1NFxrEVET4Ut6Gt+SvOhzqf0bJASnPKiyugz68ZpOUOsHHAe3sxo\nlYUBrILfrMsUzxBTfcVVpSIUVv5gIQXVdzK+Jk27sCIfw9iV2Is7BlHW63inZHCM\nkjGyPLEI+rikA5xSrqrK37Omfha3Rw==\n=C5kb\n-----END PGP SIGNATURE-----","payload":"tree 86a648b84700a80e22f089252cea0d70e61857bf\nparent efe737fa365a0187e052bc81391efbd84847a1b0\nauthor Jesse Glick 1554733151 -0400\ncommitter Jesse Glick 1554733151 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.257\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","html_url":"https://github.com/stapler/stapler/commit/d922b808068cf95d6f6ab624ce2c7f49d51f5321","comments_url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"efe737fa365a0187e052bc81391efbd84847a1b0","url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0","html_url":"https://github.com/stapler/stapler/commit/efe737fa365a0187e052bc81391efbd84847a1b0"}]},{"sha":"efe737fa365a0187e052bc81391efbd84847a1b0","node_id":"MDY6Q29tbWl0MTU0ODUxNDplZmU3MzdmYTM2NWEwMTg3ZTA1MmJjODEzOTFlZmJkODQ4NDdhMWIw","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:17:55Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:17:55Z"},"message":"#157 neglected to add incrementals-maven-plugin to pluginManagement, breaking reincrementalify during release.","tree":{"sha":"109f198441d6524d99e237ac863e28e80ad77e59","url":"https://api.github.com/repos/stapler/stapler/git/trees/109f198441d6524d99e237ac863e28e80ad77e59"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/efe737fa365a0187e052bc81391efbd84847a1b0","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWBMACgkQHdpp2Uti\nQxFdngf9HAAKvEN8oIEBq5Vy45V80FMdWVjiYb21qoZ5l6KHNgLm1AmBsnQWvvpU\n1Q+VKMfdp6+492flDYrn+rjLOVAUcHwReTHtyq7YqkUP1E/4FJfT/8mi0szD9u4+\nhDUWKUs0//LLqTGHGgvLcQc4FXHNzcuZIowOfuHlCAOgWHqWuYDnb4aFhY3s8RdJ\na6E0V9MeUtmehKZBhGedfY+b/JpudFC+9dquR5rHEg8cP5jr7Gc3Ifcgx9nNMYXE\nn8qiwz02udK8pU+Z1KVzU4NbHydVHN8V4GceeDhqRbNNM0hjJ1ieBQefpJ+7E76R\nW9pTOeYzI9Xi1nA2pqHR5HVIk5OggA==\n=FmWz\n-----END PGP SIGNATURE-----","payload":"tree 109f198441d6524d99e237ac863e28e80ad77e59\nparent 08b13de864bc134fd790decd4f20db9074c7685f\nauthor Jesse Glick 1554733075 -0400\ncommitter Jesse Glick 1554733075 -0400\n\n#157 neglected to add incrementals-maven-plugin to pluginManagement, breaking reincrementalify during release.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0","html_url":"https://github.com/stapler/stapler/commit/efe737fa365a0187e052bc81391efbd84847a1b0","comments_url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"08b13de864bc134fd790decd4f20db9074c7685f","url":"https://api.github.com/repos/stapler/stapler/commits/08b13de864bc134fd790decd4f20db9074c7685f","html_url":"https://github.com/stapler/stapler/commit/08b13de864bc134fd790decd4f20db9074c7685f"}]},{"sha":"53ce34d7d89c5172ae4f4f3167e35852b1910b59","node_id":"MDY6Q29tbWl0MTU0ODUxNDo1M2NlMzRkN2Q4OWM1MTcyYWU0ZjRmMzE2N2UzNTg1MmIxOTEwYjU5","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-03T19:03:54Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-03T19:03:54Z"},"message":"Miscellaneous POM updates while I am here.","tree":{"sha":"996a8d951dc95bc002ee4703865f45594418902e","url":"https://api.github.com/repos/stapler/stapler/git/trees/996a8d951dc95bc002ee4703865f45594418902e"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlylA5oACgkQHdpp2Uti\nQxFfbgf/Sv3T07OcY1W31Z1RyUVaEx0WeZpfZPuAOibFGfGLC6wpa4LCJCwaTK5l\n2I5T9nNZ95/22S3nsFHyb+VAnOFusXblKw8W6BvvyUWwNXzoBQGgvg37hKyNFwdO\nMRdErOixk71Yb6cnCatvzIpBuM4ENO77/TNvLtBApCETO9UQf6GjLU4jbHJySEHJ\n/NXvpdO1Xu5WskTc2k8/x+dtuilvLEAdMZUEHBiBTcGTUGQqedC6C7Mg3pTm9zGE\nQPj5THk+GZ6fD4KJwx0lyW9dGwTM9XYC/hjVs6AHC2dlROFiJ8/K722Fqti/zAyM\nDYz6+UUHcugK555ttRS1ntqgjxxEPw==\n=kTXy\n-----END PGP SIGNATURE-----","payload":"tree 996a8d951dc95bc002ee4703865f45594418902e\nparent 0e294ea94617a0926bd583dfe41515f4afb881e7\nauthor Jesse Glick 1554318234 -0400\ncommitter Jesse Glick 1554318234 -0400\n\nMiscellaneous POM updates while I am here.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59","html_url":"https://github.com/stapler/stapler/commit/53ce34d7d89c5172ae4f4f3167e35852b1910b59","comments_url":"https://api.github.com/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"0e294ea94617a0926bd583dfe41515f4afb881e7","url":"https://api.github.com/repos/stapler/stapler/commits/0e294ea94617a0926bd583dfe41515f4afb881e7","html_url":"https://github.com/stapler/stapler/commit/0e294ea94617a0926bd583dfe41515f4afb881e7"}]},{"sha":"72343298733508cced8dcb8eb43594bcc6130b26","node_id":"MDY6Q29tbWl0MTU0ODUxNDo3MjM0MzI5ODczMzUwOGNjZWQ4ZGNiOGViNDM1OTRiY2M2MTMwYjI2","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-19T21:27:25Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-19T21:27:25Z"},"message":"Update to latest versions.","tree":{"sha":"e1299f37e2ce97636d923a5631265279a5377b6d","url":"https://api.github.com/repos/stapler/stapler/git/trees/e1299f37e2ce97636d923a5631265279a5377b6d"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/72343298733508cced8dcb8eb43594bcc6130b26","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26","html_url":"https://github.com/stapler/stapler/commit/72343298733508cced8dcb8eb43594bcc6130b26","comments_url":"https://api.github.com/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"def3808ecd41583818aef3b35675756f00a45bbe","url":"https://api.github.com/repos/stapler/stapler/commits/def3808ecd41583818aef3b35675756f00a45bbe","html_url":"https://github.com/stapler/stapler/commit/def3808ecd41583818aef3b35675756f00a45bbe"}]},{"sha":"4f260c560ec120f4e2c2ed727244690b1f4d5dca","node_id":"MDY6Q29tbWl0MTU0ODUxNDo0ZjI2MGM1NjBlYzEyMGY0ZTJjMmVkNzI3MjQ0NjkwYjFmNGQ1ZGNh","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-18T22:52:29Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-18T22:52:29Z"},"message":"Enable incrementals.\n\nSince this isn't a plugin, I followed the instructions to do it the hard way. Hopefully it's not too weird to work.","tree":{"sha":"575f9abb94a915cfc9fb0fdcc681648aade5cd1f","url":"https://api.github.com/repos/stapler/stapler/git/trees/575f9abb94a915cfc9fb0fdcc681648aade5cd1f"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca","html_url":"https://github.com/stapler/stapler/commit/4f260c560ec120f4e2c2ed727244690b1f4d5dca","comments_url":"https://api.github.com/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"a019ca42d01dbe7d88f56deade245d7c0366624c","url":"https://api.github.com/repos/stapler/stapler/commits/a019ca42d01dbe7d88f56deade245d7c0366624c","html_url":"https://github.com/stapler/stapler/commit/a019ca42d01dbe7d88f56deade245d7c0366624c"}]},{"sha":"78f721eb58c25f2c742d93479ff66a3cf98f508a","node_id":"MDY6Q29tbWl0MTU0ODUxNDo3OGY3MjFlYjU4YzI1ZjJjNzQyZDkzNDc5ZmY2NmEzY2Y5OGY1MDhh","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-12-14T20:22:38Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-12-14T20:22:38Z"},"message":"Port of https://github.com/jenkinsci/pom/pull/34.","tree":{"sha":"fbbb94d44b8c382d4cb20faf5824811be9bc9670","url":"https://api.github.com/repos/stapler/stapler/git/trees/fbbb94d44b8c382d4cb20faf5824811be9bc9670"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/78f721eb58c25f2c742d93479ff66a3cf98f508a","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlwUEQ4ACgkQHdpp2Uti\nQxFIegf+O6pldE7TilUNFUpruU1EeLsjhc7BiOMPYPD4gGx7/BF3hTJ5zm7KKip9\nr27Xjs+sQipDCKv9HV3t+PHVB6NvkHkivRVpKI8NKQtyK33K+0NH8mwpSfYRQxUa\npW78Ycs7e2mBomHD0Eiv2EDO+T343YhCvOkNhYO+GU2PMeRfaTr8fp5A8XlrqBDC\nNdEoKPZDmNRXQBTUW2QomuP28PNGzDWXMCJ/pZ8us+YYoBmn0mxf9F7azcgxlkUd\nqbSfgehjd+O5UlRuHqJ7SMN7PGP5fuEQ6xAFkTo/4pqy6U3A/eSDzJtKaRg1MQ8g\np/PQ2FjTt08q2UjvYu1rtDVeLQSmxw==\n=HSGY\n-----END PGP SIGNATURE-----","payload":"tree fbbb94d44b8c382d4cb20faf5824811be9bc9670\nparent cebe82d8aee82f93797f315a230fcc74ff950f64\nauthor Jesse Glick 1544818958 -0500\ncommitter Jesse Glick 1544818958 -0500\n\nPort of https://github.com/jenkinsci/pom/pull/34.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/78f721eb58c25f2c742d93479ff66a3cf98f508a","html_url":"https://github.com/stapler/stapler/commit/78f721eb58c25f2c742d93479ff66a3cf98f508a","comments_url":"https://api.github.com/repos/stapler/stapler/commits/78f721eb58c25f2c742d93479ff66a3cf98f508a/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"cebe82d8aee82f93797f315a230fcc74ff950f64","url":"https://api.github.com/repos/stapler/stapler/commits/cebe82d8aee82f93797f315a230fcc74ff950f64","html_url":"https://github.com/stapler/stapler/commit/cebe82d8aee82f93797f315a230fcc74ff950f64"}]},{"sha":"7b57b988f4af83d41ca2c17277bca4049522baaa","node_id":"MDY6Q29tbWl0MTU0ODUxNDo3YjU3Yjk4OGY0YWY4M2Q0MWNhMmMxNzI3N2JjYTQwNDk1MjJiYWFh","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-11-20T22:50:07Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-11-20T22:50:07Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"cc2e431cfba52e2f2e56bac66e756f49fe879b48","url":"https://api.github.com/repos/stapler/stapler/git/trees/cc2e431cfba52e2f2e56bac66e756f49fe879b48"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/7b57b988f4af83d41ca2c17277bca4049522baaa","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/7b57b988f4af83d41ca2c17277bca4049522baaa","html_url":"https://github.com/stapler/stapler/commit/7b57b988f4af83d41ca2c17277bca4049522baaa","comments_url":"https://api.github.com/repos/stapler/stapler/commits/7b57b988f4af83d41ca2c17277bca4049522baaa/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"d9f05512169d70bbd8deff1e87afe3fdd251dc54","url":"https://api.github.com/repos/stapler/stapler/commits/d9f05512169d70bbd8deff1e87afe3fdd251dc54","html_url":"https://github.com/stapler/stapler/commit/d9f05512169d70bbd8deff1e87afe3fdd251dc54"}]},{"sha":"d9f05512169d70bbd8deff1e87afe3fdd251dc54","node_id":"MDY6Q29tbWl0MTU0ODUxNDpkOWYwNTUxMjE2OWQ3MGJiZDhkZWZmMWU4N2FmZTNmZGQyNTFkYzU0","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-11-20T22:50:06Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-11-20T22:50:06Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.256","tree":{"sha":"72489bbab47bb18acb370d8f84b150343b7dd358","url":"https://api.github.com/repos/stapler/stapler/git/trees/72489bbab47bb18acb370d8f84b150343b7dd358"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/d9f05512169d70bbd8deff1e87afe3fdd251dc54","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/d9f05512169d70bbd8deff1e87afe3fdd251dc54","html_url":"https://github.com/stapler/stapler/commit/d9f05512169d70bbd8deff1e87afe3fdd251dc54","comments_url":"https://api.github.com/repos/stapler/stapler/commits/d9f05512169d70bbd8deff1e87afe3fdd251dc54/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"d9c0e42d4d8d4fa46e88370a4dc1239a4761cd20","url":"https://api.github.com/repos/stapler/stapler/commits/d9c0e42d4d8d4fa46e88370a4dc1239a4761cd20","html_url":"https://github.com/stapler/stapler/commit/d9c0e42d4d8d4fa46e88370a4dc1239a4761cd20"}]},{"sha":"86e213c169ee0ea3565f9b5bd58707bc00a09b02","node_id":"MDY6Q29tbWl0MTU0ODUxNDo4NmUyMTNjMTY5ZWUwZWEzNTY1ZjliNWJkNTg3MDdiYzAwYTA5YjAy","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-10-11T13:14:48Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-10-11T13:14:48Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"c1c7e1eecffdf77e20f4b07a0690f599d3ca9a56","url":"https://api.github.com/repos/stapler/stapler/git/trees/c1c7e1eecffdf77e20f4b07a0690f599d3ca9a56"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/86e213c169ee0ea3565f9b5bd58707bc00a09b02","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlu/TMgACgkQHdpp2Uti\nQxE9/Af+K1ShxOzSJcAa90xQZ3hMpj4H4EB6O85roPMakUlVdzhcAKny9FYuMH7H\nK+j+LMaXe17ZKOcj6FTg0MMA8eEE5WjMEHUIQKsJCes5V0xBfJtB6OGeR1nSNFR2\ndGCPuaPMqCT43JZCYgVr3o+/Eylpz1HQlljbp5eanfYX0AdSGmaFOLSrEC4HZ8VW\neTzJbElZTHLtwxOZJWIgRM/LgQA65pSDOBarSshw6pmNg/NnrMSqF+hiCQ+tuLxg\nIpp980DtB1DuXAjE92vdMe2SZLkF1TpeO01i4qnhHLzAAqDs5z2xZmr+Om8dOMg7\nJA95XVBFDZMK33hySR+QW3UtvBbgXg==\n=QROA\n-----END PGP SIGNATURE-----","payload":"tree c1c7e1eecffdf77e20f4b07a0690f599d3ca9a56\nparent c7d9760c909ca34c9c8ad3e8959a79eec433b45e\nauthor Jesse Glick 1539263688 -0400\ncommitter Jesse Glick 1539263688 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/86e213c169ee0ea3565f9b5bd58707bc00a09b02","html_url":"https://github.com/stapler/stapler/commit/86e213c169ee0ea3565f9b5bd58707bc00a09b02","comments_url":"https://api.github.com/repos/stapler/stapler/commits/86e213c169ee0ea3565f9b5bd58707bc00a09b02/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"c7d9760c909ca34c9c8ad3e8959a79eec433b45e","url":"https://api.github.com/repos/stapler/stapler/commits/c7d9760c909ca34c9c8ad3e8959a79eec433b45e","html_url":"https://github.com/stapler/stapler/commit/c7d9760c909ca34c9c8ad3e8959a79eec433b45e"}]},{"sha":"c7d9760c909ca34c9c8ad3e8959a79eec433b45e","node_id":"MDY6Q29tbWl0MTU0ODUxNDpjN2Q5NzYwYzkwOWNhMzRjOWM4YWQzZTg5NTlhNzllZWM0MzNiNDVl","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-10-11T13:14:41Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-10-11T13:14:41Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.255","tree":{"sha":"cb599cb07bfc68659244ba69d941e29263f91425","url":"https://api.github.com/repos/stapler/stapler/git/trees/cb599cb07bfc68659244ba69d941e29263f91425"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/c7d9760c909ca34c9c8ad3e8959a79eec433b45e","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlu/TMEACgkQHdpp2Uti\nQxFiCwgAlSUgLjLRfmahF5y+T4wwQXWt1WeCLlkKdjEGoTovGEgz2Q8qCS9KmnlE\nD1E+SNb5XbLcQI88X61sl8cGiUvE0nvPdT6yxWAolmyrOKwquPocwwdAfSdHrb7F\nk+YtzxRl/Di2CMAzgpSFvdBW+qW+MCbPwOTsVpC9lPLluzEF4+zu6vkeRhdodxu+\nvsG+p4oxNyLRi7oyFHhzE+bODUoFBNfSmLoCkNeO0gEN81IFnE+fKbPE9uCuOqMf\n6NKQXJNzYd/K59fJA6IPcE+yCoh0qol8Y954PTfqHev6o9TABwxf+dUEz2aqNfl+\ndk7d6yGVZOWA1KuTWd10jFe5gpRTrA==\n=LsFr\n-----END PGP SIGNATURE-----","payload":"tree cb599cb07bfc68659244ba69d941e29263f91425\nparent 9de442464f5a40263e1c001c4c8ec4c8fbbefb30\nauthor Jesse Glick 1539263681 -0400\ncommitter Jesse Glick 1539263681 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.255\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/c7d9760c909ca34c9c8ad3e8959a79eec433b45e","html_url":"https://github.com/stapler/stapler/commit/c7d9760c909ca34c9c8ad3e8959a79eec433b45e","comments_url":"https://api.github.com/repos/stapler/stapler/commits/c7d9760c909ca34c9c8ad3e8959a79eec433b45e/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"9de442464f5a40263e1c001c4c8ec4c8fbbefb30","url":"https://api.github.com/repos/stapler/stapler/commits/9de442464f5a40263e1c001c4c8ec4c8fbbefb30","html_url":"https://github.com/stapler/stapler/commit/9de442464f5a40263e1c001c4c8ec4c8fbbefb30"}]},{"sha":"a3a2412a6d348cd97d5edfdf727996118d6c9c43","node_id":"MDY6Q29tbWl0MTU0ODUxNDphM2EyNDEyYTZkMzQ4Y2Q5N2Q1ZWRmZGY3Mjc5OTYxMThkNmM5YzQz","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-10-11T12:00:25Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2018-10-11T12:00:25Z"},"message":"Reverting version change from #146.","tree":{"sha":"2091120406431f581f483d2ce8329c7a7d9b5686","url":"https://api.github.com/repos/stapler/stapler/git/trees/2091120406431f581f483d2ce8329c7a7d9b5686"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/a3a2412a6d348cd97d5edfdf727996118d6c9c43","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlu/O1kACgkQHdpp2Uti\nQxHm2Qf/bF+fwm1u2KfSW9CAJFzVntw6fEwiEtL7J1dUUMngDhhAuxQjer14ldru\nAy9bsf20/rNLOGL71ibivTR4ExZMbOByYmnh3Po9R/kYWZG5erFLNIf/ax2lpgEB\nCXnOKVnmTmCnLN6N4xWDEauzVBJyK2bk9gILWbFKi2of4M12KXXaXoBpJimg0yZr\neymffa3SYexO7cN6xGaM/HO2UEoi2zTQqqGgV6Mt1gbUHmahnuRjNxTJ23GStfZQ\nSOmFTCeMPjUOqhpt+n3vu6x9KrV+/JmL2GtD/HEdHn1TWEELE2mXx7+TYBExOShx\nEWISOQWwZh1iZSF3z0KfprwuhsaStw==\n=4U63\n-----END PGP SIGNATURE-----","payload":"tree 2091120406431f581f483d2ce8329c7a7d9b5686\nparent baae85648bcc3b7614e06136d69a3a3308161ac2\nauthor Jesse Glick 1539259225 -0400\ncommitter Jesse Glick 1539259225 -0400\n\nReverting version change from #146.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/a3a2412a6d348cd97d5edfdf727996118d6c9c43","html_url":"https://github.com/stapler/stapler/commit/a3a2412a6d348cd97d5edfdf727996118d6c9c43","comments_url":"https://api.github.com/repos/stapler/stapler/commits/a3a2412a6d348cd97d5edfdf727996118d6c9c43/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"baae85648bcc3b7614e06136d69a3a3308161ac2","url":"https://api.github.com/repos/stapler/stapler/commits/baae85648bcc3b7614e06136d69a3a3308161ac2","html_url":"https://github.com/stapler/stapler/commit/baae85648bcc3b7614e06136d69a3a3308161ac2"}]},{"sha":"7d06fa1264dc96380e37aa15eb12289ad68690aa","node_id":"MDY6Q29tbWl0MTU0ODUxNDo3ZDA2ZmExMjY0ZGM5NjM4MGUzN2FhMTVlYjEyMjg5YWQ2ODY5MGFh","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-09-27T00:33:05Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-09-27T00:33:05Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"9f43ea7f6eeba931f4fb54ab992c0d6c5860b47e","url":"https://api.github.com/repos/stapler/stapler/git/trees/9f43ea7f6eeba931f4fb54ab992c0d6c5860b47e"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/7d06fa1264dc96380e37aa15eb12289ad68690aa","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/7d06fa1264dc96380e37aa15eb12289ad68690aa","html_url":"https://github.com/stapler/stapler/commit/7d06fa1264dc96380e37aa15eb12289ad68690aa","comments_url":"https://api.github.com/repos/stapler/stapler/commits/7d06fa1264dc96380e37aa15eb12289ad68690aa/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"91087c2e85b9e9539fb291c8298fb4692a7c2d84","url":"https://api.github.com/repos/stapler/stapler/commits/91087c2e85b9e9539fb291c8298fb4692a7c2d84","html_url":"https://github.com/stapler/stapler/commit/91087c2e85b9e9539fb291c8298fb4692a7c2d84"}]},{"sha":"91087c2e85b9e9539fb291c8298fb4692a7c2d84","node_id":"MDY6Q29tbWl0MTU0ODUxNDo5MTA4N2MyZTg1YjllOTUzOWZiMjkxYzgyOThmYjQ2OTJhN2MyZDg0","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-09-27T00:33:04Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-09-27T00:33:04Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.254.2","tree":{"sha":"c928a28e808845dd5c6008c255205a3ca7f15650","url":"https://api.github.com/repos/stapler/stapler/git/trees/c928a28e808845dd5c6008c255205a3ca7f15650"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/91087c2e85b9e9539fb291c8298fb4692a7c2d84","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/91087c2e85b9e9539fb291c8298fb4692a7c2d84","html_url":"https://github.com/stapler/stapler/commit/91087c2e85b9e9539fb291c8298fb4692a7c2d84","comments_url":"https://api.github.com/repos/stapler/stapler/commits/91087c2e85b9e9539fb291c8298fb4692a7c2d84/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"e161023b9284f7572064c7618c896e5c29035ab1","url":"https://api.github.com/repos/stapler/stapler/commits/e161023b9284f7572064c7618c896e5c29035ab1","html_url":"https://github.com/stapler/stapler/commit/e161023b9284f7572064c7618c896e5c29035ab1"}]},{"sha":"5264351dda1af88557c0ebd9be6ce050bc883ca1","node_id":"MDY6Q29tbWl0MTU0ODUxNDo1MjY0MzUxZGRhMWFmODg1NTdjMGViZDliZTZjZTA1MGJjODgzY2Ex","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-06-19T18:46:22Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-06-19T18:46:22Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"2bab1a02c342004f23ba782d3bed830a6fe1943b","url":"https://api.github.com/repos/stapler/stapler/git/trees/2bab1a02c342004f23ba782d3bed830a6fe1943b"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/5264351dda1af88557c0ebd9be6ce050bc883ca1","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/5264351dda1af88557c0ebd9be6ce050bc883ca1","html_url":"https://github.com/stapler/stapler/commit/5264351dda1af88557c0ebd9be6ce050bc883ca1","comments_url":"https://api.github.com/repos/stapler/stapler/commits/5264351dda1af88557c0ebd9be6ce050bc883ca1/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"eb7bb985c89187288fc54f9a50aeb80e90821f7c","url":"https://api.github.com/repos/stapler/stapler/commits/eb7bb985c89187288fc54f9a50aeb80e90821f7c","html_url":"https://github.com/stapler/stapler/commit/eb7bb985c89187288fc54f9a50aeb80e90821f7c"}]},{"sha":"eb7bb985c89187288fc54f9a50aeb80e90821f7c","node_id":"MDY6Q29tbWl0MTU0ODUxNDplYjdiYjk4NWM4OTE4NzI4OGZjNTRmOWE1MGFlYjgwZTkwODIxZjdj","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-06-19T18:46:22Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-06-19T18:46:22Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.254.1","tree":{"sha":"feecc3f969470e3d89d4bd003a9d63f78bff1b11","url":"https://api.github.com/repos/stapler/stapler/git/trees/feecc3f969470e3d89d4bd003a9d63f78bff1b11"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/eb7bb985c89187288fc54f9a50aeb80e90821f7c","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/eb7bb985c89187288fc54f9a50aeb80e90821f7c","html_url":"https://github.com/stapler/stapler/commit/eb7bb985c89187288fc54f9a50aeb80e90821f7c","comments_url":"https://api.github.com/repos/stapler/stapler/commits/eb7bb985c89187288fc54f9a50aeb80e90821f7c/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"4fc86172cd2e16f5793a4e0374a7cb04fbb0e3b1","url":"https://api.github.com/repos/stapler/stapler/commits/4fc86172cd2e16f5793a4e0374a7cb04fbb0e3b1","html_url":"https://github.com/stapler/stapler/commit/4fc86172cd2e16f5793a4e0374a7cb04fbb0e3b1"}]},{"sha":"cbfe2797efc3187ec58971cb0a53af4c51a150f2","node_id":"MDY6Q29tbWl0MTU0ODUxNDpjYmZlMjc5N2VmYzMxODdlYzU4OTcxY2IwYTUzYWY0YzUxYTE1MGYy","commit":{"author":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-06-19T09:36:07Z"},"committer":{"name":"Daniel Beck","email":"daniel-beck@users.noreply.github.com","date":"2018-06-19T09:36:07Z"},"message":"Towards 1.254.1","tree":{"sha":"47364ffca5098b87a28944e96a476530a2f75b2e","url":"https://api.github.com/repos/stapler/stapler/git/trees/47364ffca5098b87a28944e96a476530a2f75b2e"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/cbfe2797efc3187ec58971cb0a53af4c51a150f2","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/cbfe2797efc3187ec58971cb0a53af4c51a150f2","html_url":"https://github.com/stapler/stapler/commit/cbfe2797efc3187ec58971cb0a53af4c51a150f2","comments_url":"https://api.github.com/repos/stapler/stapler/commits/cbfe2797efc3187ec58971cb0a53af4c51a150f2/comments","author":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"committer":{"login":"daniel-beck","id":1831569,"node_id":"MDQ6VXNlcjE4MzE1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"parents":[{"sha":"d6d854ef11dceb4624478d43af503c73f6f075a6","url":"https://api.github.com/repos/stapler/stapler/commits/d6d854ef11dceb4624478d43af503c73f6f075a6","html_url":"https://github.com/stapler/stapler/commit/d6d854ef11dceb4624478d43af503c73f6f075a6"}]},{"sha":"d6d854ef11dceb4624478d43af503c73f6f075a6","node_id":"MDY6Q29tbWl0MTU0ODUxNDpkNmQ4NTRlZjExZGNlYjQ2MjQ0NzhkNDNhZjUwM2M3M2Y2ZjA3NWE2","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-12-15T18:43:45Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-12-15T18:43:45Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"48bea58de151790190cd3187c606857d3de4e37c","url":"https://api.github.com/repos/stapler/stapler/git/trees/48bea58de151790190cd3187c606857d3de4e37c"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/d6d854ef11dceb4624478d43af503c73f6f075a6","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEcBAABCAAGBQJaNBfhAAoJEB3aadlLYkMRcjsH/1hUfpv+PSjLG0Aio1fGU9qG\nsyystDM9LbEp3isRVfcQdqKosMQtCqpbAYcy37Cv7Jvcr98aaBueVX4aZgA+dxhM\nx9Xr7PiWk/7PBIntvzuxtc46STrwuZ/mSVitHYxYUx2/6/TotdNyETvujvPr/Cob\nR/7LjQ1EsjuLyGfcr7icepbpmAeHX5Ev+3phzMH/ZBpGjfGKDNTjx5hSI0ftbWYy\nHzkskS1SmlR3iSxJ+9cXBzokuJQ9k+0cGyZJlPtlC6trobphKKpCy6uXSz+zwq9g\ntnEMY+2RLbNkdxRyOrJHksHEsGOH4SCQGKgAMmmW0pR+FfYVcDbtek2mlLeSO7M=\n=kot9\n-----END PGP SIGNATURE-----","payload":"tree 48bea58de151790190cd3187c606857d3de4e37c\nparent 07a22fed12081904a6c6b89b02117279274b4065\nauthor Jesse Glick 1513363425 -0500\ncommitter Jesse Glick 1513363425 -0500\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/d6d854ef11dceb4624478d43af503c73f6f075a6","html_url":"https://github.com/stapler/stapler/commit/d6d854ef11dceb4624478d43af503c73f6f075a6","comments_url":"https://api.github.com/repos/stapler/stapler/commits/d6d854ef11dceb4624478d43af503c73f6f075a6/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"07a22fed12081904a6c6b89b02117279274b4065","url":"https://api.github.com/repos/stapler/stapler/commits/07a22fed12081904a6c6b89b02117279274b4065","html_url":"https://github.com/stapler/stapler/commit/07a22fed12081904a6c6b89b02117279274b4065"}]},{"sha":"07a22fed12081904a6c6b89b02117279274b4065","node_id":"MDY6Q29tbWl0MTU0ODUxNDowN2EyMmZlZDEyMDgxOTA0YTZjNmI4OWIwMjExNzI3OTI3NGI0MDY1","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-12-15T18:43:41Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-12-15T18:43:41Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.254","tree":{"sha":"e3245a995b2d3dec7441d4fc2f364d973da22180","url":"https://api.github.com/repos/stapler/stapler/git/trees/e3245a995b2d3dec7441d4fc2f364d973da22180"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/07a22fed12081904a6c6b89b02117279274b4065","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEcBAABCAAGBQJaNBfdAAoJEB3aadlLYkMR11AH/R8errX8ivHM8owjumQrPu3V\nne3GBScfRx9yjXhI1IaFp0s+H2Sx8ZwugA1xXti0Nt+uCrdtdCgEC8I2h4B8P/bb\nOWL8DcBr/pGvKmaBr5QXM6IolWEZHkv7uvbax9L5q19bwOFfLGWdBLMk+DVojFDe\ndYE/7oVBAj8el/zxOENsA8mLEmbrbVPNPreJkyQXQq+6SbkfSKY5/WqwFoIzwn3y\nJ1KCRTzgzbS9ISr4BRA+0UrEbDwqQNSTE7HO31RALdy1Wj4x35HtvOP7i2kFIotD\n2/l1JDo6wnwgNmh4Ir7axRprDwYnzwSlrgntM4/8fgIxPx6/PyzRvhPfcC7bnXA=\n=OZEQ\n-----END PGP SIGNATURE-----","payload":"tree e3245a995b2d3dec7441d4fc2f364d973da22180\nparent 741ad1a4534a4da79b83fbde99603b569984ad95\nauthor Jesse Glick 1513363421 -0500\ncommitter Jesse Glick 1513363421 -0500\n\n[maven-release-plugin] prepare release stapler-parent-1.254\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/07a22fed12081904a6c6b89b02117279274b4065","html_url":"https://github.com/stapler/stapler/commit/07a22fed12081904a6c6b89b02117279274b4065","comments_url":"https://api.github.com/repos/stapler/stapler/commits/07a22fed12081904a6c6b89b02117279274b4065/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"741ad1a4534a4da79b83fbde99603b569984ad95","url":"https://api.github.com/repos/stapler/stapler/commits/741ad1a4534a4da79b83fbde99603b569984ad95","html_url":"https://github.com/stapler/stapler/commit/741ad1a4534a4da79b83fbde99603b569984ad95"}]},{"sha":"ce37eb5449359ec890df229e00162d050a2eef01","node_id":"MDY6Q29tbWl0MTU0ODUxNDpjZTM3ZWI1NDQ5MzU5ZWM4OTBkZjIyOWUwMDE2MmQwNTBhMmVlZjAx","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-10-20T22:55:37Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-10-20T22:55:37Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"0061bf64d4bdb1d5e7de6a23fe5688c16cf86806","url":"https://api.github.com/repos/stapler/stapler/git/trees/0061bf64d4bdb1d5e7de6a23fe5688c16cf86806"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/ce37eb5449359ec890df229e00162d050a2eef01","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/ce37eb5449359ec890df229e00162d050a2eef01","html_url":"https://github.com/stapler/stapler/commit/ce37eb5449359ec890df229e00162d050a2eef01","comments_url":"https://api.github.com/repos/stapler/stapler/commits/ce37eb5449359ec890df229e00162d050a2eef01/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"055ee2b100f8778049410289c0fa5a3baa07cfb9","url":"https://api.github.com/repos/stapler/stapler/commits/055ee2b100f8778049410289c0fa5a3baa07cfb9","html_url":"https://github.com/stapler/stapler/commit/055ee2b100f8778049410289c0fa5a3baa07cfb9"}]},{"sha":"055ee2b100f8778049410289c0fa5a3baa07cfb9","node_id":"MDY6Q29tbWl0MTU0ODUxNDowNTVlZTJiMTAwZjg3NzgwNDk0MTAyODljMGZhNWEzYmFhMDdjZmI5","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-10-20T22:55:32Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-10-20T22:55:32Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.253","tree":{"sha":"940c7cea71c20ed3a711f627dad594088dbe0e30","url":"https://api.github.com/repos/stapler/stapler/git/trees/940c7cea71c20ed3a711f627dad594088dbe0e30"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/055ee2b100f8778049410289c0fa5a3baa07cfb9","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/055ee2b100f8778049410289c0fa5a3baa07cfb9","html_url":"https://github.com/stapler/stapler/commit/055ee2b100f8778049410289c0fa5a3baa07cfb9","comments_url":"https://api.github.com/repos/stapler/stapler/commits/055ee2b100f8778049410289c0fa5a3baa07cfb9/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"04889cf8b7651100e199a7576f644d115c224cf3","url":"https://api.github.com/repos/stapler/stapler/commits/04889cf8b7651100e199a7576f644d115c224cf3","html_url":"https://github.com/stapler/stapler/commit/04889cf8b7651100e199a7576f644d115c224cf3"}]},{"sha":"8d574a5ae22195a901a20bddf2a90f3357b4467c","node_id":"MDY6Q29tbWl0MTU0ODUxNDo4ZDU3NGE1YWUyMjE5NWE5MDFhMjBiZGRmMmE5MGYzMzU3YjQ0Njdj","commit":{"author":{"name":"Oleg Nenashev","email":"o.v.nenashev@gmail.com","date":"2017-10-13T10:27:27Z"},"committer":{"name":"Oleg Nenashev","email":"o.v.nenashev@gmail.com","date":"2017-10-13T10:27:27Z"},"message":"Update Extra enforcer rules as suggested by @jglick","tree":{"sha":"844f78ee7e1b0c2908c8b7dbbee7cf6e918f00e0","url":"https://api.github.com/repos/stapler/stapler/git/trees/844f78ee7e1b0c2908c8b7dbbee7cf6e918f00e0"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/8d574a5ae22195a901a20bddf2a90f3357b4467c","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/8d574a5ae22195a901a20bddf2a90f3357b4467c","html_url":"https://github.com/stapler/stapler/commit/8d574a5ae22195a901a20bddf2a90f3357b4467c","comments_url":"https://api.github.com/repos/stapler/stapler/commits/8d574a5ae22195a901a20bddf2a90f3357b4467c/comments","author":{"login":"oleg-nenashev","id":3000480,"node_id":"MDQ6VXNlcjMwMDA0ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/3000480?v=4","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"committer":{"login":"oleg-nenashev","id":3000480,"node_id":"MDQ6VXNlcjMwMDA0ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/3000480?v=4","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"parents":[{"sha":"00405e223da20fe0409ab1e0766ad977645ead31","url":"https://api.github.com/repos/stapler/stapler/commits/00405e223da20fe0409ab1e0766ad977645ead31","html_url":"https://github.com/stapler/stapler/commit/00405e223da20fe0409ab1e0766ad977645ead31"}]},{"sha":"4d59a74413f40f7064c8486d508684d38ebdfc38","node_id":"MDY6Q29tbWl0MTU0ODUxNDo0ZDU5YTc0NDEzZjQwZjcwNjRjODQ4NmQ1MDg2ODRkMzhlYmRmYzM4","commit":{"author":{"name":"Oleg Nenashev","email":"o.v.nenashev@gmail.com","date":"2017-10-10T17:46:30Z"},"committer":{"name":"Oleg Nenashev","email":"o.v.nenashev@gmail.com","date":"2017-10-10T17:46:30Z"},"message":"Cleanup upper Bound dependencies","tree":{"sha":"319c0b493b406e364138cd557b1c344946225857","url":"https://api.github.com/repos/stapler/stapler/git/trees/319c0b493b406e364138cd557b1c344946225857"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/4d59a74413f40f7064c8486d508684d38ebdfc38","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/4d59a74413f40f7064c8486d508684d38ebdfc38","html_url":"https://github.com/stapler/stapler/commit/4d59a74413f40f7064c8486d508684d38ebdfc38","comments_url":"https://api.github.com/repos/stapler/stapler/commits/4d59a74413f40f7064c8486d508684d38ebdfc38/comments","author":{"login":"oleg-nenashev","id":3000480,"node_id":"MDQ6VXNlcjMwMDA0ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/3000480?v=4","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"committer":{"login":"oleg-nenashev","id":3000480,"node_id":"MDQ6VXNlcjMwMDA0ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/3000480?v=4","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"parents":[{"sha":"dc2afaa80149f9b81269952d9cf4fdeff71030bc","url":"https://api.github.com/repos/stapler/stapler/commits/dc2afaa80149f9b81269952d9cf4fdeff71030bc","html_url":"https://github.com/stapler/stapler/commit/dc2afaa80149f9b81269952d9cf4fdeff71030bc"}]},{"sha":"b9827c91462e979e6780048bb115355af737a089","node_id":"MDY6Q29tbWl0MTU0ODUxNDpiOTgyN2M5MTQ2MmU5NzllNjc4MDA0OGJiMTE1MzU1YWY3MzdhMDg5","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-08-03T21:39:54Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-08-03T21:39:54Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"e0bd0e223e705b9d104d006f90c376704a76c257","url":"https://api.github.com/repos/stapler/stapler/git/trees/e0bd0e223e705b9d104d006f90c376704a76c257"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/b9827c91462e979e6780048bb115355af737a089","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/b9827c91462e979e6780048bb115355af737a089","html_url":"https://github.com/stapler/stapler/commit/b9827c91462e979e6780048bb115355af737a089","comments_url":"https://api.github.com/repos/stapler/stapler/commits/b9827c91462e979e6780048bb115355af737a089/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"ea125284477865c8344337877b5eefef0d48b9b3","url":"https://api.github.com/repos/stapler/stapler/commits/ea125284477865c8344337877b5eefef0d48b9b3","html_url":"https://github.com/stapler/stapler/commit/ea125284477865c8344337877b5eefef0d48b9b3"}]},{"sha":"ea125284477865c8344337877b5eefef0d48b9b3","node_id":"MDY6Q29tbWl0MTU0ODUxNDplYTEyNTI4NDQ3Nzg2NWM4MzQ0MzM3ODc3YjVlZWZlZjBkNDhiOWIz","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-08-03T21:39:49Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-08-03T21:39:49Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.252","tree":{"sha":"d97cb711080d966c6b129133a5fb7771781c9cfd","url":"https://api.github.com/repos/stapler/stapler/git/trees/d97cb711080d966c6b129133a5fb7771781c9cfd"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/ea125284477865c8344337877b5eefef0d48b9b3","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/ea125284477865c8344337877b5eefef0d48b9b3","html_url":"https://github.com/stapler/stapler/commit/ea125284477865c8344337877b5eefef0d48b9b3","comments_url":"https://api.github.com/repos/stapler/stapler/commits/ea125284477865c8344337877b5eefef0d48b9b3/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"8baac291ff0acc76f615310630c98de841f9554b","url":"https://api.github.com/repos/stapler/stapler/commits/8baac291ff0acc76f615310630c98de841f9554b","html_url":"https://github.com/stapler/stapler/commit/8baac291ff0acc76f615310630c98de841f9554b"}]},{"sha":"8baac291ff0acc76f615310630c98de841f9554b","node_id":"MDY6Q29tbWl0MTU0ODUxNDo4YmFhYzI5MWZmMGFjYzc2ZjYxNTMxMDYzMGM5OGRlODQxZjk1NTRi","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2017-08-03T21:34:19Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2017-08-03T21:34:19Z"},"message":"Merge pull request #113 from jglick/interfaceMethods\n\nVerifying that web methods may be defined as default interface methods","tree":{"sha":"cd2b635aedadc3314c452c3f7d1ad928f64fb50f","url":"https://api.github.com/repos/stapler/stapler/git/trees/cd2b635aedadc3314c452c3f7d1ad928f64fb50f"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/8baac291ff0acc76f615310630c98de841f9554b","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/8baac291ff0acc76f615310630c98de841f9554b","html_url":"https://github.com/stapler/stapler/commit/8baac291ff0acc76f615310630c98de841f9554b","comments_url":"https://api.github.com/repos/stapler/stapler/commits/8baac291ff0acc76f615310630c98de841f9554b/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","site_admin":false},"parents":[{"sha":"5f5e5fae6f5ddaa62cd3a8028a71c7ca05972347","url":"https://api.github.com/repos/stapler/stapler/commits/5f5e5fae6f5ddaa62cd3a8028a71c7ca05972347","html_url":"https://github.com/stapler/stapler/commit/5f5e5fae6f5ddaa62cd3a8028a71c7ca05972347"},{"sha":"6f9acc164d7108e16af91b548cf45892c228ec9b","url":"https://api.github.com/repos/stapler/stapler/commits/6f9acc164d7108e16af91b548cf45892c228ec9b","html_url":"https://github.com/stapler/stapler/commit/6f9acc164d7108e16af91b548cf45892c228ec9b"}]}] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json new file mode 100644 index 0000000000..7e2472e78d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json @@ -0,0 +1 @@ +{"sha":"06b1108ec041fd8d6e7f54c8578d84a672fee9e4","node_id":"MDY6Q29tbWl0MTU0ODUxNDowNmIxMTA4ZWMwNDFmZDhkNmU3ZjU0Yzg1NzhkODRhNjcyZmVlOWU0","commit":{"author":{"name":"Jeff Thompson","email":"37345299+jeffret-b@users.noreply.github.com","date":"2019-08-19T17:42:58Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2019-08-19T17:42:58Z"},"message":"Update BSD license reference.\n\nCo-Authored-By: Jesse Glick ","tree":{"sha":"859fffa8ce0c958e4e4209c7a758be16f0c97c55","url":"https://api.github.com/repos/stapler/stapler/git/trees/859fffa8ce0c958e4e4209c7a758be16f0c97c55"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJdWt+iCRBK7hj4Ov3rIwAAdHIIAF2vncFEFRwkJdZrVZEkT30N\neYJXFeILq+wFRDuWEDOueIkUwCy9Z4xYnM/n7fw+51LsRK+4kaFNjP6HFJGr/+m5\nioCArE27vaXnZjTAldpAG0Jku3eIfChutub0HcBy4UURozLw70ajWpbA3vOQ560B\ntontgx2I/pJmwOqkXRVvM7yxTlW751kyTVWScCtOeX2efuveeotECsDrqScKxq66\nkvJ1xmb9olWdlTjChOgqNrLbLC0jUHqc1nMGCkkVL0Pl2BMB8cXrKBQyU71ZuVJt\n4EW8IBWBtuHwHFtwABBCHXdtSsCGPat0hVag72CHiqKoZV/EAPecIlyiZMAYYig=\n=7zTb\n-----END PGP SIGNATURE-----\n","payload":"tree 859fffa8ce0c958e4e4209c7a758be16f0c97c55\nparent 2a971c4e38c6d6693f7ad8b6768e4d74840d6679\nauthor Jeff Thompson <37345299+jeffret-b@users.noreply.github.com> 1566236578 -0600\ncommitter GitHub 1566236578 -0600\n\nUpdate BSD license reference.\n\nCo-Authored-By: Jesse Glick "}},"url":"https://api.github.com/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","html_url":"https://github.com/stapler/stapler/commit/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","comments_url":"https://api.github.com/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","site_admin":false},"parents":[{"sha":"2a971c4e38c6d6693f7ad8b6768e4d74840d6679","url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","html_url":"https://github.com/stapler/stapler/commit/2a971c4e38c6d6693f7ad8b6768e4d74840d6679"}],"stats":{"total":2,"additions":1,"deletions":1},"files":[{"sha":"fcfba8d7fc2b339aaa73e28142b5dfc2234a35bc","filename":"pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=06b1108ec041fd8d6e7f54c8578d84a672fee9e4","patch":"@@ -30,7 +30,7 @@\n \n 2-clause BSD license\n repo\n- https://opensource.org/licenses/bsd-license\n+ https://opensource.org/licenses/BSD-2-Clause\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json new file mode 100644 index 0000000000..7e2472e78d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json @@ -0,0 +1 @@ +{"sha":"06b1108ec041fd8d6e7f54c8578d84a672fee9e4","node_id":"MDY6Q29tbWl0MTU0ODUxNDowNmIxMTA4ZWMwNDFmZDhkNmU3ZjU0Yzg1NzhkODRhNjcyZmVlOWU0","commit":{"author":{"name":"Jeff Thompson","email":"37345299+jeffret-b@users.noreply.github.com","date":"2019-08-19T17:42:58Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2019-08-19T17:42:58Z"},"message":"Update BSD license reference.\n\nCo-Authored-By: Jesse Glick ","tree":{"sha":"859fffa8ce0c958e4e4209c7a758be16f0c97c55","url":"https://api.github.com/repos/stapler/stapler/git/trees/859fffa8ce0c958e4e4209c7a758be16f0c97c55"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJdWt+iCRBK7hj4Ov3rIwAAdHIIAF2vncFEFRwkJdZrVZEkT30N\neYJXFeILq+wFRDuWEDOueIkUwCy9Z4xYnM/n7fw+51LsRK+4kaFNjP6HFJGr/+m5\nioCArE27vaXnZjTAldpAG0Jku3eIfChutub0HcBy4UURozLw70ajWpbA3vOQ560B\ntontgx2I/pJmwOqkXRVvM7yxTlW751kyTVWScCtOeX2efuveeotECsDrqScKxq66\nkvJ1xmb9olWdlTjChOgqNrLbLC0jUHqc1nMGCkkVL0Pl2BMB8cXrKBQyU71ZuVJt\n4EW8IBWBtuHwHFtwABBCHXdtSsCGPat0hVag72CHiqKoZV/EAPecIlyiZMAYYig=\n=7zTb\n-----END PGP SIGNATURE-----\n","payload":"tree 859fffa8ce0c958e4e4209c7a758be16f0c97c55\nparent 2a971c4e38c6d6693f7ad8b6768e4d74840d6679\nauthor Jeff Thompson <37345299+jeffret-b@users.noreply.github.com> 1566236578 -0600\ncommitter GitHub 1566236578 -0600\n\nUpdate BSD license reference.\n\nCo-Authored-By: Jesse Glick "}},"url":"https://api.github.com/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","html_url":"https://github.com/stapler/stapler/commit/06b1108ec041fd8d6e7f54c8578d84a672fee9e4","comments_url":"https://api.github.com/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","site_admin":false},"parents":[{"sha":"2a971c4e38c6d6693f7ad8b6768e4d74840d6679","url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","html_url":"https://github.com/stapler/stapler/commit/2a971c4e38c6d6693f7ad8b6768e4d74840d6679"}],"stats":{"total":2,"additions":1,"deletions":1},"files":[{"sha":"fcfba8d7fc2b339aaa73e28142b5dfc2234a35bc","filename":"pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/06b1108ec041fd8d6e7f54c8578d84a672fee9e4/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=06b1108ec041fd8d6e7f54c8578d84a672fee9e4","patch":"@@ -30,7 +30,7 @@\n \n 2-clause BSD license\n repo\n- https://opensource.org/licenses/bsd-license\n+ https://opensource.org/licenses/BSD-2-Clause\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json new file mode 100644 index 0000000000..dc818b9ac2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json @@ -0,0 +1 @@ +{"sha":"2a971c4e38c6d6693f7ad8b6768e4d74840d6679","node_id":"MDY6Q29tbWl0MTU0ODUxNDoyYTk3MWM0ZTM4YzZkNjY5M2Y3YWQ4YjY3NjhlNGQ3NDg0MGQ2Njc5","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-06-28T16:16:04Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-06-28T16:21:18Z"},"message":"A little bit of pom cleanup.\n\nPrimarily about using https.","tree":{"sha":"3ebce198db76fb2e0073f2698c255ea0eee6527c","url":"https://api.github.com/repos/stapler/stapler/git/trees/3ebce198db76fb2e0073f2698c255ea0eee6527c"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","html_url":"https://github.com/stapler/stapler/commit/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","comments_url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7","url":"https://api.github.com/repos/stapler/stapler/commits/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7","html_url":"https://github.com/stapler/stapler/commit/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7"}],"stats":{"total":23,"additions":4,"deletions":19},"files":[{"sha":"5fa54083143c6b88b5a51ac31b470ab312a879c1","filename":"jrebel/pom.xml","status":"modified","additions":0,"deletions":15,"changes":15,"blob_url":"https://github.com/stapler/stapler/blob/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=2a971c4e38c6d6693f7ad8b6768e4d74840d6679","patch":"@@ -35,19 +35,4 @@\n \n \n \n- \n "},{"sha":"15dca3afa963e3ca7ef8946652fc9d74e1abd0b3","filename":"pom.xml","status":"modified","additions":4,"deletions":4,"changes":8,"blob_url":"https://github.com/stapler/stapler/blob/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=2a971c4e38c6d6693f7ad8b6768e4d74840d6679","patch":"@@ -24,13 +24,13 @@\n jrebel\n \n \n- http://stapler.kohsuke.org/\n+ https://stapler.kohsuke.org/\n \n \n \n 2-clause BSD license\n repo\n- http://opensource.org/licenses/bsd-license.php\n+ https://opensource.org/licenses/bsd-license\n \n \n \n@@ -67,14 +67,14 @@\n \n \n repo.jenkins-ci.org\n- http://repo.jenkins-ci.org/public/\n+ https://repo.jenkins-ci.org/public/\n \n \n \n \n \n repo.jenkins-ci.org\n- http://repo.jenkins-ci.org/public/\n+ https://repo.jenkins-ci.org/public/\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json new file mode 100644 index 0000000000..dc818b9ac2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json @@ -0,0 +1 @@ +{"sha":"2a971c4e38c6d6693f7ad8b6768e4d74840d6679","node_id":"MDY6Q29tbWl0MTU0ODUxNDoyYTk3MWM0ZTM4YzZkNjY5M2Y3YWQ4YjY3NjhlNGQ3NDg0MGQ2Njc5","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-06-28T16:16:04Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-06-28T16:21:18Z"},"message":"A little bit of pom cleanup.\n\nPrimarily about using https.","tree":{"sha":"3ebce198db76fb2e0073f2698c255ea0eee6527c","url":"https://api.github.com/repos/stapler/stapler/git/trees/3ebce198db76fb2e0073f2698c255ea0eee6527c"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","html_url":"https://github.com/stapler/stapler/commit/2a971c4e38c6d6693f7ad8b6768e4d74840d6679","comments_url":"https://api.github.com/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7","url":"https://api.github.com/repos/stapler/stapler/commits/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7","html_url":"https://github.com/stapler/stapler/commit/11ad5af185e062fb46e01bf9fbed66f3ebf2a8f7"}],"stats":{"total":23,"additions":4,"deletions":19},"files":[{"sha":"5fa54083143c6b88b5a51ac31b470ab312a879c1","filename":"jrebel/pom.xml","status":"modified","additions":0,"deletions":15,"changes":15,"blob_url":"https://github.com/stapler/stapler/blob/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=2a971c4e38c6d6693f7ad8b6768e4d74840d6679","patch":"@@ -35,19 +35,4 @@\n \n \n \n- \n "},{"sha":"15dca3afa963e3ca7ef8946652fc9d74e1abd0b3","filename":"pom.xml","status":"modified","additions":4,"deletions":4,"changes":8,"blob_url":"https://github.com/stapler/stapler/blob/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2a971c4e38c6d6693f7ad8b6768e4d74840d6679/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=2a971c4e38c6d6693f7ad8b6768e4d74840d6679","patch":"@@ -24,13 +24,13 @@\n jrebel\n \n \n- http://stapler.kohsuke.org/\n+ https://stapler.kohsuke.org/\n \n \n \n 2-clause BSD license\n repo\n- http://opensource.org/licenses/bsd-license.php\n+ https://opensource.org/licenses/bsd-license\n \n \n \n@@ -67,14 +67,14 @@\n \n \n repo.jenkins-ci.org\n- http://repo.jenkins-ci.org/public/\n+ https://repo.jenkins-ci.org/public/\n \n \n \n \n \n repo.jenkins-ci.org\n- http://repo.jenkins-ci.org/public/\n+ https://repo.jenkins-ci.org/public/\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json new file mode 100644 index 0000000000..1d0cd12a37 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json @@ -0,0 +1 @@ +{"sha":"2f4ca0f03c1e6188867bddddce12ff213a107d9d","node_id":"MDY6Q29tbWl0MTU0ODUxNDoyZjRjYTBmMDNjMWU2MTg4ODY3YmRkZGRjZTEyZmYyMTNhMTA3ZDlk","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:21Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:21Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"f8ca916d33ffab1c342e6a92f7fd44dbad1609ec","url":"https://api.github.com/repos/stapler/stapler/git/trees/f8ca916d33ffab1c342e6a92f7fd44dbad1609ec"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWGkACgkQHdpp2Uti\nQxF9Hgf9Es/4uq/vG+zlttbpXr/RwYUgLiTO2Dw8bs+21OxfApMF0OBUtgb3SPdf\nMvWCc13Jbg3yQ2JaIP4IziEoTxZCu2ZEpgW6VtXik63f7HWyxeTeuO0I/kGNIm6J\nU4bZgeryOImU06w3SGTiaNvcxLsOjp99E8aIILqDrrHEN47sW5rBnKDDRzB5Ga74\nvZt88peqr792b6DGhYpjwl+qj3Hxqdm11JOAEwP6dLl5NhStQW6nZezcJnYJqSyd\ntfQQ0m+9qqSZaY+moenDnKEh9LleswGQwex84UNdG7i4gwsQs5GhCXaN3gMCtyiz\nU4nPC4mD3wbw93S1zORXGXvK0pUq5g==\n=KJwq\n-----END PGP SIGNATURE-----","payload":"tree f8ca916d33ffab1c342e6a92f7fd44dbad1609ec\nparent d922b808068cf95d6f6ab624ce2c7f49d51f5321\nauthor Jesse Glick 1554733161 -0400\ncommitter Jesse Glick 1554733161 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d","html_url":"https://github.com/stapler/stapler/commit/2f4ca0f03c1e6188867bddddce12ff213a107d9d","comments_url":"https://api.github.com/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","html_url":"https://github.com/stapler/stapler/commit/d922b808068cf95d6f6ab624ce2c7f49d51f5321"}],"stats":{"total":18,"additions":9,"deletions":9},"files":[{"sha":"d5db8c67ff1f81d36f1e827f9167efef73a90e11","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler"},{"sha":"df30de83b3590c884f757b29cbe192ed7448ad9a","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-groovy"},{"sha":"d9d4fe7b1f40a1d7a32fce0d56a8fdfa11e58dac","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jelly"},{"sha":"549ac913ab8d7d5b715e550dbe01d948d3f3794b","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jrebel"},{"sha":"8309e3bea60cdedb5920a821247fe726b2ef9cea","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jruby"},{"sha":"5ce1d053c5c853854188bc7bc99c17e675856d29","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jsp"},{"sha":"72dfbbc2151c03becdedfc6f2ae8ec930c912ced","filename":"pom.xml","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- 1.257\n+ ${revision}${changelist}\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- stapler-parent-1.257\n+ ${scmTag}\n \n \n \n@@ -81,7 +81,7 @@\n \n UTF-8\n 8\n- 1.257\n+ 1.258\n -SNAPSHOT\n https://repo.jenkins-ci.org/incrementals/\n HEAD"}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json new file mode 100644 index 0000000000..1d0cd12a37 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json @@ -0,0 +1 @@ +{"sha":"2f4ca0f03c1e6188867bddddce12ff213a107d9d","node_id":"MDY6Q29tbWl0MTU0ODUxNDoyZjRjYTBmMDNjMWU2MTg4ODY3YmRkZGRjZTEyZmYyMTNhMTA3ZDlk","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:21Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:21Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"f8ca916d33ffab1c342e6a92f7fd44dbad1609ec","url":"https://api.github.com/repos/stapler/stapler/git/trees/f8ca916d33ffab1c342e6a92f7fd44dbad1609ec"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWGkACgkQHdpp2Uti\nQxF9Hgf9Es/4uq/vG+zlttbpXr/RwYUgLiTO2Dw8bs+21OxfApMF0OBUtgb3SPdf\nMvWCc13Jbg3yQ2JaIP4IziEoTxZCu2ZEpgW6VtXik63f7HWyxeTeuO0I/kGNIm6J\nU4bZgeryOImU06w3SGTiaNvcxLsOjp99E8aIILqDrrHEN47sW5rBnKDDRzB5Ga74\nvZt88peqr792b6DGhYpjwl+qj3Hxqdm11JOAEwP6dLl5NhStQW6nZezcJnYJqSyd\ntfQQ0m+9qqSZaY+moenDnKEh9LleswGQwex84UNdG7i4gwsQs5GhCXaN3gMCtyiz\nU4nPC4mD3wbw93S1zORXGXvK0pUq5g==\n=KJwq\n-----END PGP SIGNATURE-----","payload":"tree f8ca916d33ffab1c342e6a92f7fd44dbad1609ec\nparent d922b808068cf95d6f6ab624ce2c7f49d51f5321\nauthor Jesse Glick 1554733161 -0400\ncommitter Jesse Glick 1554733161 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d","html_url":"https://github.com/stapler/stapler/commit/2f4ca0f03c1e6188867bddddce12ff213a107d9d","comments_url":"https://api.github.com/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","html_url":"https://github.com/stapler/stapler/commit/d922b808068cf95d6f6ab624ce2c7f49d51f5321"}],"stats":{"total":18,"additions":9,"deletions":9},"files":[{"sha":"d5db8c67ff1f81d36f1e827f9167efef73a90e11","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler"},{"sha":"df30de83b3590c884f757b29cbe192ed7448ad9a","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-groovy"},{"sha":"d9d4fe7b1f40a1d7a32fce0d56a8fdfa11e58dac","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jelly"},{"sha":"549ac913ab8d7d5b715e550dbe01d948d3f3794b","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jrebel"},{"sha":"8309e3bea60cdedb5920a821247fe726b2ef9cea","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jruby"},{"sha":"5ce1d053c5c853854188bc7bc99c17e675856d29","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.257\n+ ${revision}${changelist}\n \n \n stapler-jsp"},{"sha":"72dfbbc2151c03becdedfc6f2ae8ec930c912ced","filename":"pom.xml","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/stapler/stapler/blob/2f4ca0f03c1e6188867bddddce12ff213a107d9d/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/2f4ca0f03c1e6188867bddddce12ff213a107d9d/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=2f4ca0f03c1e6188867bddddce12ff213a107d9d","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- 1.257\n+ ${revision}${changelist}\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- stapler-parent-1.257\n+ ${scmTag}\n \n \n \n@@ -81,7 +81,7 @@\n \n UTF-8\n 8\n- 1.257\n+ 1.258\n -SNAPSHOT\n https://repo.jenkins-ci.org/incrementals/\n HEAD"}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json new file mode 100644 index 0000000000..a879e7a0ad --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json @@ -0,0 +1 @@ +{"sha":"4f260c560ec120f4e2c2ed727244690b1f4d5dca","node_id":"MDY6Q29tbWl0MTU0ODUxNDo0ZjI2MGM1NjBlYzEyMGY0ZTJjMmVkNzI3MjQ0NjkwYjFmNGQ1ZGNh","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-18T22:52:29Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-18T22:52:29Z"},"message":"Enable incrementals.\n\nSince this isn't a plugin, I followed the instructions to do it the hard way. Hopefully it's not too weird to work.","tree":{"sha":"575f9abb94a915cfc9fb0fdcc681648aade5cd1f","url":"https://api.github.com/repos/stapler/stapler/git/trees/575f9abb94a915cfc9fb0fdcc681648aade5cd1f"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca","html_url":"https://github.com/stapler/stapler/commit/4f260c560ec120f4e2c2ed727244690b1f4d5dca","comments_url":"https://api.github.com/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"a019ca42d01dbe7d88f56deade245d7c0366624c","url":"https://api.github.com/repos/stapler/stapler/commits/a019ca42d01dbe7d88f56deade245d7c0366624c","html_url":"https://github.com/stapler/stapler/commit/a019ca42d01dbe7d88f56deade245d7c0366624c"}],"stats":{"total":154,"additions":152,"deletions":2},"files":[{"sha":"db1d854113d1361cc67d6eba8055554eb1f2e414","filename":".mvn/extensions.xml","status":"added","additions":7,"deletions":0,"changes":7,"blob_url":"https://github.com/stapler/stapler/blob/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/extensions.xml","raw_url":"https://github.com/stapler/stapler/raw/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/extensions.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/.mvn/extensions.xml?ref=4f260c560ec120f4e2c2ed727244690b1f4d5dca","patch":"@@ -0,0 +1,7 @@\n+\n+ \n+ io.jenkins.tools.incrementals\n+ git-changelist-maven-extension\n+ 1.0-beta-2\n+ \n+"},{"sha":"2a0299c4865d58b47a576f7effc4a15f3fcf4ee9","filename":".mvn/maven.config","status":"added","additions":2,"deletions":0,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/maven.config","raw_url":"https://github.com/stapler/stapler/raw/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/maven.config","contents_url":"https://api.github.com/repos/stapler/stapler/contents/.mvn/maven.config?ref=4f260c560ec120f4e2c2ed727244690b1f4d5dca","patch":"@@ -0,0 +1,2 @@\n+-Pconsume-incrementals\n+-Pmight-produce-incrementals"},{"sha":"262410bec1cd8e5c2bb839cf193e8abdf2fc7fbf","filename":"pom.xml","status":"modified","additions":143,"deletions":2,"changes":145,"blob_url":"https://github.com/stapler/stapler/blob/4f260c560ec120f4e2c2ed727244690b1f4d5dca/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/4f260c560ec120f4e2c2ed727244690b1f4d5dca/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=4f260c560ec120f4e2c2ed727244690b1f4d5dca","patch":"@@ -9,7 +9,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- 1.257-SNAPSHOT\n+ ${revision}${changelist}\n \n Stapler\n Stapler HTTP request handling engine\n@@ -37,7 +37,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- HEAD\n+ ${scmTag}\n \n \n \n@@ -84,6 +84,10 @@\n \n UTF-8\n 8\n+ 1.257\n+ -SNAPSHOT\n+ https://repo.jenkins-ci.org/incrementals/\n+ HEAD\n \n \n \n@@ -281,4 +285,141 @@\n \n \n \n+\n+ \n+ \n+ \n+ consume-incrementals\n+ \n+ \n+ incrementals\n+ ${incrementals.url}\n+ \n+ false\n+ \n+ \n+ \n+ \n+ \n+ incrementals\n+ ${incrementals.url}\n+ \n+ false\n+ \n+ \n+ \n+ \n+ \n+ might-produce-incrementals\n+ \n+ \n+ \n+ org.codehaus.mojo\n+ flatten-maven-plugin\n+ 1.0.1\n+ \n+ true\n+ \n+ \n+ \n+ flatten\n+ process-resources\n+ \n+ flatten\n+ \n+ \n+ oss\n+ ${project.build.directory}\n+ ${project.artifactId}-${project.version}.pom\n+ \n+ \n+ \n+ \n+ \n+ maven-enforcer-plugin\n+ \n+ \n+ display-info\n+ \n+ \n+ \n+ [3.5.0,)\n+ 3.5.0+ required to use Incrementals.\n+ \n+ \n+ [1.0-beta-4,)\n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ io.jenkins.tools.incrementals\n+ incrementals-enforcer-rules\n+ 1.0-beta-4\n+ \n+ \n+ \n+ \n+ maven-release-plugin\n+ \n+ incrementals:reincrementalify\n+ \n+ \n+ \n+ \n+ \n+ \n+ produce-incrementals\n+ \n+ \n+ set.changelist\n+ true\n+ \n+ \n+ \n+ \n+ incrementals\n+ ${incrementals.url}\n+ \n+ \n+ \n+ \n+ \n+ \n+ maven-source-plugin\n+ \n+ \n+ attach-sources\n+ \n+ jar-no-fork\n+ \n+ \n+ \n+ attach-test-sources\n+ \n+ test-jar-no-fork\n+ \n+ \n+ ${no-test-jar}\n+ \n+ \n+ \n+ \n+ \n+ maven-javadoc-plugin\n+ \n+ \n+ attach-javadocs\n+ \n+ jar\n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json new file mode 100644 index 0000000000..a879e7a0ad --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json @@ -0,0 +1 @@ +{"sha":"4f260c560ec120f4e2c2ed727244690b1f4d5dca","node_id":"MDY6Q29tbWl0MTU0ODUxNDo0ZjI2MGM1NjBlYzEyMGY0ZTJjMmVkNzI3MjQ0NjkwYjFmNGQ1ZGNh","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-18T22:52:29Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-18T22:52:29Z"},"message":"Enable incrementals.\n\nSince this isn't a plugin, I followed the instructions to do it the hard way. Hopefully it's not too weird to work.","tree":{"sha":"575f9abb94a915cfc9fb0fdcc681648aade5cd1f","url":"https://api.github.com/repos/stapler/stapler/git/trees/575f9abb94a915cfc9fb0fdcc681648aade5cd1f"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca","html_url":"https://github.com/stapler/stapler/commit/4f260c560ec120f4e2c2ed727244690b1f4d5dca","comments_url":"https://api.github.com/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"a019ca42d01dbe7d88f56deade245d7c0366624c","url":"https://api.github.com/repos/stapler/stapler/commits/a019ca42d01dbe7d88f56deade245d7c0366624c","html_url":"https://github.com/stapler/stapler/commit/a019ca42d01dbe7d88f56deade245d7c0366624c"}],"stats":{"total":154,"additions":152,"deletions":2},"files":[{"sha":"db1d854113d1361cc67d6eba8055554eb1f2e414","filename":".mvn/extensions.xml","status":"added","additions":7,"deletions":0,"changes":7,"blob_url":"https://github.com/stapler/stapler/blob/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/extensions.xml","raw_url":"https://github.com/stapler/stapler/raw/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/extensions.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/.mvn/extensions.xml?ref=4f260c560ec120f4e2c2ed727244690b1f4d5dca","patch":"@@ -0,0 +1,7 @@\n+\n+ \n+ io.jenkins.tools.incrementals\n+ git-changelist-maven-extension\n+ 1.0-beta-2\n+ \n+"},{"sha":"2a0299c4865d58b47a576f7effc4a15f3fcf4ee9","filename":".mvn/maven.config","status":"added","additions":2,"deletions":0,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/maven.config","raw_url":"https://github.com/stapler/stapler/raw/4f260c560ec120f4e2c2ed727244690b1f4d5dca/.mvn/maven.config","contents_url":"https://api.github.com/repos/stapler/stapler/contents/.mvn/maven.config?ref=4f260c560ec120f4e2c2ed727244690b1f4d5dca","patch":"@@ -0,0 +1,2 @@\n+-Pconsume-incrementals\n+-Pmight-produce-incrementals"},{"sha":"262410bec1cd8e5c2bb839cf193e8abdf2fc7fbf","filename":"pom.xml","status":"modified","additions":143,"deletions":2,"changes":145,"blob_url":"https://github.com/stapler/stapler/blob/4f260c560ec120f4e2c2ed727244690b1f4d5dca/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/4f260c560ec120f4e2c2ed727244690b1f4d5dca/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=4f260c560ec120f4e2c2ed727244690b1f4d5dca","patch":"@@ -9,7 +9,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- 1.257-SNAPSHOT\n+ ${revision}${changelist}\n \n Stapler\n Stapler HTTP request handling engine\n@@ -37,7 +37,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- HEAD\n+ ${scmTag}\n \n \n \n@@ -84,6 +84,10 @@\n \n UTF-8\n 8\n+ 1.257\n+ -SNAPSHOT\n+ https://repo.jenkins-ci.org/incrementals/\n+ HEAD\n \n \n \n@@ -281,4 +285,141 @@\n \n \n \n+\n+ \n+ \n+ \n+ consume-incrementals\n+ \n+ \n+ incrementals\n+ ${incrementals.url}\n+ \n+ false\n+ \n+ \n+ \n+ \n+ \n+ incrementals\n+ ${incrementals.url}\n+ \n+ false\n+ \n+ \n+ \n+ \n+ \n+ might-produce-incrementals\n+ \n+ \n+ \n+ org.codehaus.mojo\n+ flatten-maven-plugin\n+ 1.0.1\n+ \n+ true\n+ \n+ \n+ \n+ flatten\n+ process-resources\n+ \n+ flatten\n+ \n+ \n+ oss\n+ ${project.build.directory}\n+ ${project.artifactId}-${project.version}.pom\n+ \n+ \n+ \n+ \n+ \n+ maven-enforcer-plugin\n+ \n+ \n+ display-info\n+ \n+ \n+ \n+ [3.5.0,)\n+ 3.5.0+ required to use Incrementals.\n+ \n+ \n+ [1.0-beta-4,)\n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ io.jenkins.tools.incrementals\n+ incrementals-enforcer-rules\n+ 1.0-beta-4\n+ \n+ \n+ \n+ \n+ maven-release-plugin\n+ \n+ incrementals:reincrementalify\n+ \n+ \n+ \n+ \n+ \n+ \n+ produce-incrementals\n+ \n+ \n+ set.changelist\n+ true\n+ \n+ \n+ \n+ \n+ incrementals\n+ ${incrementals.url}\n+ \n+ \n+ \n+ \n+ \n+ \n+ maven-source-plugin\n+ \n+ \n+ attach-sources\n+ \n+ jar-no-fork\n+ \n+ \n+ \n+ attach-test-sources\n+ \n+ test-jar-no-fork\n+ \n+ \n+ ${no-test-jar}\n+ \n+ \n+ \n+ \n+ \n+ maven-javadoc-plugin\n+ \n+ \n+ attach-javadocs\n+ \n+ jar\n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json new file mode 100644 index 0000000000..296eda5dfa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json @@ -0,0 +1 @@ +{"sha":"53ce34d7d89c5172ae4f4f3167e35852b1910b59","node_id":"MDY6Q29tbWl0MTU0ODUxNDo1M2NlMzRkN2Q4OWM1MTcyYWU0ZjRmMzE2N2UzNTg1MmIxOTEwYjU5","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-03T19:03:54Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-03T19:03:54Z"},"message":"Miscellaneous POM updates while I am here.","tree":{"sha":"996a8d951dc95bc002ee4703865f45594418902e","url":"https://api.github.com/repos/stapler/stapler/git/trees/996a8d951dc95bc002ee4703865f45594418902e"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlylA5oACgkQHdpp2Uti\nQxFfbgf/Sv3T07OcY1W31Z1RyUVaEx0WeZpfZPuAOibFGfGLC6wpa4LCJCwaTK5l\n2I5T9nNZ95/22S3nsFHyb+VAnOFusXblKw8W6BvvyUWwNXzoBQGgvg37hKyNFwdO\nMRdErOixk71Yb6cnCatvzIpBuM4ENO77/TNvLtBApCETO9UQf6GjLU4jbHJySEHJ\n/NXvpdO1Xu5WskTc2k8/x+dtuilvLEAdMZUEHBiBTcGTUGQqedC6C7Mg3pTm9zGE\nQPj5THk+GZ6fD4KJwx0lyW9dGwTM9XYC/hjVs6AHC2dlROFiJ8/K722Fqti/zAyM\nDYz6+UUHcugK555ttRS1ntqgjxxEPw==\n=kTXy\n-----END PGP SIGNATURE-----","payload":"tree 996a8d951dc95bc002ee4703865f45594418902e\nparent 0e294ea94617a0926bd583dfe41515f4afb881e7\nauthor Jesse Glick 1554318234 -0400\ncommitter Jesse Glick 1554318234 -0400\n\nMiscellaneous POM updates while I am here.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59","html_url":"https://github.com/stapler/stapler/commit/53ce34d7d89c5172ae4f4f3167e35852b1910b59","comments_url":"https://api.github.com/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"0e294ea94617a0926bd583dfe41515f4afb881e7","url":"https://api.github.com/repos/stapler/stapler/commits/0e294ea94617a0926bd583dfe41515f4afb881e7","html_url":"https://github.com/stapler/stapler/commit/0e294ea94617a0926bd583dfe41515f4afb881e7"}],"stats":{"total":7,"additions":2,"deletions":5},"files":[{"sha":"2c12ec3f8c2d8b52772784b939ccea49b1fa904d","filename":"pom.xml","status":"modified","additions":2,"deletions":5,"changes":7,"blob_url":"https://github.com/stapler/stapler/blob/53ce34d7d89c5172ae4f4f3167e35852b1910b59/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/53ce34d7d89c5172ae4f4f3167e35852b1910b59/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=53ce34d7d89c5172ae4f4f3167e35852b1910b59","patch":"@@ -4,7 +4,8 @@\n \n org.kohsuke\n pom\n- 19\n+ 21\n+ \n \n org.kohsuke.stapler\n stapler-parent\n@@ -40,10 +41,6 @@\n ${scmTag}\n \n \n- \n- 3.0.4\n- \n-\n \n \n maven.jenkins-ci.org"}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json new file mode 100644 index 0000000000..296eda5dfa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json @@ -0,0 +1 @@ +{"sha":"53ce34d7d89c5172ae4f4f3167e35852b1910b59","node_id":"MDY6Q29tbWl0MTU0ODUxNDo1M2NlMzRkN2Q4OWM1MTcyYWU0ZjRmMzE2N2UzNTg1MmIxOTEwYjU5","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-03T19:03:54Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-03T19:03:54Z"},"message":"Miscellaneous POM updates while I am here.","tree":{"sha":"996a8d951dc95bc002ee4703865f45594418902e","url":"https://api.github.com/repos/stapler/stapler/git/trees/996a8d951dc95bc002ee4703865f45594418902e"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlylA5oACgkQHdpp2Uti\nQxFfbgf/Sv3T07OcY1W31Z1RyUVaEx0WeZpfZPuAOibFGfGLC6wpa4LCJCwaTK5l\n2I5T9nNZ95/22S3nsFHyb+VAnOFusXblKw8W6BvvyUWwNXzoBQGgvg37hKyNFwdO\nMRdErOixk71Yb6cnCatvzIpBuM4ENO77/TNvLtBApCETO9UQf6GjLU4jbHJySEHJ\n/NXvpdO1Xu5WskTc2k8/x+dtuilvLEAdMZUEHBiBTcGTUGQqedC6C7Mg3pTm9zGE\nQPj5THk+GZ6fD4KJwx0lyW9dGwTM9XYC/hjVs6AHC2dlROFiJ8/K722Fqti/zAyM\nDYz6+UUHcugK555ttRS1ntqgjxxEPw==\n=kTXy\n-----END PGP SIGNATURE-----","payload":"tree 996a8d951dc95bc002ee4703865f45594418902e\nparent 0e294ea94617a0926bd583dfe41515f4afb881e7\nauthor Jesse Glick 1554318234 -0400\ncommitter Jesse Glick 1554318234 -0400\n\nMiscellaneous POM updates while I am here.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59","html_url":"https://github.com/stapler/stapler/commit/53ce34d7d89c5172ae4f4f3167e35852b1910b59","comments_url":"https://api.github.com/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"0e294ea94617a0926bd583dfe41515f4afb881e7","url":"https://api.github.com/repos/stapler/stapler/commits/0e294ea94617a0926bd583dfe41515f4afb881e7","html_url":"https://github.com/stapler/stapler/commit/0e294ea94617a0926bd583dfe41515f4afb881e7"}],"stats":{"total":7,"additions":2,"deletions":5},"files":[{"sha":"2c12ec3f8c2d8b52772784b939ccea49b1fa904d","filename":"pom.xml","status":"modified","additions":2,"deletions":5,"changes":7,"blob_url":"https://github.com/stapler/stapler/blob/53ce34d7d89c5172ae4f4f3167e35852b1910b59/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/53ce34d7d89c5172ae4f4f3167e35852b1910b59/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=53ce34d7d89c5172ae4f4f3167e35852b1910b59","patch":"@@ -4,7 +4,8 @@\n \n org.kohsuke\n pom\n- 19\n+ 21\n+ \n \n org.kohsuke.stapler\n stapler-parent\n@@ -40,10 +41,6 @@\n ${scmTag}\n \n \n- \n- 3.0.4\n- \n-\n \n \n maven.jenkins-ci.org"}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json new file mode 100644 index 0000000000..a53f4eb413 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json @@ -0,0 +1 @@ +{"sha":"6a243869aa3c3f80579102d00848a0083953d654","node_id":"MDY6Q29tbWl0MTU0ODUxNDo2YTI0Mzg2OWFhM2MzZjgwNTc5MTAyZDAwODQ4YTAwODM5NTNkNjU0","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:42Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:42Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.258","tree":{"sha":"61eb4efc23a5899681e45c581290617c98856e26","url":"https://api.github.com/repos/stapler/stapler/git/trees/61eb4efc23a5899681e45c581290617c98856e26"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/6a243869aa3c3f80579102d00848a0083953d654","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAl1a7LIACgkQHdpp2Uti\nQxEO8wf/fbacmCDXus8GhagFs240dUjvMbKTxVTX0yS8dHf7TvmpljikXRC8l4RM\nYy9g+J0Gbf9jMaz8walo4bXt7m8RaCDJmcKyA3Y3vC3O5G2Y5wlFLQwtN0ZykbKc\nPH0xLW4n8NBWBk1F50ka9y+/EBEAeMn8oSjmJhBDyc+xWWiuewrYaiX81JHKU9PY\ngwYW+eCxh0Z14CZQstfJx8SeVXbWJtpm+x/Hyjetj7VaVdvzKNAUTQ6wPp5drvGI\nQ0H91v01TA5pskbKDeegMLIlItqyjgjTnGV8rx4JjzZcvH+lPXbnI5Tcb68DvZgN\noJt4cb0b5dIo1pSbzF9W5i6Ro8QxGA==\n=Mduu\n-----END PGP SIGNATURE-----","payload":"tree 61eb4efc23a5899681e45c581290617c98856e26\nparent 3d3d6f01c553724350a6763d9b726fc3db268ccf\nauthor Jesse Glick 1566239922 -0400\ncommitter Jesse Glick 1566239922 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.258\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654","html_url":"https://github.com/stapler/stapler/commit/6a243869aa3c3f80579102d00848a0083953d654","comments_url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"3d3d6f01c553724350a6763d9b726fc3db268ccf","url":"https://api.github.com/repos/stapler/stapler/commits/3d3d6f01c553724350a6763d9b726fc3db268ccf","html_url":"https://github.com/stapler/stapler/commit/3d3d6f01c553724350a6763d9b726fc3db268ccf"}],"stats":{"total":16,"additions":8,"deletions":8},"files":[{"sha":"3db06058b622f33fffbcf05fa3a4278ebb25aeca","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler"},{"sha":"90f2de8c4bd577de291ebd69279b8ad6d543bcda","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-groovy"},{"sha":"828321e36a571d4572cc4ef64a8be1126f1a2468","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jelly"},{"sha":"d67b6481ffc873ddc9ae4bb765003752c44cd7fb","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jrebel"},{"sha":"0880c54411fab4d2ecc7cac972c9c0eb65bea007","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jruby"},{"sha":"95656583899744b7e58777f16a460f608ad16bcc","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jsp"},{"sha":"c6a16143c825686ffcb52b107e4f81912be47310","filename":"pom.xml","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- ${revision}${changelist}\n+ 1.258\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- ${scmTag}\n+ stapler-parent-1.258\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json new file mode 100644 index 0000000000..a53f4eb413 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json @@ -0,0 +1 @@ +{"sha":"6a243869aa3c3f80579102d00848a0083953d654","node_id":"MDY6Q29tbWl0MTU0ODUxNDo2YTI0Mzg2OWFhM2MzZjgwNTc5MTAyZDAwODQ4YTAwODM5NTNkNjU0","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:42Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:42Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.258","tree":{"sha":"61eb4efc23a5899681e45c581290617c98856e26","url":"https://api.github.com/repos/stapler/stapler/git/trees/61eb4efc23a5899681e45c581290617c98856e26"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/6a243869aa3c3f80579102d00848a0083953d654","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAl1a7LIACgkQHdpp2Uti\nQxEO8wf/fbacmCDXus8GhagFs240dUjvMbKTxVTX0yS8dHf7TvmpljikXRC8l4RM\nYy9g+J0Gbf9jMaz8walo4bXt7m8RaCDJmcKyA3Y3vC3O5G2Y5wlFLQwtN0ZykbKc\nPH0xLW4n8NBWBk1F50ka9y+/EBEAeMn8oSjmJhBDyc+xWWiuewrYaiX81JHKU9PY\ngwYW+eCxh0Z14CZQstfJx8SeVXbWJtpm+x/Hyjetj7VaVdvzKNAUTQ6wPp5drvGI\nQ0H91v01TA5pskbKDeegMLIlItqyjgjTnGV8rx4JjzZcvH+lPXbnI5Tcb68DvZgN\noJt4cb0b5dIo1pSbzF9W5i6Ro8QxGA==\n=Mduu\n-----END PGP SIGNATURE-----","payload":"tree 61eb4efc23a5899681e45c581290617c98856e26\nparent 3d3d6f01c553724350a6763d9b726fc3db268ccf\nauthor Jesse Glick 1566239922 -0400\ncommitter Jesse Glick 1566239922 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.258\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654","html_url":"https://github.com/stapler/stapler/commit/6a243869aa3c3f80579102d00848a0083953d654","comments_url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"3d3d6f01c553724350a6763d9b726fc3db268ccf","url":"https://api.github.com/repos/stapler/stapler/commits/3d3d6f01c553724350a6763d9b726fc3db268ccf","html_url":"https://github.com/stapler/stapler/commit/3d3d6f01c553724350a6763d9b726fc3db268ccf"}],"stats":{"total":16,"additions":8,"deletions":8},"files":[{"sha":"3db06058b622f33fffbcf05fa3a4278ebb25aeca","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler"},{"sha":"90f2de8c4bd577de291ebd69279b8ad6d543bcda","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-groovy"},{"sha":"828321e36a571d4572cc4ef64a8be1126f1a2468","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jelly"},{"sha":"d67b6481ffc873ddc9ae4bb765003752c44cd7fb","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jrebel"},{"sha":"0880c54411fab4d2ecc7cac972c9c0eb65bea007","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jruby"},{"sha":"95656583899744b7e58777f16a460f608ad16bcc","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.258\n \n \n stapler-jsp"},{"sha":"c6a16143c825686ffcb52b107e4f81912be47310","filename":"pom.xml","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/stapler/stapler/blob/6a243869aa3c3f80579102d00848a0083953d654/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/6a243869aa3c3f80579102d00848a0083953d654/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=6a243869aa3c3f80579102d00848a0083953d654","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- ${revision}${changelist}\n+ 1.258\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- ${scmTag}\n+ stapler-parent-1.258\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json new file mode 100644 index 0000000000..73af4917f4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json @@ -0,0 +1 @@ +{"sha":"72343298733508cced8dcb8eb43594bcc6130b26","node_id":"MDY6Q29tbWl0MTU0ODUxNDo3MjM0MzI5ODczMzUwOGNjZWQ4ZGNiOGViNDM1OTRiY2M2MTMwYjI2","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-19T21:27:25Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-19T21:27:25Z"},"message":"Update to latest versions.","tree":{"sha":"e1299f37e2ce97636d923a5631265279a5377b6d","url":"https://api.github.com/repos/stapler/stapler/git/trees/e1299f37e2ce97636d923a5631265279a5377b6d"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/72343298733508cced8dcb8eb43594bcc6130b26","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26","html_url":"https://github.com/stapler/stapler/commit/72343298733508cced8dcb8eb43594bcc6130b26","comments_url":"https://api.github.com/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"def3808ecd41583818aef3b35675756f00a45bbe","url":"https://api.github.com/repos/stapler/stapler/commits/def3808ecd41583818aef3b35675756f00a45bbe","html_url":"https://github.com/stapler/stapler/commit/def3808ecd41583818aef3b35675756f00a45bbe"}],"stats":{"total":4,"additions":2,"deletions":2},"files":[{"sha":"94863e605b263eac4033a58ae826865663ac844a","filename":".mvn/extensions.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/72343298733508cced8dcb8eb43594bcc6130b26/.mvn/extensions.xml","raw_url":"https://github.com/stapler/stapler/raw/72343298733508cced8dcb8eb43594bcc6130b26/.mvn/extensions.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/.mvn/extensions.xml?ref=72343298733508cced8dcb8eb43594bcc6130b26","patch":"@@ -2,6 +2,6 @@\n \n io.jenkins.tools.incrementals\n git-changelist-maven-extension\n- 1.0-beta-2\n+ 1.0-beta-7\n \n "},{"sha":"4976b0e34415ab2138ee63db72b1f374517bb2fd","filename":"pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/72343298733508cced8dcb8eb43594bcc6130b26/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/72343298733508cced8dcb8eb43594bcc6130b26/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=72343298733508cced8dcb8eb43594bcc6130b26","patch":"@@ -357,7 +357,7 @@\n \n io.jenkins.tools.incrementals\n incrementals-enforcer-rules\n- 1.0-beta-4\n+ 1.0-beta-5\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json new file mode 100644 index 0000000000..73af4917f4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json @@ -0,0 +1 @@ +{"sha":"72343298733508cced8dcb8eb43594bcc6130b26","node_id":"MDY6Q29tbWl0MTU0ODUxNDo3MjM0MzI5ODczMzUwOGNjZWQ4ZGNiOGViNDM1OTRiY2M2MTMwYjI2","commit":{"author":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-19T21:27:25Z"},"committer":{"name":"Jeff Thompson","email":"jeffret.g@gmail.com","date":"2019-02-19T21:27:25Z"},"message":"Update to latest versions.","tree":{"sha":"e1299f37e2ce97636d923a5631265279a5377b6d","url":"https://api.github.com/repos/stapler/stapler/git/trees/e1299f37e2ce97636d923a5631265279a5377b6d"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/72343298733508cced8dcb8eb43594bcc6130b26","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26","html_url":"https://github.com/stapler/stapler/commit/72343298733508cced8dcb8eb43594bcc6130b26","comments_url":"https://api.github.com/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26/comments","author":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"committer":{"login":"jeffret-b","id":37345299,"node_id":"MDQ6VXNlcjM3MzQ1Mjk5","avatar_url":"https://avatars0.githubusercontent.com/u/37345299?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffret-b","html_url":"https://github.com/jeffret-b","followers_url":"https://api.github.com/users/jeffret-b/followers","following_url":"https://api.github.com/users/jeffret-b/following{/other_user}","gists_url":"https://api.github.com/users/jeffret-b/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffret-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffret-b/subscriptions","organizations_url":"https://api.github.com/users/jeffret-b/orgs","repos_url":"https://api.github.com/users/jeffret-b/repos","events_url":"https://api.github.com/users/jeffret-b/events{/privacy}","received_events_url":"https://api.github.com/users/jeffret-b/received_events","type":"User","site_admin":false},"parents":[{"sha":"def3808ecd41583818aef3b35675756f00a45bbe","url":"https://api.github.com/repos/stapler/stapler/commits/def3808ecd41583818aef3b35675756f00a45bbe","html_url":"https://github.com/stapler/stapler/commit/def3808ecd41583818aef3b35675756f00a45bbe"}],"stats":{"total":4,"additions":2,"deletions":2},"files":[{"sha":"94863e605b263eac4033a58ae826865663ac844a","filename":".mvn/extensions.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/72343298733508cced8dcb8eb43594bcc6130b26/.mvn/extensions.xml","raw_url":"https://github.com/stapler/stapler/raw/72343298733508cced8dcb8eb43594bcc6130b26/.mvn/extensions.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/.mvn/extensions.xml?ref=72343298733508cced8dcb8eb43594bcc6130b26","patch":"@@ -2,6 +2,6 @@\n \n io.jenkins.tools.incrementals\n git-changelist-maven-extension\n- 1.0-beta-2\n+ 1.0-beta-7\n \n "},{"sha":"4976b0e34415ab2138ee63db72b1f374517bb2fd","filename":"pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/72343298733508cced8dcb8eb43594bcc6130b26/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/72343298733508cced8dcb8eb43594bcc6130b26/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=72343298733508cced8dcb8eb43594bcc6130b26","patch":"@@ -357,7 +357,7 @@\n \n io.jenkins.tools.incrementals\n incrementals-enforcer-rules\n- 1.0-beta-4\n+ 1.0-beta-5\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json new file mode 100644 index 0000000000..82f7fb065f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json @@ -0,0 +1 @@ +{"sha":"950acbd60ed4289520dcd2a395e5d77f181e1cff","node_id":"MDY6Q29tbWl0MTU0ODUxNDo5NTBhY2JkNjBlZDQyODk1MjBkY2QyYTM5NWU1ZDc3ZjE4MWUxY2Zm","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:53Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:53Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8","url":"https://api.github.com/repos/stapler/stapler/git/trees/cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAl1a7L0ACgkQHdpp2Uti\nQxHaAwgApG8F+WMMEdEkw5pqcbz3m5fIRD47tKvgyXHRzE9nCIQ26GLyw4gRNBX+\nDT2lOE6EEPSpC5yqlAJSOZUKlmh7QLbolJwfm5NTi6+siV0zFQB7Y1A/BW6PawCh\nPoCgkWIpR6ElC2y48KSmWRC5BJ4NkXtwh/v3yqa094wY1zlv5EazT/e2CcWhL7Ky\n0/a4IFMFuVRMt1qzY43umTAWP6k36PorBWHOTsMrQ2Nrq3LHjbldH3KzRPqkWy9X\ntTp5hMQ1zr4wQYeb9duQFE5m8UcJaZP1Rl0uET2DdeceibLBeFWEFruuzWeY6y+d\ngmzN3JL1Qjeex/qI3s1G4vh0ybfxMg==\n=lHha\n-----END PGP SIGNATURE-----","payload":"tree cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8\nparent 6a243869aa3c3f80579102d00848a0083953d654\nauthor Jesse Glick 1566239933 -0400\ncommitter Jesse Glick 1566239933 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff","html_url":"https://github.com/stapler/stapler/commit/950acbd60ed4289520dcd2a395e5d77f181e1cff","comments_url":"https://api.github.com/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"6a243869aa3c3f80579102d00848a0083953d654","url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654","html_url":"https://github.com/stapler/stapler/commit/6a243869aa3c3f80579102d00848a0083953d654"}],"stats":{"total":18,"additions":9,"deletions":9},"files":[{"sha":"d5db8c67ff1f81d36f1e827f9167efef73a90e11","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler"},{"sha":"df30de83b3590c884f757b29cbe192ed7448ad9a","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-groovy"},{"sha":"04a2e597ea9a15b153da5c17e92a0e8df44ec31a","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jelly"},{"sha":"5fa54083143c6b88b5a51ac31b470ab312a879c1","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jrebel"},{"sha":"8309e3bea60cdedb5920a821247fe726b2ef9cea","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jruby"},{"sha":"5ce1d053c5c853854188bc7bc99c17e675856d29","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jsp"},{"sha":"a5d53737cfb81a8cd139b084a7f196452c120ffa","filename":"pom.xml","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- 1.258\n+ ${revision}${changelist}\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- stapler-parent-1.258\n+ ${scmTag}\n \n \n \n@@ -81,7 +81,7 @@\n \n UTF-8\n 8\n- 1.258\n+ 1.259\n -SNAPSHOT\n https://repo.jenkins-ci.org/incrementals/\n HEAD"}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json new file mode 100644 index 0000000000..82f7fb065f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json @@ -0,0 +1 @@ +{"sha":"950acbd60ed4289520dcd2a395e5d77f181e1cff","node_id":"MDY6Q29tbWl0MTU0ODUxNDo5NTBhY2JkNjBlZDQyODk1MjBkY2QyYTM5NWU1ZDc3ZjE4MWUxY2Zm","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:53Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-08-19T18:38:53Z"},"message":"[maven-release-plugin] prepare for next development iteration","tree":{"sha":"cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8","url":"https://api.github.com/repos/stapler/stapler/git/trees/cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAl1a7L0ACgkQHdpp2Uti\nQxHaAwgApG8F+WMMEdEkw5pqcbz3m5fIRD47tKvgyXHRzE9nCIQ26GLyw4gRNBX+\nDT2lOE6EEPSpC5yqlAJSOZUKlmh7QLbolJwfm5NTi6+siV0zFQB7Y1A/BW6PawCh\nPoCgkWIpR6ElC2y48KSmWRC5BJ4NkXtwh/v3yqa094wY1zlv5EazT/e2CcWhL7Ky\n0/a4IFMFuVRMt1qzY43umTAWP6k36PorBWHOTsMrQ2Nrq3LHjbldH3KzRPqkWy9X\ntTp5hMQ1zr4wQYeb9duQFE5m8UcJaZP1Rl0uET2DdeceibLBeFWEFruuzWeY6y+d\ngmzN3JL1Qjeex/qI3s1G4vh0ybfxMg==\n=lHha\n-----END PGP SIGNATURE-----","payload":"tree cdd0f7a1782143bfbc97e0d7f6cd4f6cac504df8\nparent 6a243869aa3c3f80579102d00848a0083953d654\nauthor Jesse Glick 1566239933 -0400\ncommitter Jesse Glick 1566239933 -0400\n\n[maven-release-plugin] prepare for next development iteration\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff","html_url":"https://github.com/stapler/stapler/commit/950acbd60ed4289520dcd2a395e5d77f181e1cff","comments_url":"https://api.github.com/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"6a243869aa3c3f80579102d00848a0083953d654","url":"https://api.github.com/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654","html_url":"https://github.com/stapler/stapler/commit/6a243869aa3c3f80579102d00848a0083953d654"}],"stats":{"total":18,"additions":9,"deletions":9},"files":[{"sha":"d5db8c67ff1f81d36f1e827f9167efef73a90e11","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler"},{"sha":"df30de83b3590c884f757b29cbe192ed7448ad9a","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-groovy"},{"sha":"04a2e597ea9a15b153da5c17e92a0e8df44ec31a","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jelly"},{"sha":"5fa54083143c6b88b5a51ac31b470ab312a879c1","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jrebel"},{"sha":"8309e3bea60cdedb5920a821247fe726b2ef9cea","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jruby"},{"sha":"5ce1d053c5c853854188bc7bc99c17e675856d29","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- 1.258\n+ ${revision}${changelist}\n \n \n stapler-jsp"},{"sha":"a5d53737cfb81a8cd139b084a7f196452c120ffa","filename":"pom.xml","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/stapler/stapler/blob/950acbd60ed4289520dcd2a395e5d77f181e1cff/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/950acbd60ed4289520dcd2a395e5d77f181e1cff/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=950acbd60ed4289520dcd2a395e5d77f181e1cff","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- 1.258\n+ ${revision}${changelist}\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- stapler-parent-1.258\n+ ${scmTag}\n \n \n \n@@ -81,7 +81,7 @@\n \n UTF-8\n 8\n- 1.258\n+ 1.259\n -SNAPSHOT\n https://repo.jenkins-ci.org/incrementals/\n HEAD"}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json new file mode 100644 index 0000000000..0ba02c6483 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json @@ -0,0 +1 @@ +{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","node_id":"MDY6Q29tbWl0MTU0ODUxNDpkOTIyYjgwODA2OGNmOTVkNmY2YWI2MjRjZTJjN2Y0OWQ1MWY1MzIx","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:11Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:11Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.257","tree":{"sha":"86a648b84700a80e22f089252cea0d70e61857bf","url":"https://api.github.com/repos/stapler/stapler/git/trees/86a648b84700a80e22f089252cea0d70e61857bf"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWF8ACgkQHdpp2Uti\nQxFUSQf/TTTCnvT3vAgDwXjs8YOqX9HNxwGl7ugrAN6TU2tRhBjLQovwFZgdJWMK\nVbQ9LNHPM4pDmedCnSMV7dd7b686Auy4qY3oSrr4ATtOZFj+qIxo3WzLXFfTm0+f\n2crxX4TrVj+to5kFb+tXZo5tB/36WThebpVJvT8KMgGEuUheYOanJeqqygsH0eCe\nbC3lMunAqKIe1NFxrEVET4Ut6Gt+SvOhzqf0bJASnPKiyugz68ZpOUOsHHAe3sxo\nlYUBrILfrMsUzxBTfcVVpSIUVv5gIQXVdzK+Jk27sCIfw9iV2Is7BlHW63inZHCM\nkjGyPLEI+rikA5xSrqrK37Omfha3Rw==\n=C5kb\n-----END PGP SIGNATURE-----","payload":"tree 86a648b84700a80e22f089252cea0d70e61857bf\nparent efe737fa365a0187e052bc81391efbd84847a1b0\nauthor Jesse Glick 1554733151 -0400\ncommitter Jesse Glick 1554733151 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.257\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","html_url":"https://github.com/stapler/stapler/commit/d922b808068cf95d6f6ab624ce2c7f49d51f5321","comments_url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"efe737fa365a0187e052bc81391efbd84847a1b0","url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0","html_url":"https://github.com/stapler/stapler/commit/efe737fa365a0187e052bc81391efbd84847a1b0"}],"stats":{"total":16,"additions":8,"deletions":8},"files":[{"sha":"286ca8dd7b8018f3140674710f7473523393782e","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler"},{"sha":"1a4475dd35726dbba416e63d994736cbe1c7ab99","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-groovy"},{"sha":"8146cea2347fdadeca07bcc73e023ca92486b063","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jelly"},{"sha":"51b4ec42334a4fba9da46acea3f4fb17685d8019","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jrebel"},{"sha":"a9320b466ffd0c35dbf5dcfb04ce21d120676ef2","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jruby"},{"sha":"5782199c8726ec8938a63630cef1deb7336b3e41","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jsp"},{"sha":"bb9539f22936ea88efd4e73c080370957210f56b","filename":"pom.xml","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- ${revision}${changelist}\n+ 1.257\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- ${scmTag}\n+ stapler-parent-1.257\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json new file mode 100644 index 0000000000..0ba02c6483 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json @@ -0,0 +1 @@ +{"sha":"d922b808068cf95d6f6ab624ce2c7f49d51f5321","node_id":"MDY6Q29tbWl0MTU0ODUxNDpkOTIyYjgwODA2OGNmOTVkNmY2YWI2MjRjZTJjN2Y0OWQ1MWY1MzIx","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:11Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:19:11Z"},"message":"[maven-release-plugin] prepare release stapler-parent-1.257","tree":{"sha":"86a648b84700a80e22f089252cea0d70e61857bf","url":"https://api.github.com/repos/stapler/stapler/git/trees/86a648b84700a80e22f089252cea0d70e61857bf"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWF8ACgkQHdpp2Uti\nQxFUSQf/TTTCnvT3vAgDwXjs8YOqX9HNxwGl7ugrAN6TU2tRhBjLQovwFZgdJWMK\nVbQ9LNHPM4pDmedCnSMV7dd7b686Auy4qY3oSrr4ATtOZFj+qIxo3WzLXFfTm0+f\n2crxX4TrVj+to5kFb+tXZo5tB/36WThebpVJvT8KMgGEuUheYOanJeqqygsH0eCe\nbC3lMunAqKIe1NFxrEVET4Ut6Gt+SvOhzqf0bJASnPKiyugz68ZpOUOsHHAe3sxo\nlYUBrILfrMsUzxBTfcVVpSIUVv5gIQXVdzK+Jk27sCIfw9iV2Is7BlHW63inZHCM\nkjGyPLEI+rikA5xSrqrK37Omfha3Rw==\n=C5kb\n-----END PGP SIGNATURE-----","payload":"tree 86a648b84700a80e22f089252cea0d70e61857bf\nparent efe737fa365a0187e052bc81391efbd84847a1b0\nauthor Jesse Glick 1554733151 -0400\ncommitter Jesse Glick 1554733151 -0400\n\n[maven-release-plugin] prepare release stapler-parent-1.257\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321","html_url":"https://github.com/stapler/stapler/commit/d922b808068cf95d6f6ab624ce2c7f49d51f5321","comments_url":"https://api.github.com/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"efe737fa365a0187e052bc81391efbd84847a1b0","url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0","html_url":"https://github.com/stapler/stapler/commit/efe737fa365a0187e052bc81391efbd84847a1b0"}],"stats":{"total":16,"additions":8,"deletions":8},"files":[{"sha":"286ca8dd7b8018f3140674710f7473523393782e","filename":"core/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/core/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/core/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/core/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler"},{"sha":"1a4475dd35726dbba416e63d994736cbe1c7ab99","filename":"groovy/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/groovy/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/groovy/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/groovy/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-groovy"},{"sha":"8146cea2347fdadeca07bcc73e023ca92486b063","filename":"jelly/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jelly/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jelly/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jelly/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jelly"},{"sha":"51b4ec42334a4fba9da46acea3f4fb17685d8019","filename":"jrebel/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jrebel/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jrebel/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jrebel/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jrebel"},{"sha":"a9320b466ffd0c35dbf5dcfb04ce21d120676ef2","filename":"jruby/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jruby/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jruby/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jruby/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jruby"},{"sha":"5782199c8726ec8938a63630cef1deb7336b3e41","filename":"jsp/pom.xml","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jsp/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/jsp/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/jsp/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -3,7 +3,7 @@\n \n org.kohsuke.stapler\n stapler-parent\n- ${revision}${changelist}\n+ 1.257\n \n \n stapler-jsp"},{"sha":"bb9539f22936ea88efd4e73c080370957210f56b","filename":"pom.xml","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/stapler/stapler/blob/d922b808068cf95d6f6ab624ce2c7f49d51f5321/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/d922b808068cf95d6f6ab624ce2c7f49d51f5321/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=d922b808068cf95d6f6ab624ce2c7f49d51f5321","patch":"@@ -10,7 +10,7 @@\n org.kohsuke.stapler\n stapler-parent\n pom\n- ${revision}${changelist}\n+ 1.257\n \n Stapler\n Stapler HTTP request handling engine\n@@ -38,7 +38,7 @@\n scm:git:git://github.com/stapler/stapler.git\n scm:git:ssh://git@github.com/stapler/stapler.git\n https://github.com/stapler/stapler\n- ${scmTag}\n+ stapler-parent-1.257\n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json new file mode 100644 index 0000000000..dd7dca00aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json @@ -0,0 +1 @@ +{"sha":"efe737fa365a0187e052bc81391efbd84847a1b0","node_id":"MDY6Q29tbWl0MTU0ODUxNDplZmU3MzdmYTM2NWEwMTg3ZTA1MmJjODEzOTFlZmJkODQ4NDdhMWIw","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:17:55Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:17:55Z"},"message":"#157 neglected to add incrementals-maven-plugin to pluginManagement, breaking reincrementalify during release.","tree":{"sha":"109f198441d6524d99e237ac863e28e80ad77e59","url":"https://api.github.com/repos/stapler/stapler/git/trees/109f198441d6524d99e237ac863e28e80ad77e59"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/efe737fa365a0187e052bc81391efbd84847a1b0","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWBMACgkQHdpp2Uti\nQxFdngf9HAAKvEN8oIEBq5Vy45V80FMdWVjiYb21qoZ5l6KHNgLm1AmBsnQWvvpU\n1Q+VKMfdp6+492flDYrn+rjLOVAUcHwReTHtyq7YqkUP1E/4FJfT/8mi0szD9u4+\nhDUWKUs0//LLqTGHGgvLcQc4FXHNzcuZIowOfuHlCAOgWHqWuYDnb4aFhY3s8RdJ\na6E0V9MeUtmehKZBhGedfY+b/JpudFC+9dquR5rHEg8cP5jr7Gc3Ifcgx9nNMYXE\nn8qiwz02udK8pU+Z1KVzU4NbHydVHN8V4GceeDhqRbNNM0hjJ1ieBQefpJ+7E76R\nW9pTOeYzI9Xi1nA2pqHR5HVIk5OggA==\n=FmWz\n-----END PGP SIGNATURE-----","payload":"tree 109f198441d6524d99e237ac863e28e80ad77e59\nparent 08b13de864bc134fd790decd4f20db9074c7685f\nauthor Jesse Glick 1554733075 -0400\ncommitter Jesse Glick 1554733075 -0400\n\n#157 neglected to add incrementals-maven-plugin to pluginManagement, breaking reincrementalify during release.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0","html_url":"https://github.com/stapler/stapler/commit/efe737fa365a0187e052bc81391efbd84847a1b0","comments_url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"08b13de864bc134fd790decd4f20db9074c7685f","url":"https://api.github.com/repos/stapler/stapler/commits/08b13de864bc134fd790decd4f20db9074c7685f","html_url":"https://github.com/stapler/stapler/commit/08b13de864bc134fd790decd4f20db9074c7685f"}],"stats":{"total":9,"additions":9,"deletions":0},"files":[{"sha":"879f7cfd81594702efa34611f52b94c795230436","filename":"pom.xml","status":"modified","additions":9,"deletions":0,"changes":9,"blob_url":"https://github.com/stapler/stapler/blob/efe737fa365a0187e052bc81391efbd84847a1b0/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/efe737fa365a0187e052bc81391efbd84847a1b0/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=efe737fa365a0187e052bc81391efbd84847a1b0","patch":"@@ -206,6 +206,15 @@\n -Djdk.net.URLClassPath.disableClassPathURLCheck=true\n \n \n+ \n+ io.jenkins.tools.incrementals\n+ incrementals-maven-plugin\n+ 1.0-beta-7\n+ \n+ false\n+ false\n+ \n+ \n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json new file mode 100644 index 0000000000..dd7dca00aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json @@ -0,0 +1 @@ +{"sha":"efe737fa365a0187e052bc81391efbd84847a1b0","node_id":"MDY6Q29tbWl0MTU0ODUxNDplZmU3MzdmYTM2NWEwMTg3ZTA1MmJjODEzOTFlZmJkODQ4NDdhMWIw","commit":{"author":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:17:55Z"},"committer":{"name":"Jesse Glick","email":"jglick@cloudbees.com","date":"2019-04-08T14:17:55Z"},"message":"#157 neglected to add incrementals-maven-plugin to pluginManagement, breaking reincrementalify during release.","tree":{"sha":"109f198441d6524d99e237ac863e28e80ad77e59","url":"https://api.github.com/repos/stapler/stapler/git/trees/109f198441d6524d99e237ac863e28e80ad77e59"},"url":"https://api.github.com/repos/stapler/stapler/git/commits/efe737fa365a0187e052bc81391efbd84847a1b0","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCgAdFiEEYYylhqBIUt57zhxYHdpp2UtiQxEFAlyrWBMACgkQHdpp2Uti\nQxFdngf9HAAKvEN8oIEBq5Vy45V80FMdWVjiYb21qoZ5l6KHNgLm1AmBsnQWvvpU\n1Q+VKMfdp6+492flDYrn+rjLOVAUcHwReTHtyq7YqkUP1E/4FJfT/8mi0szD9u4+\nhDUWKUs0//LLqTGHGgvLcQc4FXHNzcuZIowOfuHlCAOgWHqWuYDnb4aFhY3s8RdJ\na6E0V9MeUtmehKZBhGedfY+b/JpudFC+9dquR5rHEg8cP5jr7Gc3Ifcgx9nNMYXE\nn8qiwz02udK8pU+Z1KVzU4NbHydVHN8V4GceeDhqRbNNM0hjJ1ieBQefpJ+7E76R\nW9pTOeYzI9Xi1nA2pqHR5HVIk5OggA==\n=FmWz\n-----END PGP SIGNATURE-----","payload":"tree 109f198441d6524d99e237ac863e28e80ad77e59\nparent 08b13de864bc134fd790decd4f20db9074c7685f\nauthor Jesse Glick 1554733075 -0400\ncommitter Jesse Glick 1554733075 -0400\n\n#157 neglected to add incrementals-maven-plugin to pluginManagement, breaking reincrementalify during release.\n"}},"url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0","html_url":"https://github.com/stapler/stapler/commit/efe737fa365a0187e052bc81391efbd84847a1b0","comments_url":"https://api.github.com/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0/comments","author":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"committer":{"login":"jglick","id":154109,"node_id":"MDQ6VXNlcjE1NDEwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/154109?v=4","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"parents":[{"sha":"08b13de864bc134fd790decd4f20db9074c7685f","url":"https://api.github.com/repos/stapler/stapler/commits/08b13de864bc134fd790decd4f20db9074c7685f","html_url":"https://github.com/stapler/stapler/commit/08b13de864bc134fd790decd4f20db9074c7685f"}],"stats":{"total":9,"additions":9,"deletions":0},"files":[{"sha":"879f7cfd81594702efa34611f52b94c795230436","filename":"pom.xml","status":"modified","additions":9,"deletions":0,"changes":9,"blob_url":"https://github.com/stapler/stapler/blob/efe737fa365a0187e052bc81391efbd84847a1b0/pom.xml","raw_url":"https://github.com/stapler/stapler/raw/efe737fa365a0187e052bc81391efbd84847a1b0/pom.xml","contents_url":"https://api.github.com/repos/stapler/stapler/contents/pom.xml?ref=efe737fa365a0187e052bc81391efbd84847a1b0","patch":"@@ -206,6 +206,15 @@\n -Djdk.net.URLClassPath.disableClassPathURLCheck=true\n \n \n+ \n+ io.jenkins.tools.incrementals\n+ incrementals-maven-plugin\n+ 1.0-beta-7\n+ \n+ false\n+ false\n+ \n+ \n \n \n "}]} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json new file mode 100644 index 0000000000..91444a04ba --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/__files/user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json @@ -0,0 +1 @@ +{"login":"bitwiseman","id":1958953,"node_id":"MDQ6VXNlcjE5NTg5NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1958953?v=4","gravatar_id":"","url":"https://api.github.com/users/bitwiseman","html_url":"https://github.com/bitwiseman","followers_url":"https://api.github.com/users/bitwiseman/followers","following_url":"https://api.github.com/users/bitwiseman/following{/other_user}","gists_url":"https://api.github.com/users/bitwiseman/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwiseman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwiseman/subscriptions","organizations_url":"https://api.github.com/users/bitwiseman/orgs","repos_url":"https://api.github.com/users/bitwiseman/repos","events_url":"https://api.github.com/users/bitwiseman/events{/privacy}","received_events_url":"https://api.github.com/users/bitwiseman/received_events","type":"User","site_admin":false,"name":"Liam Newman","company":"Cloudbees, Inc.","blog":"","location":"Seattle, WA, USA","email":"bitwiseman@gmail.com","hireable":null,"bio":"https://twitter.com/bitwiseman","public_repos":166,"public_gists":4,"followers":133,"following":9,"created_at":"2012-07-11T20:38:33Z","updated_at":"2019-06-03T17:47:20Z"} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json new file mode 100644 index 0000000000..9e30fe8ca8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json @@ -0,0 +1,40 @@ +{ + "id" : "34276839-6f01-44ea-856d-5b26cc12edf8", + "name" : "repos_stapler_stapler", + "request" : { + "url" : "/repos/stapler/stapler", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler-34276839-6f01-44ea-856d-5b26cc12edf8.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:00 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4955", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"449cae6ec2615b7bcbe15d6e821627cc\"", + "Last-Modified" : "Tue, 27 Aug 2019 16:42:33 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "repo", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2058:C010F:5D769A63" + } + }, + "uuid" : "34276839-6f01-44ea-856d-5b26cc12edf8", + "persistent" : true, + "insertionIndex" : 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json new file mode 100644 index 0000000000..63f9cbef49 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json @@ -0,0 +1,41 @@ +{ + "id" : "6214feb0-5ed5-4325-8407-2f75bef1c4bd", + "name" : "repos_stapler_stapler_commits", + "request" : { + "url" : "/repos/stapler/stapler/commits?path=pom.xml", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits-6214feb0-5ed5-4325-8407-2f75bef1c4bd.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:00 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4954", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"e637dc76b698b0b086c2753b30498d0a\"", + "Last-Modified" : "Mon, 19 Aug 2019 18:38:53 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Link" : "; rel=\"next\", ; rel=\"last\"", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2072:C014B:5D769A64" + } + }, + "uuid" : "6214feb0-5ed5-4325-8407-2f75bef1c4bd", + "persistent" : true, + "insertionIndex" : 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json new file mode 100644 index 0000000000..e564f4669d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json @@ -0,0 +1,43 @@ +{ + "id" : "4fa8c092-5fdf-4ac3-a09a-8713da340f66", + "name" : "repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4", + "request" : { + "url" : "/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-4fa8c092-5fdf-4ac3-a09a-8713da340f66.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:02 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4949", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"0563d0f3c97c60e7ae7e2195d94abb92\"", + "Last-Modified" : "Mon, 19 Aug 2019 17:42:58 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2154:C0274:5D769A65" + } + }, + "uuid" : "4fa8c092-5fdf-4ac3-a09a-8713da340f66", + "persistent" : true, + "scenarioName" : "scenario-3-repos-stapler-stapler-commits-06b1108ec041fd8d6e7f54c8578d84a672fee9e4", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-3-repos-stapler-stapler-commits-06b1108ec041fd8d6e7f54c8578d84a672fee9e4-2", + "insertionIndex" : 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json new file mode 100644 index 0000000000..8d0c7dab19 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json @@ -0,0 +1,42 @@ +{ + "id" : "ad6e998e-9ae1-4bae-9da2-1dd49495d5cb", + "name" : "repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4", + "request" : { + "url" : "/repos/stapler/stapler/commits/06b1108ec041fd8d6e7f54c8578d84a672fee9e4", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_06b1108ec041fd8d6e7f54c8578d84a672fee9e4-ad6e998e-9ae1-4bae-9da2-1dd49495d5cb.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:02 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4948", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"0563d0f3c97c60e7ae7e2195d94abb92\"", + "Last-Modified" : "Mon, 19 Aug 2019 17:42:58 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A217C:C02A1:5D769A66" + } + }, + "uuid" : "ad6e998e-9ae1-4bae-9da2-1dd49495d5cb", + "persistent" : true, + "scenarioName" : "scenario-3-repos-stapler-stapler-commits-06b1108ec041fd8d6e7f54c8578d84a672fee9e4", + "requiredScenarioState" : "scenario-3-repos-stapler-stapler-commits-06b1108ec041fd8d6e7f54c8578d84a672fee9e4-2", + "insertionIndex" : 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json new file mode 100644 index 0000000000..4b6c9e6c72 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json @@ -0,0 +1,43 @@ +{ + "id" : "8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7", + "name" : "repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679", + "request" : { + "url" : "/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:02 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4947", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"210b8038c41dfbe9d59f53360f6c2b2b\"", + "Last-Modified" : "Fri, 28 Jun 2019 16:21:18 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A219F:C02CD:5D769A66" + } + }, + "uuid" : "8ac20af2-3f87-419a-b5cb-a96f5f2fd3c7", + "persistent" : true, + "scenarioName" : "scenario-4-repos-stapler-stapler-commits-2a971c4e38c6d6693f7ad8b6768e4d74840d6679", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-4-repos-stapler-stapler-commits-2a971c4e38c6d6693f7ad8b6768e4d74840d6679-2", + "insertionIndex" : 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json new file mode 100644 index 0000000000..9d1050aa93 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json @@ -0,0 +1,42 @@ +{ + "id" : "c9650076-4963-4d6a-9c1c-07c6339a48dd", + "name" : "repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679", + "request" : { + "url" : "/repos/stapler/stapler/commits/2a971c4e38c6d6693f7ad8b6768e4d74840d6679", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_2a971c4e38c6d6693f7ad8b6768e4d74840d6679-c9650076-4963-4d6a-9c1c-07c6339a48dd.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:02 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4946", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"210b8038c41dfbe9d59f53360f6c2b2b\"", + "Last-Modified" : "Fri, 28 Jun 2019 16:21:18 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A21B5:C02E7:5D769A66" + } + }, + "uuid" : "c9650076-4963-4d6a-9c1c-07c6339a48dd", + "persistent" : true, + "scenarioName" : "scenario-4-repos-stapler-stapler-commits-2a971c4e38c6d6693f7ad8b6768e4d74840d6679", + "requiredScenarioState" : "scenario-4-repos-stapler-stapler-commits-2a971c4e38c6d6693f7ad8b6768e4d74840d6679-2", + "insertionIndex" : 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json new file mode 100644 index 0000000000..3e1998ea7d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json @@ -0,0 +1,42 @@ +{ + "id" : "b7c821b4-b43e-44a2-bea6-83304ffae91f", + "name" : "repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d", + "request" : { + "url" : "/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-b7c821b4-b43e-44a2-bea6-83304ffae91f.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:03 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4944", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"ed3c1e9504b58dbca20c126b9e36718f\"", + "Last-Modified" : "Mon, 08 Apr 2019 14:19:21 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2201:C0339:5D769A66" + } + }, + "uuid" : "b7c821b4-b43e-44a2-bea6-83304ffae91f", + "persistent" : true, + "scenarioName" : "scenario-5-repos-stapler-stapler-commits-2f4ca0f03c1e6188867bddddce12ff213a107d9d", + "requiredScenarioState" : "scenario-5-repos-stapler-stapler-commits-2f4ca0f03c1e6188867bddddce12ff213a107d9d-2", + "insertionIndex" : 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json new file mode 100644 index 0000000000..5d6938ae48 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json @@ -0,0 +1,43 @@ +{ + "id" : "dd34f14b-38e1-406d-94b8-c650832d9bd4", + "name" : "repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d", + "request" : { + "url" : "/repos/stapler/stapler/commits/2f4ca0f03c1e6188867bddddce12ff213a107d9d", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_2f4ca0f03c1e6188867bddddce12ff213a107d9d-dd34f14b-38e1-406d-94b8-c650832d9bd4.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:02 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4945", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"ed3c1e9504b58dbca20c126b9e36718f\"", + "Last-Modified" : "Mon, 08 Apr 2019 14:19:21 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A21D2:C030E:5D769A66" + } + }, + "uuid" : "dd34f14b-38e1-406d-94b8-c650832d9bd4", + "persistent" : true, + "scenarioName" : "scenario-5-repos-stapler-stapler-commits-2f4ca0f03c1e6188867bddddce12ff213a107d9d", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-5-repos-stapler-stapler-commits-2f4ca0f03c1e6188867bddddce12ff213a107d9d-2", + "insertionIndex" : 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json new file mode 100644 index 0000000000..1ac89fff06 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json @@ -0,0 +1,43 @@ +{ + "id" : "3e6d369c-c2ff-4835-abb3-00858c380485", + "name" : "repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca", + "request" : { + "url" : "/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-3e6d369c-c2ff-4835-abb3-00858c380485.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:05 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4935", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"2524c8a4ca350cca9cada10977584c79\"", + "Last-Modified" : "Mon, 18 Feb 2019 22:52:29 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2369:C04E2:5D769A69" + } + }, + "uuid" : "3e6d369c-c2ff-4835-abb3-00858c380485", + "persistent" : true, + "scenarioName" : "scenario-10-repos-stapler-stapler-commits-4f260c560ec120f4e2c2ed727244690b1f4d5dca", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-10-repos-stapler-stapler-commits-4f260c560ec120f4e2c2ed727244690b1f4d5dca-2", + "insertionIndex" : 22 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json new file mode 100644 index 0000000000..a53cb9e0d8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json @@ -0,0 +1,42 @@ +{ + "id" : "8573f146-63d0-4ffe-9d91-e05573680be5", + "name" : "repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca", + "request" : { + "url" : "/repos/stapler/stapler/commits/4f260c560ec120f4e2c2ed727244690b1f4d5dca", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_4f260c560ec120f4e2c2ed727244690b1f4d5dca-8573f146-63d0-4ffe-9d91-e05573680be5.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:05 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4934", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"2524c8a4ca350cca9cada10977584c79\"", + "Last-Modified" : "Mon, 18 Feb 2019 22:52:29 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2386:C04FF:5D769A69" + } + }, + "uuid" : "8573f146-63d0-4ffe-9d91-e05573680be5", + "persistent" : true, + "scenarioName" : "scenario-10-repos-stapler-stapler-commits-4f260c560ec120f4e2c2ed727244690b1f4d5dca", + "requiredScenarioState" : "scenario-10-repos-stapler-stapler-commits-4f260c560ec120f4e2c2ed727244690b1f4d5dca-2", + "insertionIndex" : 23 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json new file mode 100644 index 0000000000..c6a9b13df3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json @@ -0,0 +1,43 @@ +{ + "id" : "4c78237a-7bc9-49ce-9a1b-0bed99e888b4", + "name" : "repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59", + "request" : { + "url" : "/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-4c78237a-7bc9-49ce-9a1b-0bed99e888b4.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:04 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4939", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"a4dd6b0ee041284621a857e8ea23c8a1\"", + "Last-Modified" : "Wed, 03 Apr 2019 19:03:54 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A22C3:C041E:5D769A68" + } + }, + "uuid" : "4c78237a-7bc9-49ce-9a1b-0bed99e888b4", + "persistent" : true, + "scenarioName" : "scenario-8-repos-stapler-stapler-commits-53ce34d7d89c5172ae4f4f3167e35852b1910b59", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-8-repos-stapler-stapler-commits-53ce34d7d89c5172ae4f4f3167e35852b1910b59-2", + "insertionIndex" : 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json new file mode 100644 index 0000000000..78be1cec07 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json @@ -0,0 +1,42 @@ +{ + "id" : "5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b", + "name" : "repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59", + "request" : { + "url" : "/repos/stapler/stapler/commits/53ce34d7d89c5172ae4f4f3167e35852b1910b59", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_53ce34d7d89c5172ae4f4f3167e35852b1910b59-5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:04 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4938", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"a4dd6b0ee041284621a857e8ea23c8a1\"", + "Last-Modified" : "Wed, 03 Apr 2019 19:03:54 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A22E2:C0448:5D769A68" + } + }, + "uuid" : "5f3cc3b8-f231-4c58-9ffd-f0cf3c14d49b", + "persistent" : true, + "scenarioName" : "scenario-8-repos-stapler-stapler-commits-53ce34d7d89c5172ae4f4f3167e35852b1910b59", + "requiredScenarioState" : "scenario-8-repos-stapler-stapler-commits-53ce34d7d89c5172ae4f4f3167e35852b1910b59-2", + "insertionIndex" : 19 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json new file mode 100644 index 0000000000..a9dcec1a92 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json @@ -0,0 +1,42 @@ +{ + "id" : "a7972e0c-a2e0-4e50-bd1a-374cfad5576c", + "name" : "repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654", + "request" : { + "url" : "/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-a7972e0c-a2e0-4e50-bd1a-374cfad5576c.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:01 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4950", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"94ef432d31efc82dd4627bbd7fdac3ea\"", + "Last-Modified" : "Mon, 19 Aug 2019 18:38:42 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2139:C0242:5D769A65" + } + }, + "uuid" : "a7972e0c-a2e0-4e50-bd1a-374cfad5576c", + "persistent" : true, + "scenarioName" : "scenario-2-repos-stapler-stapler-commits-6a243869aa3c3f80579102d00848a0083953d654", + "requiredScenarioState" : "scenario-2-repos-stapler-stapler-commits-6a243869aa3c3f80579102d00848a0083953d654-2", + "insertionIndex" : 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json new file mode 100644 index 0000000000..9be26bf900 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json @@ -0,0 +1,43 @@ +{ + "id" : "d76af952-0ff3-4514-9a38-93d9570c5b3c", + "name" : "repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654", + "request" : { + "url" : "/repos/stapler/stapler/commits/6a243869aa3c3f80579102d00848a0083953d654", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_6a243869aa3c3f80579102d00848a0083953d654-d76af952-0ff3-4514-9a38-93d9570c5b3c.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:01 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4951", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"94ef432d31efc82dd4627bbd7fdac3ea\"", + "Last-Modified" : "Mon, 19 Aug 2019 18:38:42 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A20F4:C01FD:5D769A65" + } + }, + "uuid" : "d76af952-0ff3-4514-9a38-93d9570c5b3c", + "persistent" : true, + "scenarioName" : "scenario-2-repos-stapler-stapler-commits-6a243869aa3c3f80579102d00848a0083953d654", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-2-repos-stapler-stapler-commits-6a243869aa3c3f80579102d00848a0083953d654-2", + "insertionIndex" : 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json new file mode 100644 index 0000000000..f718aaad7e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json @@ -0,0 +1,43 @@ +{ + "id" : "73ac5fc1-ea49-4c48-bc8a-f306908d7836", + "name" : "repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26", + "request" : { + "url" : "/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-73ac5fc1-ea49-4c48-bc8a-f306908d7836.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:04 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4937", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"133ab1934268062df543529934ac067f\"", + "Last-Modified" : "Tue, 19 Feb 2019 21:27:25 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2333:C049A:5D769A68" + } + }, + "uuid" : "73ac5fc1-ea49-4c48-bc8a-f306908d7836", + "persistent" : true, + "scenarioName" : "scenario-9-repos-stapler-stapler-commits-72343298733508cced8dcb8eb43594bcc6130b26", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-9-repos-stapler-stapler-commits-72343298733508cced8dcb8eb43594bcc6130b26-2", + "insertionIndex" : 20 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json new file mode 100644 index 0000000000..fa965d20d6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json @@ -0,0 +1,42 @@ +{ + "id" : "77b7d93a-9cd6-48a5-af7d-2ee6e4efa296", + "name" : "repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26", + "request" : { + "url" : "/repos/stapler/stapler/commits/72343298733508cced8dcb8eb43594bcc6130b26", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_72343298733508cced8dcb8eb43594bcc6130b26-77b7d93a-9cd6-48a5-af7d-2ee6e4efa296.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:05 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4936", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"133ab1934268062df543529934ac067f\"", + "Last-Modified" : "Tue, 19 Feb 2019 21:27:25 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A2351:C04C1:5D769A68" + } + }, + "uuid" : "77b7d93a-9cd6-48a5-af7d-2ee6e4efa296", + "persistent" : true, + "scenarioName" : "scenario-9-repos-stapler-stapler-commits-72343298733508cced8dcb8eb43594bcc6130b26", + "requiredScenarioState" : "scenario-9-repos-stapler-stapler-commits-72343298733508cced8dcb8eb43594bcc6130b26-2", + "insertionIndex" : 21 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json new file mode 100644 index 0000000000..4d45e622b3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json @@ -0,0 +1,42 @@ +{ + "id" : "1aa53060-8df1-4455-ae37-21eed443f58b", + "name" : "repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff", + "request" : { + "url" : "/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-1aa53060-8df1-4455-ae37-21eed443f58b.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:01 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4952", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"6726f0c54296f6478d8760f10a8946f5\"", + "Last-Modified" : "Mon, 19 Aug 2019 18:38:53 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A20D9:C01DE:5D769A65" + } + }, + "uuid" : "1aa53060-8df1-4455-ae37-21eed443f58b", + "persistent" : true, + "scenarioName" : "scenario-1-repos-stapler-stapler-commits-950acbd60ed4289520dcd2a395e5d77f181e1cff", + "requiredScenarioState" : "scenario-1-repos-stapler-stapler-commits-950acbd60ed4289520dcd2a395e5d77f181e1cff-2", + "insertionIndex" : 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json new file mode 100644 index 0000000000..c38899fffc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json @@ -0,0 +1,43 @@ +{ + "id" : "45c73127-9113-4bb6-8193-cedf907fa96a", + "name" : "repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff", + "request" : { + "url" : "/repos/stapler/stapler/commits/950acbd60ed4289520dcd2a395e5d77f181e1cff", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_950acbd60ed4289520dcd2a395e5d77f181e1cff-45c73127-9113-4bb6-8193-cedf907fa96a.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:01 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4953", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"6726f0c54296f6478d8760f10a8946f5\"", + "Last-Modified" : "Mon, 19 Aug 2019 18:38:53 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A20BD:C01B8:5D769A64" + } + }, + "uuid" : "45c73127-9113-4bb6-8193-cedf907fa96a", + "persistent" : true, + "scenarioName" : "scenario-1-repos-stapler-stapler-commits-950acbd60ed4289520dcd2a395e5d77f181e1cff", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-1-repos-stapler-stapler-commits-950acbd60ed4289520dcd2a395e5d77f181e1cff-2", + "insertionIndex" : 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json new file mode 100644 index 0000000000..14f334aff7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json @@ -0,0 +1,43 @@ +{ + "id" : "35c73b49-8705-4fee-abd6-36c9f4bc2825", + "name" : "repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321", + "request" : { + "url" : "/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-35c73b49-8705-4fee-abd6-36c9f4bc2825.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:03 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4943", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"b596f4895bf3131a6d518d8a4c5a4f41\"", + "Last-Modified" : "Mon, 08 Apr 2019 14:19:11 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A222D:C0378:5D769A67" + } + }, + "uuid" : "35c73b49-8705-4fee-abd6-36c9f4bc2825", + "persistent" : true, + "scenarioName" : "scenario-6-repos-stapler-stapler-commits-d922b808068cf95d6f6ab624ce2c7f49d51f5321", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-6-repos-stapler-stapler-commits-d922b808068cf95d6f6ab624ce2c7f49d51f5321-2", + "insertionIndex" : 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json new file mode 100644 index 0000000000..02d7186cdb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json @@ -0,0 +1,42 @@ +{ + "id" : "fb5ea1a9-6086-40a2-a542-7a87ee6bb437", + "name" : "repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321", + "request" : { + "url" : "/repos/stapler/stapler/commits/d922b808068cf95d6f6ab624ce2c7f49d51f5321", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_d922b808068cf95d6f6ab624ce2c7f49d51f5321-fb5ea1a9-6086-40a2-a542-7a87ee6bb437.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:03 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4942", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"b596f4895bf3131a6d518d8a4c5a4f41\"", + "Last-Modified" : "Mon, 08 Apr 2019 14:19:11 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A226E:C03A1:5D769A67" + } + }, + "uuid" : "fb5ea1a9-6086-40a2-a542-7a87ee6bb437", + "persistent" : true, + "scenarioName" : "scenario-6-repos-stapler-stapler-commits-d922b808068cf95d6f6ab624ce2c7f49d51f5321", + "requiredScenarioState" : "scenario-6-repos-stapler-stapler-commits-d922b808068cf95d6f6ab624ce2c7f49d51f5321-2", + "insertionIndex" : 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json new file mode 100644 index 0000000000..1c9b481416 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json @@ -0,0 +1,43 @@ +{ + "id" : "3621ddfb-672d-47aa-8b45-5d15a3e6caaa", + "name" : "repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0", + "request" : { + "url" : "/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-3621ddfb-672d-47aa-8b45-5d15a3e6caaa.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:03 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4941", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"105b96446da95ff8ee109ccaf4fd0d26\"", + "Last-Modified" : "Mon, 08 Apr 2019 14:17:55 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A228A:C03E4:5D769A67" + } + }, + "uuid" : "3621ddfb-672d-47aa-8b45-5d15a3e6caaa", + "persistent" : true, + "scenarioName" : "scenario-7-repos-stapler-stapler-commits-efe737fa365a0187e052bc81391efbd84847a1b0", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-7-repos-stapler-stapler-commits-efe737fa365a0187e052bc81391efbd84847a1b0-2", + "insertionIndex" : 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json new file mode 100644 index 0000000000..e3029f2d60 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json @@ -0,0 +1,42 @@ +{ + "id" : "ca95823a-7ad8-4b14-8d90-c619d98c589f", + "name" : "repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0", + "request" : { + "url" : "/repos/stapler/stapler/commits/efe737fa365a0187e052bc81391efbd84847a1b0", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_stapler_stapler_commits_efe737fa365a0187e052bc81391efbd84847a1b0-ca95823a-7ad8-4b14-8d90-c619d98c589f.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:31:04 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4940", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"105b96446da95ff8ee109ccaf4fd0d26\"", + "Last-Modified" : "Mon, 08 Apr 2019 14:17:55 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A22A6:C0400:5D769A67" + } + }, + "uuid" : "ca95823a-7ad8-4b14-8d90-c619d98c589f", + "persistent" : true, + "scenarioName" : "scenario-7-repos-stapler-stapler-commits-efe737fa365a0187e052bc81391efbd84847a1b0", + "requiredScenarioState" : "scenario-7-repos-stapler-stapler-commits-efe737fa365a0187e052bc81391efbd84847a1b0-2", + "insertionIndex" : 17 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json new file mode 100644 index 0000000000..cbca7e7493 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFiles/mappings/user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json @@ -0,0 +1,40 @@ +{ + "id" : "1b6473bc-f679-44ec-8a6a-6a9d036c91aa", + "name" : "user", + "request" : { + "url" : "/user", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "user-1b6473bc-f679-44ec-8a6a-6a9d036c91aa.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 18:30:59 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4956", + "X-RateLimit-Reset" : "1568056823", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified" : "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "D99C:7CF7:A201C:C00FA:5D769A63" + } + }, + "uuid" : "1b6473bc-f679-44ec-8a6a-6a9d036c91aa", + "persistent" : true, + "insertionIndex" : 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/__files/gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/__files/gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json new file mode 100644 index 0000000000..07482ea5a4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/__files/gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json @@ -0,0 +1,82 @@ +{ + "url": "https://api.github.com/gists/9903708", + "forks_url": "https://api.github.com/gists/9903708/forks", + "commits_url": "https://api.github.com/gists/9903708/commits", + "id": "9903708", + "node_id": "MDQ6R2lzdDk5MDM3MDg=", + "git_pull_url": "https://gist.github.com/9903708.git", + "git_push_url": "https://gist.github.com/9903708.git", + "html_url": "https://gist.github.com/9903708", + "files": { + "keybase.md": { + "filename": "keybase.md", + "type": "text/markdown", + "language": "Markdown", + "raw_url": "https://gist.githubusercontent.com/rtyler/9903708/raw/2b68396d836af8c5b6ba905f27c4baf94ceb0ed3/keybase.md", + "size": 2131, + "truncated": false, + "content": "### Keybase proof\n\nI hereby claim:\n\n * I am rtyler on github.\n * I am rtyler (https://keybase.io/rtyler) on keybase.\n * I have a public key whose fingerprint is 9062 865A 46E8 C749 2BF1 88D7 1426 C7DC 3F51 E16F\n\nTo claim this, I am signing this object:\n\n```json\n{\n \"body\": {\n \"key\": {\n \"fingerprint\": \"9062865a46e8c7492bf188d71426c7dc3f51e16f\",\n \"host\": \"keybase.io\",\n \"key_id\": \"1426C7DC3F51E16F\",\n \"uid\": \"a1925d5d7f45e5b1c8bfe8959f082400\",\n \"username\": \"rtyler\"\n },\n \"service\": {\n \"name\": \"github\",\n \"username\": \"rtyler\"\n },\n \"type\": \"web_service_binding\",\n \"version\": 1\n },\n \"ctime\": 1396304500,\n \"expire_in\": 157680000,\n \"prev\": \"ad8e98eb6fbc79cea025cd2c0ccd10a01ce06fd60db9279dd1cff6db35cd88e8\",\n \"seqno\": 4,\n \"tag\": \"signature\"\n}\n```\n\nwith the PGP key whose fingerprint is\n[9062 865A 46E8 C749 2BF1 88D7 1426 C7DC 3F51 E16F](https://keybase.io/rtyler)\n(captured above as `body.key.fingerprint`), yielding the PGP signature:\n\n```\n-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1\n\nowF1kbFLHEEUxtfzElQUIqRL5QjaHGFmd2d25hoFzfWSP+DYmXlzDtHdy+zemePQ\nWrCRlBG0CNjYqulCikAKm3RJII0GIvhXOCOmTDXM9/2+x/t4h3OTUWP++dK33ysb\n1+XE1Ze/Mnot7uoxkqUeofYYvYGHx9iiB67vbFGjNhKYxZzRPGXAVZaKWBrCuc5I\nGjOVaZUYSoAwg1pos6xCwo+ReQUvbek1/+la7dXAr2Xra0mHkleEdbw3eDByImKq\nqc5MSoFKorg0wAUVBvM4xTiAFbgi3wZPu3q0BQ7ttpDXhlZB2PjR69l6cyD/x9ej\nfhB2QHYfo11pC+3L+sQQXGXLArWJJ1VtQ5YkgiU4pRi3ELzrWwddGwiaMY5xUPsO\nhqGB5iA4SGakyoSCHMdU6VhhpTTBOSYKMDOaYS1FnAmtiTKGaZl4inPgKJR5W5So\nnfo1854fWdlekdcDB2h3v9OM5hvR0yeNcK1oZvrZvxs2p6IPjU9fO98HP1aHp2ef\nf10uvrgtJml0sqeXj8nFRvPmz9Xs0c+D5OP5wvt7\n=M8xI\n-----END PGP MESSAGE-----\n\n```\n\nAnd finally, I am proving ownership of the github account by posting this as a gist.\n\n### My publicly-auditable identity:\n\nhttps://keybase.io/rtyler\n\n### From the command line:\n\nConsider the [keybase command line program](https://keybase.io/__/command_line/keybase).\n\n```bash\n# look me up\nkeybase id rtyler\n\n# encrypt a message to me\nkeybase encrypt rtyler -m 'a secret message...'\n\n# ...and more...\n```\n" + } + }, + "public": true, + "created_at": "2014-03-31T22:22:50Z", + "updated_at": "2019-09-08T06:46:29Z", + "description": "", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/9903708/comments", + "owner": { + "login": "rtyler", + "id": 26594, + "node_id": "MDQ6VXNlcjI2NTk0", + "avatar_url": "https://avatars0.githubusercontent.com/u/26594?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rtyler", + "html_url": "https://github.com/rtyler", + "followers_url": "https://api.github.com/users/rtyler/followers", + "following_url": "https://api.github.com/users/rtyler/following{/other_user}", + "gists_url": "https://api.github.com/users/rtyler/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rtyler/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rtyler/subscriptions", + "organizations_url": "https://api.github.com/users/rtyler/orgs", + "repos_url": "https://api.github.com/users/rtyler/repos", + "events_url": "https://api.github.com/users/rtyler/events{/privacy}", + "received_events_url": "https://api.github.com/users/rtyler/received_events", + "type": "User", + "site_admin": false + }, + "forks": [], + "history": [ + { + "user": { + "login": "rtyler", + "id": 26594, + "node_id": "MDQ6VXNlcjI2NTk0", + "avatar_url": "https://avatars0.githubusercontent.com/u/26594?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rtyler", + "html_url": "https://github.com/rtyler", + "followers_url": "https://api.github.com/users/rtyler/followers", + "following_url": "https://api.github.com/users/rtyler/following{/other_user}", + "gists_url": "https://api.github.com/users/rtyler/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rtyler/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rtyler/subscriptions", + "organizations_url": "https://api.github.com/users/rtyler/orgs", + "repos_url": "https://api.github.com/users/rtyler/repos", + "events_url": "https://api.github.com/users/rtyler/events{/privacy}", + "received_events_url": "https://api.github.com/users/rtyler/received_events", + "type": "User", + "site_admin": false + }, + "version": "c83695bb99506f8f043867429a6987aeab7894ec", + "committed_at": "2014-03-31T22:22:50Z", + "change_status": { + "total": 76, + "additions": 76, + "deletions": 0 + }, + "url": "https://api.github.com/gists/9903708/c83695bb99506f8f043867429a6987aeab7894ec" + } + ], + "truncated": false +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/__files/user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/__files/user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/__files/user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/mappings/gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/mappings/gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json new file mode 100644 index 0000000000..6af630eac7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/mappings/gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json @@ -0,0 +1,43 @@ +{ + "id": "c3067d66-2bb0-4af7-b7d4-98032571c5d0", + "name": "gists_9903708", + "request": { + "url": "/gists/9903708", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "gists_9903708-c3067d66-2bb0-4af7-b7d4-98032571c5d0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4797", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"b6d45b73ecf4a7c47e2af95f762390c6\"", + "Last-Modified": "Sun, 08 Sep 2019 06:46:29 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD51:4FAD:500EFE:5EB1D0:5D74A40F" + } + }, + "uuid": "c3067d66-2bb0-4af7-b7d4-98032571c5d0", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/mappings/user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/mappings/user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json new file mode 100644 index 0000000000..412c3d6c9f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/gistFile/mappings/user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json @@ -0,0 +1,43 @@ +{ + "id": "9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4798", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD51:4FAD:500EFB:5EB1CD:5D74A40F" + } + }, + "uuid": "9226d6ed-a52d-4b08-9402-f1cfc2dbf0e1", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/__files/gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/__files/gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json new file mode 100644 index 0000000000..3ae7954793 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/__files/gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json @@ -0,0 +1,91 @@ +{ + "url": "https://api.github.com/gists/9faa55cd67b21a789bb44e34e5e41f72", + "forks_url": "https://api.github.com/gists/9faa55cd67b21a789bb44e34e5e41f72/forks", + "commits_url": "https://api.github.com/gists/9faa55cd67b21a789bb44e34e5e41f72/commits", + "id": "9faa55cd67b21a789bb44e34e5e41f72", + "node_id": "MDQ6R2lzdDlmYWE1NWNkNjdiMjFhNzg5YmI0NGUzNGU1ZTQxZjcy", + "git_pull_url": "https://gist.github.com/9faa55cd67b21a789bb44e34e5e41f72.git", + "git_push_url": "https://gist.github.com/9faa55cd67b21a789bb44e34e5e41f72.git", + "html_url": "https://gist.github.com/9faa55cd67b21a789bb44e34e5e41f72", + "files": { + "abc.txt": { + "filename": "abc.txt", + "type": "text/plain", + "language": "Text", + "raw_url": "https://gist.githubusercontent.com/bitwiseman/9faa55cd67b21a789bb44e34e5e41f72/raw/f2ba8f84ab5c1bce84a7b441cb1959cfc7093b7f/abc.txt", + "size": 3, + "truncated": false, + "content": "abc" + }, + "def.txt": { + "filename": "def.txt", + "type": "text/plain", + "language": "Text", + "raw_url": "https://gist.githubusercontent.com/bitwiseman/9faa55cd67b21a789bb44e34e5e41f72/raw/0c003832e7bfa9ca8b5c2035c9bd684a5f2623bc/def.txt", + "size": 3, + "truncated": false, + "content": "def" + } + }, + "public": false, + "created_at": "2019-09-08T06:47:42Z", + "updated_at": "2019-09-08T06:47:42Z", + "description": "Test Gist", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/9faa55cd67b21a789bb44e34e5e41f72/comments", + "owner": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "forks": [], + "history": [ + { + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "version": "b25886c9892025e090e71bdf1bb9b20927cb4a19", + "committed_at": "2019-09-08T06:47:42Z", + "change_status": { + "total": 2, + "additions": 2, + "deletions": 0 + }, + "url": "https://api.github.com/gists/9faa55cd67b21a789bb44e34e5e41f72/b25886c9892025e090e71bdf1bb9b20927cb4a19" + } + ], + "truncated": false +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/__files/user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/__files/user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/__files/user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json new file mode 100644 index 0000000000..9901a34875 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json @@ -0,0 +1,50 @@ +{ + "id": "2f93eec6-32ad-4c3d-a7bf-33a134d16dbe", + "name": "gists", + "request": { + "url": "/gists", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"public\":false,\"description\":\"Test Gist\",\"files\":{\"abc.txt\":{\"content\":\"abc\"},\"def.txt\":{\"content\":\"def\"}}}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "gists-2f93eec6-32ad-4c3d-a7bf-33a134d16dbe.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4800", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"32bd93e7c792880260a7f86efe7fa182\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/gists/9faa55cd67b21a789bb44e34e5e41f72", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD4E:40BC:96FAEF:B22CDC:5D74A40D" + } + }, + "uuid": "2f93eec6-32ad-4c3d-a7bf-33a134d16dbe", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/gists_9faa55cd67b21a789bb44e34e5e41f72-26c31487-5829-47c9-969a-2fc3b34fec9e.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/gists_9faa55cd67b21a789bb44e34e5e41f72-26c31487-5829-47c9-969a-2fc3b34fec9e.json new file mode 100644 index 0000000000..f1eab1338c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/gists_9faa55cd67b21a789bb44e34e5e41f72-26c31487-5829-47c9-969a-2fc3b34fec9e.json @@ -0,0 +1,36 @@ +{ + "id": "26c31487-5829-47c9-969a-2fc3b34fec9e", + "name": "gists_9faa55cd67b21a789bb44e34e5e41f72", + "request": { + "url": "/gists/9faa55cd67b21a789bb44e34e5e41f72", + "method": "DELETE" + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:43 GMT", + "Content-Type": "application/octet-stream", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4799", + "X-RateLimit-Reset": "1567926046", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding", + "X-GitHub-Request-Id": "FD4E:40BC:96FB51:B22D68:5D74A40F" + } + }, + "uuid": "26c31487-5829-47c9-969a-2fc3b34fec9e", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json new file mode 100644 index 0000000000..6bf2aefd64 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/lifecycleTest/mappings/user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json @@ -0,0 +1,43 @@ +{ + "id": "3380f859-169e-41b0-9a8a-aa66277dfb8b", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-3380f859-169e-41b0-9a8a-aa66277dfb8b.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:41 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4801", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD4E:40BC:96FAD6:B22CD5:5D74A40D" + } + }, + "uuid": "3380f859-169e-41b0-9a8a-aa66277dfb8b", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json new file mode 100644 index 0000000000..07482ea5a4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json @@ -0,0 +1,82 @@ +{ + "url": "https://api.github.com/gists/9903708", + "forks_url": "https://api.github.com/gists/9903708/forks", + "commits_url": "https://api.github.com/gists/9903708/commits", + "id": "9903708", + "node_id": "MDQ6R2lzdDk5MDM3MDg=", + "git_pull_url": "https://gist.github.com/9903708.git", + "git_push_url": "https://gist.github.com/9903708.git", + "html_url": "https://gist.github.com/9903708", + "files": { + "keybase.md": { + "filename": "keybase.md", + "type": "text/markdown", + "language": "Markdown", + "raw_url": "https://gist.githubusercontent.com/rtyler/9903708/raw/2b68396d836af8c5b6ba905f27c4baf94ceb0ed3/keybase.md", + "size": 2131, + "truncated": false, + "content": "### Keybase proof\n\nI hereby claim:\n\n * I am rtyler on github.\n * I am rtyler (https://keybase.io/rtyler) on keybase.\n * I have a public key whose fingerprint is 9062 865A 46E8 C749 2BF1 88D7 1426 C7DC 3F51 E16F\n\nTo claim this, I am signing this object:\n\n```json\n{\n \"body\": {\n \"key\": {\n \"fingerprint\": \"9062865a46e8c7492bf188d71426c7dc3f51e16f\",\n \"host\": \"keybase.io\",\n \"key_id\": \"1426C7DC3F51E16F\",\n \"uid\": \"a1925d5d7f45e5b1c8bfe8959f082400\",\n \"username\": \"rtyler\"\n },\n \"service\": {\n \"name\": \"github\",\n \"username\": \"rtyler\"\n },\n \"type\": \"web_service_binding\",\n \"version\": 1\n },\n \"ctime\": 1396304500,\n \"expire_in\": 157680000,\n \"prev\": \"ad8e98eb6fbc79cea025cd2c0ccd10a01ce06fd60db9279dd1cff6db35cd88e8\",\n \"seqno\": 4,\n \"tag\": \"signature\"\n}\n```\n\nwith the PGP key whose fingerprint is\n[9062 865A 46E8 C749 2BF1 88D7 1426 C7DC 3F51 E16F](https://keybase.io/rtyler)\n(captured above as `body.key.fingerprint`), yielding the PGP signature:\n\n```\n-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1\n\nowF1kbFLHEEUxtfzElQUIqRL5QjaHGFmd2d25hoFzfWSP+DYmXlzDtHdy+zemePQ\nWrCRlBG0CNjYqulCikAKm3RJII0GIvhXOCOmTDXM9/2+x/t4h3OTUWP++dK33ysb\n1+XE1Ze/Mnot7uoxkqUeofYYvYGHx9iiB67vbFGjNhKYxZzRPGXAVZaKWBrCuc5I\nGjOVaZUYSoAwg1pos6xCwo+ReQUvbek1/+la7dXAr2Xra0mHkleEdbw3eDByImKq\nqc5MSoFKorg0wAUVBvM4xTiAFbgi3wZPu3q0BQ7ttpDXhlZB2PjR69l6cyD/x9ej\nfhB2QHYfo11pC+3L+sQQXGXLArWJJ1VtQ5YkgiU4pRi3ELzrWwddGwiaMY5xUPsO\nhqGB5iA4SGakyoSCHMdU6VhhpTTBOSYKMDOaYS1FnAmtiTKGaZl4inPgKJR5W5So\nnfo1854fWdlekdcDB2h3v9OM5hvR0yeNcK1oZvrZvxs2p6IPjU9fO98HP1aHp2ef\nf10uvrgtJml0sqeXj8nFRvPmz9Xs0c+D5OP5wvt7\n=M8xI\n-----END PGP MESSAGE-----\n\n```\n\nAnd finally, I am proving ownership of the github account by posting this as a gist.\n\n### My publicly-auditable identity:\n\nhttps://keybase.io/rtyler\n\n### From the command line:\n\nConsider the [keybase command line program](https://keybase.io/__/command_line/keybase).\n\n```bash\n# look me up\nkeybase id rtyler\n\n# encrypt a message to me\nkeybase encrypt rtyler -m 'a secret message...'\n\n# ...and more...\n```\n" + } + }, + "public": true, + "created_at": "2014-03-31T22:22:50Z", + "updated_at": "2019-09-08T06:46:29Z", + "description": "", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/9903708/comments", + "owner": { + "login": "rtyler", + "id": 26594, + "node_id": "MDQ6VXNlcjI2NTk0", + "avatar_url": "https://avatars0.githubusercontent.com/u/26594?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rtyler", + "html_url": "https://github.com/rtyler", + "followers_url": "https://api.github.com/users/rtyler/followers", + "following_url": "https://api.github.com/users/rtyler/following{/other_user}", + "gists_url": "https://api.github.com/users/rtyler/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rtyler/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rtyler/subscriptions", + "organizations_url": "https://api.github.com/users/rtyler/orgs", + "repos_url": "https://api.github.com/users/rtyler/repos", + "events_url": "https://api.github.com/users/rtyler/events{/privacy}", + "received_events_url": "https://api.github.com/users/rtyler/received_events", + "type": "User", + "site_admin": false + }, + "forks": [], + "history": [ + { + "user": { + "login": "rtyler", + "id": 26594, + "node_id": "MDQ6VXNlcjI2NTk0", + "avatar_url": "https://avatars0.githubusercontent.com/u/26594?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rtyler", + "html_url": "https://github.com/rtyler", + "followers_url": "https://api.github.com/users/rtyler/followers", + "following_url": "https://api.github.com/users/rtyler/following{/other_user}", + "gists_url": "https://api.github.com/users/rtyler/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rtyler/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rtyler/subscriptions", + "organizations_url": "https://api.github.com/users/rtyler/orgs", + "repos_url": "https://api.github.com/users/rtyler/repos", + "events_url": "https://api.github.com/users/rtyler/events{/privacy}", + "received_events_url": "https://api.github.com/users/rtyler/received_events", + "type": "User", + "site_admin": false + }, + "version": "c83695bb99506f8f043867429a6987aeab7894ec", + "committed_at": "2014-03-31T22:22:50Z", + "change_status": { + "total": 76, + "additions": 76, + "deletions": 0 + }, + "url": "https://api.github.com/gists/9903708/c83695bb99506f8f043867429a6987aeab7894ec" + } + ], + "truncated": false +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json new file mode 100644 index 0000000000..b318cb50d5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json @@ -0,0 +1,47 @@ +{ + "url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a", + "forks_url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a/forks", + "commits_url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a/commits", + "id": "8edf855833a05ce8730d609fe8bd803a", + "node_id": "MDQ6R2lzdDhlZGY4NTU4MzNhMDVjZTg3MzBkNjA5ZmU4YmQ4MDNh", + "git_pull_url": "https://gist.github.com/8edf855833a05ce8730d609fe8bd803a.git", + "git_push_url": "https://gist.github.com/8edf855833a05ce8730d609fe8bd803a.git", + "html_url": "https://gist.github.com/8edf855833a05ce8730d609fe8bd803a", + "files": { + "keybase.md": { + "filename": "keybase.md", + "type": "text/markdown", + "language": "Markdown", + "raw_url": "https://gist.githubusercontent.com/bitwiseman/8edf855833a05ce8730d609fe8bd803a/raw/2b68396d836af8c5b6ba905f27c4baf94ceb0ed3/keybase.md", + "size": 2131 + } + }, + "public": true, + "created_at": "2019-09-08T06:47:48Z", + "updated_at": "2019-09-08T06:47:48Z", + "description": "", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a/comments", + "owner": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "truncated": false +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json new file mode 100644 index 0000000000..5e18e6c1fe --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json @@ -0,0 +1,40 @@ +[ + { + "url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a", + "forks_url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a/forks", + "commits_url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a/commits", + "id": "8edf855833a05ce8730d609fe8bd803a", + "node_id": "MDQ6R2lzdDhlZGY4NTU4MzNhMDVjZTg3MzBkNjA5ZmU4YmQ4MDNh", + "git_pull_url": "https://gist.github.com/8edf855833a05ce8730d609fe8bd803a.git", + "git_push_url": "https://gist.github.com/8edf855833a05ce8730d609fe8bd803a.git", + "html_url": "https://gist.github.com/8edf855833a05ce8730d609fe8bd803a", + "files": {}, + "public": true, + "created_at": "2019-09-08T06:47:48Z", + "updated_at": "2019-09-08T06:47:48Z", + "description": "", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a/comments", + "owner": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + } + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/user-07500425-69d3-4dd0-8519-628a92aa66c5.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/user-07500425-69d3-4dd0-8519-628a92aa66c5.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/__files/user-07500425-69d3-4dd0-8519-628a92aa66c5.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_8edf855833a05ce8730d609fe8bd803a-e0907c8c-2e55-4100-a541-0deadb851827.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_8edf855833a05ce8730d609fe8bd803a-e0907c8c-2e55-4100-a541-0deadb851827.json new file mode 100644 index 0000000000..feb7bf2907 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_8edf855833a05ce8730d609fe8bd803a-e0907c8c-2e55-4100-a541-0deadb851827.json @@ -0,0 +1,36 @@ +{ + "id": "e0907c8c-2e55-4100-a541-0deadb851827", + "name": "gists_8edf855833a05ce8730d609fe8bd803a", + "request": { + "url": "/gists/8edf855833a05ce8730d609fe8bd803a", + "method": "DELETE" + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:48 GMT", + "Content-Type": "application/octet-stream", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4788", + "X-RateLimit-Reset": "1567926046", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding", + "X-GitHub-Request-Id": "FD54:0A32:A0C3B2:BD2C36:5D74A414" + } + }, + "uuid": "e0907c8c-2e55-4100-a541-0deadb851827", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json new file mode 100644 index 0000000000..6d138fd1a4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json @@ -0,0 +1,43 @@ +{ + "id": "ab2c9d06-edf6-4875-b402-7c99a529b19a", + "name": "gists_9903708", + "request": { + "url": "/gists/9903708", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "gists_9903708-ab2c9d06-edf6-4875-b402-7c99a529b19a.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:44 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4795", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"b6d45b73ecf4a7c47e2af95f762390c6\"", + "Last-Modified": "Sun, 08 Sep 2019 06:46:29 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD54:0A32:A0C2A6:BD2AFD:5D74A410" + } + }, + "uuid": "ab2c9d06-edf6-4875-b402-7c99a529b19a", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json new file mode 100644 index 0000000000..04beba9dc0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json @@ -0,0 +1,50 @@ +{ + "id": "42d6e404-71e3-42cc-b415-f42dfab9d45e", + "name": "gists_9903708_forks", + "request": { + "url": "/gists/9903708/forks", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "gists_9903708_forks-42d6e404-71e3-42cc-b415-f42dfab9d45e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4790", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"a2606a3b1480768d9a5d3823fa388bfb\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/gists/8edf855833a05ce8730d609fe8bd803a", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD54:0A32:A0C2E2:BD2B41:5D74A411" + } + }, + "uuid": "42d6e404-71e3-42cc-b415-f42dfab9d45e", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json new file mode 100644 index 0000000000..b1ce250523 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json @@ -0,0 +1,43 @@ +{ + "id": "992bf599-2e87-4fb0-b610-7c2e1fc00398", + "name": "gists_9903708_forks", + "request": { + "url": "/gists/9903708/forks", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "gists_9903708_forks-992bf599-2e87-4fb0-b610-7c2e1fc00398.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4789", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"cb5d2523020ddf0a3951340b70a76064\"", + "Last-Modified": "Sun, 08 Sep 2019 06:47:48 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD54:0A32:A0C3A6:BD2C27:5D74A414" + } + }, + "uuid": "992bf599-2e87-4fb0-b610-7c2e1fc00398", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-584dc0f7-5270-45a9-b7dd-879877944383.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-584dc0f7-5270-45a9-b7dd-879877944383.json new file mode 100644 index 0000000000..490aa567a6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-584dc0f7-5270-45a9-b7dd-879877944383.json @@ -0,0 +1,38 @@ +{ + "id": "584dc0f7-5270-45a9-b7dd-879877944383", + "name": "gists_9903708_star", + "request": { + "url": "/gists/9903708/star", + "method": "GET" + }, + "response": { + "status": 404, + "body": "{}", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:45 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "404 Not Found", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4791", + "X-RateLimit-Reset": "1567926046", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD54:0A32:A0C2D8:BD2B36:5D74A411" + } + }, + "uuid": "584dc0f7-5270-45a9-b7dd-879877944383", + "persistent": true, + "scenarioName": "scenario-1-gists-9903708-star", + "requiredScenarioState": "scenario-1-gists-9903708-star-2", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-68020195-348d-4d5c-a706-1f90d136af44.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-68020195-348d-4d5c-a706-1f90d136af44.json new file mode 100644 index 0000000000..c37edfb92b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-68020195-348d-4d5c-a706-1f90d136af44.json @@ -0,0 +1,45 @@ +{ + "id": "68020195-348d-4d5c-a706-1f90d136af44", + "name": "gists_9903708_star", + "request": { + "url": "/gists/9903708/star", + "method": "GET" + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:44 GMT", + "Content-Type": "application/octet-stream", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4793", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"3524029e41138cea2da164d5050b624c\"", + "Last-Modified": "Sun, 08 Sep 2019 06:47:44 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD54:0A32:A0C2BD:BD2B16:5D74A410" + } + }, + "uuid": "68020195-348d-4d5c-a706-1f90d136af44", + "persistent": true, + "scenarioName": "scenario-1-gists-9903708-star", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-gists-9903708-star-2", + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-c7d88cee-1a83-4fa3-8c6c-3fb51a13e413.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-c7d88cee-1a83-4fa3-8c6c-3fb51a13e413.json new file mode 100644 index 0000000000..296072bce6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-c7d88cee-1a83-4fa3-8c6c-3fb51a13e413.json @@ -0,0 +1,36 @@ +{ + "id": "c7d88cee-1a83-4fa3-8c6c-3fb51a13e413", + "name": "gists_9903708_star", + "request": { + "url": "/gists/9903708/star", + "method": "DELETE" + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:45 GMT", + "Content-Type": "application/octet-stream", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4792", + "X-RateLimit-Reset": "1567926046", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding", + "X-GitHub-Request-Id": "FD54:0A32:A0C2C7:BD2B23:5D74A410" + } + }, + "uuid": "c7d88cee-1a83-4fa3-8c6c-3fb51a13e413", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-dc6fd4a1-36d3-478c-b7b0-3d7ed9e5fa82.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-dc6fd4a1-36d3-478c-b7b0-3d7ed9e5fa82.json new file mode 100644 index 0000000000..3402679a15 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/gists_9903708_star-dc6fd4a1-36d3-478c-b7b0-3d7ed9e5fa82.json @@ -0,0 +1,43 @@ +{ + "id": "dc6fd4a1-36d3-478c-b7b0-3d7ed9e5fa82", + "name": "gists_9903708_star", + "request": { + "url": "/gists/9903708/star", + "method": "PUT", + "bodyPatterns": [ + { + "equalToJson": "{}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:44 GMT", + "Content-Type": "application/octet-stream", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4794", + "X-RateLimit-Reset": "1567926046", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding", + "X-GitHub-Request-Id": "FD54:0A32:A0C2B2:BD2B0B:5D74A410" + } + }, + "uuid": "dc6fd4a1-36d3-478c-b7b0-3d7ed9e5fa82", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/user-07500425-69d3-4dd0-8519-628a92aa66c5.json b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/user-07500425-69d3-4dd0-8519-628a92aa66c5.json new file mode 100644 index 0000000000..38a30e3d61 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GistTest/wiremock/starTest/mappings/user-07500425-69d3-4dd0-8519-628a92aa66c5.json @@ -0,0 +1,43 @@ +{ + "id": "07500425-69d3-4dd0-8519-628a92aa66c5", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-07500425-69d3-4dd0-8519-628a92aa66c5.json", + "headers": { + "Date": "Sun, 08 Sep 2019 06:47:44 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4796", + "X-RateLimit-Reset": "1567926046", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FD54:0A32:A0C29C:BD2AF4:5D74A410" + } + }, + "uuid": "07500425-69d3-4dd0-8519-628a92aa66c5", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json new file mode 100644 index 0000000000..9fa0601f3b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json new file mode 100644 index 0000000000..354145c13a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json new file mode 100644 index 0000000000..85cb4b997a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json new file mode 100644 index 0000000000..85cb4b997a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json new file mode 100644 index 0000000000..12a72db6ff --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272", + "id": 315252370, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzcw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/272", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/272.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/272.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272", + "number": 272, + "state": "open", + "locked": false, + "title": "closePullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:08Z", + "updated_at": "2019-09-08T07:25:08Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/272" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json new file mode 100644 index 0000000000..b7a12dd822 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272", + "id": 315252370, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzcw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/272", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/272.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/272.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272", + "number": 272, + "state": "open", + "locked": false, + "title": "closePullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:08Z", + "updated_at": "2019-09-08T07:25:08Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/272" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json new file mode 100644 index 0000000000..af8c695b09 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272", + "id": 315252370, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzcw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/272", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/272.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/272.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272", + "number": 272, + "state": "closed", + "locked": false, + "title": "closePullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:08Z", + "updated_at": "2019-09-08T07:25:09Z", + "closed_at": "2019-09-08T07:25:09Z", + "merged_at": null, + "merge_commit_sha": "2412eecb9529e754f13c02e853bbf0e3c896a4d4", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/272" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json new file mode 100644 index 0000000000..a4f43f44f7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272", + "id": 315252370, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzcw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/272", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/272.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/272.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272", + "number": 272, + "state": "closed", + "locked": false, + "title": "closePullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:08Z", + "updated_at": "2019-09-08T07:25:09Z", + "closed_at": "2019-09-08T07:25:09Z", + "merged_at": null, + "merge_commit_sha": "2412eecb9529e754f13c02e853bbf0e3c896a4d4", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/272" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/272/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": false, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/user-b08f022a-37f2-4191-bbef-d348f1330beb.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/user-b08f022a-37f2-4191-bbef-d348f1330beb.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/__files/user-b08f022a-37f2-4191-bbef-d348f1330beb.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json new file mode 100644 index 0000000000..be0716bab6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json @@ -0,0 +1,43 @@ +{ + "id": "24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4830", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30D30:F6759F:5D74ACD3" + } + }, + "uuid": "24dc8a1a-e0fd-48e7-a48f-8fc0fc9bc01f", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json new file mode 100644 index 0000000000..1600046059 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json @@ -0,0 +1,46 @@ +{ + "id": "0f9ebc51-ad67-49b7-b75c-ee2421880f0a", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-0f9ebc51-ad67-49b7-b75c-ee2421880f0a.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4829", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"2ab1210472fa6103689c7235a9f30ebf\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30D76:F675D2:5D74ACD3" + } + }, + "uuid": "0f9ebc51-ad67-49b7-b75c-ee2421880f0a", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json new file mode 100644 index 0000000000..a218f7efd4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json @@ -0,0 +1,46 @@ +{ + "id": "1db0407d-2e07-4407-810e-486b374e8f3e", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-1db0407d-2e07-4407-810e-486b374e8f3e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:09 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4827", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"1ed427629429ded9373deae90c0f49b2\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30DDF:F67648:5D74ACD4" + } + }, + "uuid": "1db0407d-2e07-4407-810e-486b374e8f3e", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json new file mode 100644 index 0000000000..27b1e2e6c8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json @@ -0,0 +1,45 @@ +{ + "id": "b2a37888-a485-466a-90a1-b56337178b1c", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-b2a37888-a485-466a-90a1-b56337178b1c.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4822", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e4ca02a4a8d0302ddaf9e4331a08a1f2\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30EA3:F67733:5D74ACD6" + } + }, + "uuid": "b2a37888-a485-466a-90a1-b56337178b1c", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json new file mode 100644 index 0000000000..0e96bedf52 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json @@ -0,0 +1,46 @@ +{ + "id": "d6b189f8-494a-48df-bb5b-0756c8396db0", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-d6b189f8-494a-48df-bb5b-0756c8396db0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4824", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e4ca02a4a8d0302ddaf9e4331a08a1f2\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30E56:F676DA:5D74ACD6" + } + }, + "uuid": "d6b189f8-494a-48df-bb5b-0756c8396db0", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json new file mode 100644 index 0000000000..bfe63eff8a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json @@ -0,0 +1,50 @@ +{ + "id": "607242b1-1d80-46f6-90f0-87c455668f63", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"closePullRequest\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-607242b1-1d80-46f6-90f0-87c455668f63.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4828", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"0b7c2ab68302ad8433736df658b183bf\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/272", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30D90:F67604:5D74ACD4" + } + }, + "uuid": "607242b1-1d80-46f6-90f0-87c455668f63", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls-c7f9dd31-fd95-4842-8b3b-73f78ffbb3fd.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls-c7f9dd31-fd95-4842-8b3b-73f78ffbb3fd.json new file mode 100644 index 0000000000..86a711476f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls-c7f9dd31-fd95-4842-8b3b-73f78ffbb3fd.json @@ -0,0 +1,42 @@ +{ + "id": "c7f9dd31-fd95-4842-8b3b-73f78ffbb3fd", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4821", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30EBD:F67761:5D74ACD6" + } + }, + "uuid": "c7f9dd31-fd95-4842-8b3b-73f78ffbb3fd", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json new file mode 100644 index 0000000000..211676ab27 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json @@ -0,0 +1,46 @@ +{ + "id": "480ea0b0-4d44-4e09-a652-6551a3613019", + "name": "repos_github-api-test-org_github-api_pulls_272", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/272", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_272-480ea0b0-4d44-4e09-a652-6551a3613019.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:09 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4826", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"27976b693985b9a4d3c571d1e97a1ae1\"", + "Last-Modified": "Sun, 08 Sep 2019 07:25:08 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30DF9:F6767A:5D74ACD5" + } + }, + "uuid": "480ea0b0-4d44-4e09-a652-6551a3613019", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls-272", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-272-2", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json new file mode 100644 index 0000000000..b32604e920 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json @@ -0,0 +1,49 @@ +{ + "id": "601780dc-d673-40e8-bc22-76005fce61c3", + "name": "repos_github-api-test-org_github-api_pulls_272", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/272", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_272-601780dc-d673-40e8-bc22-76005fce61c3.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4825", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"71b64aa1bf63ae8c9284b04fd53751e4\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30E17:F676A0:5D74ACD5" + } + }, + "uuid": "601780dc-d673-40e8-bc22-76005fce61c3", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json new file mode 100644 index 0000000000..46e529b4fd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json @@ -0,0 +1,45 @@ +{ + "id": "64929638-544b-4052-8139-da249d59952e", + "name": "repos_github-api-test-org_github-api_pulls_272", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/272", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_272-64929638-544b-4052-8139-da249d59952e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4823", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"04e2616671d60df70266d5d9d385b3b3\"", + "Last-Modified": "Sun, 08 Sep 2019 07:25:09 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30E6F:F6770A:5D74ACD6" + } + }, + "uuid": "64929638-544b-4052-8139-da249d59952e", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls-272", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-272-2", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/user-b08f022a-37f2-4191-bbef-d348f1330beb.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/user-b08f022a-37f2-4191-bbef-d348f1330beb.json new file mode 100644 index 0000000000..d5e5e3a70c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/closePullRequest/mappings/user-b08f022a-37f2-4191-bbef-d348f1330beb.json @@ -0,0 +1,43 @@ +{ + "id": "b08f022a-37f2-4191-bbef-d348f1330beb", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-b08f022a-37f2-4191-bbef-d348f1330beb.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4831", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FFA3:15CE:D30D1E:F6758F:5D74ACD3" + } + }, + "uuid": "b08f022a-37f2-4191-bbef-d348f1330beb", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json new file mode 100644 index 0000000000..9208f39fce --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T07:25:55Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json new file mode 100644 index 0000000000..5df344ae12 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T07:25:55Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json new file mode 100644 index 0000000000..04d2762634 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273", + "id": 315316377, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MzE2Mzc3", + "html_url": "https://github.com/github-api-test-org/github-api/pull/273", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/273.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/273.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/273", + "number": 273, + "state": "open", + "locked": false, + "title": "createPullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T23:20:37Z", + "updated_at": "2019-09-08T23:20:37Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/273/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T23:20:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T23:20:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/273" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/273" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/273/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json new file mode 100644 index 0000000000..a3038d231f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json @@ -0,0 +1,339 @@ +{ + "url": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/273", + "id": 315316377, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MzE2Mzc3", + "html_url": "https://github.com/github-api-test-org/github-api/pull/273", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/273.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/273.patch", + "issue_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues/273", + "number": 273, + "state": "open", + "locked": false, + "title": "createPullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "http://localhost:51456/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "http://localhost:51456/users/bitwiseman/followers", + "following_url": "http://localhost:51456/users/bitwiseman/following{/other_user}", + "gists_url": "http://localhost:51456/users/bitwiseman/gists{/gist_id}", + "starred_url": "http://localhost:51456/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "http://localhost:51456/users/bitwiseman/subscriptions", + "organizations_url": "http://localhost:51456/users/bitwiseman/orgs", + "repos_url": "http://localhost:51456/users/bitwiseman/repos", + "events_url": "http://localhost:51456/users/bitwiseman/events{/privacy}", + "received_events_url": "http://localhost:51456/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T23:20:37Z", + "updated_at": "2019-09-08T23:20:37Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/273/commits", + "review_comments_url": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/273/comments", + "review_comment_url": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues/273/comments", + "statuses_url": "http://localhost:51456/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "http://localhost:51456/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "http://localhost:51456/users/github-api-test-org/followers", + "following_url": "http://localhost:51456/users/github-api-test-org/following{/other_user}", + "gists_url": "http://localhost:51456/users/github-api-test-org/gists{/gist_id}", + "starred_url": "http://localhost:51456/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "http://localhost:51456/users/github-api-test-org/subscriptions", + "organizations_url": "http://localhost:51456/users/github-api-test-org/orgs", + "repos_url": "http://localhost:51456/users/github-api-test-org/repos", + "events_url": "http://localhost:51456/users/github-api-test-org/events{/privacy}", + "received_events_url": "http://localhost:51456/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "http://localhost:51456/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "http://localhost:51456/users/github-api-test-org/followers", + "following_url": "http://localhost:51456/users/github-api-test-org/following{/other_user}", + "gists_url": "http://localhost:51456/users/github-api-test-org/gists{/gist_id}", + "starred_url": "http://localhost:51456/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "http://localhost:51456/users/github-api-test-org/subscriptions", + "organizations_url": "http://localhost:51456/users/github-api-test-org/orgs", + "repos_url": "http://localhost:51456/users/github-api-test-org/repos", + "events_url": "http://localhost:51456/users/github-api-test-org/events{/privacy}", + "received_events_url": "http://localhost:51456/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "http://localhost:51456/repos/github-api-test-org/github-api", + "forks_url": "http://localhost:51456/repos/github-api-test-org/github-api/forks", + "keys_url": "http://localhost:51456/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "http://localhost:51456/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "http://localhost:51456/repos/github-api-test-org/github-api/teams", + "hooks_url": "http://localhost:51456/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "http://localhost:51456/repos/github-api-test-org/github-api/events", + "assignees_url": "http://localhost:51456/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "http://localhost:51456/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "http://localhost:51456/repos/github-api-test-org/github-api/tags", + "blobs_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "http://localhost:51456/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "http://localhost:51456/repos/github-api-test-org/github-api/languages", + "stargazers_url": "http://localhost:51456/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "http://localhost:51456/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "http://localhost:51456/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "http://localhost:51456/repos/github-api-test-org/github-api/subscription", + "commits_url": "http://localhost:51456/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "http://localhost:51456/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "http://localhost:51456/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "http://localhost:51456/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "http://localhost:51456/repos/github-api-test-org/github-api/merges", + "archive_url": "http://localhost:51456/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "http://localhost:51456/repos/github-api-test-org/github-api/downloads", + "issues_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "http://localhost:51456/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "http://localhost:51456/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "http://localhost:51456/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "http://localhost:51456/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "http://localhost:51456/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "http://localhost:51456/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T07:25:55Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "http://localhost:51456/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "http://localhost:51456/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "http://localhost:51456/users/github-api-test-org/followers", + "following_url": "http://localhost:51456/users/github-api-test-org/following{/other_user}", + "gists_url": "http://localhost:51456/users/github-api-test-org/gists{/gist_id}", + "starred_url": "http://localhost:51456/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "http://localhost:51456/users/github-api-test-org/subscriptions", + "organizations_url": "http://localhost:51456/users/github-api-test-org/orgs", + "repos_url": "http://localhost:51456/users/github-api-test-org/repos", + "events_url": "http://localhost:51456/users/github-api-test-org/events{/privacy}", + "received_events_url": "http://localhost:51456/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "http://localhost:51456/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "http://localhost:51456/users/github-api-test-org/followers", + "following_url": "http://localhost:51456/users/github-api-test-org/following{/other_user}", + "gists_url": "http://localhost:51456/users/github-api-test-org/gists{/gist_id}", + "starred_url": "http://localhost:51456/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "http://localhost:51456/users/github-api-test-org/subscriptions", + "organizations_url": "http://localhost:51456/users/github-api-test-org/orgs", + "repos_url": "http://localhost:51456/users/github-api-test-org/repos", + "events_url": "http://localhost:51456/users/github-api-test-org/events{/privacy}", + "received_events_url": "http://localhost:51456/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "http://localhost:51456/repos/github-api-test-org/github-api", + "forks_url": "http://localhost:51456/repos/github-api-test-org/github-api/forks", + "keys_url": "http://localhost:51456/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "http://localhost:51456/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "http://localhost:51456/repos/github-api-test-org/github-api/teams", + "hooks_url": "http://localhost:51456/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "http://localhost:51456/repos/github-api-test-org/github-api/events", + "assignees_url": "http://localhost:51456/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "http://localhost:51456/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "http://localhost:51456/repos/github-api-test-org/github-api/tags", + "blobs_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "http://localhost:51456/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "http://localhost:51456/repos/github-api-test-org/github-api/languages", + "stargazers_url": "http://localhost:51456/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "http://localhost:51456/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "http://localhost:51456/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "http://localhost:51456/repos/github-api-test-org/github-api/subscription", + "commits_url": "http://localhost:51456/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "http://localhost:51456/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "http://localhost:51456/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "http://localhost:51456/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "http://localhost:51456/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "http://localhost:51456/repos/github-api-test-org/github-api/merges", + "archive_url": "http://localhost:51456/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "http://localhost:51456/repos/github-api-test-org/github-api/downloads", + "issues_url": "http://localhost:51456/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "http://localhost:51456/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "http://localhost:51456/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "http://localhost:51456/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "http://localhost:51456/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "http://localhost:51456/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "http://localhost:51456/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T07:25:55Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "http://localhost:51456/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/273" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/273" + }, + "issue": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/issues/273" + }, + "comments": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/issues/273/comments" + }, + "review_comments": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/273/comments" + }, + "review_comment": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/pulls/273/commits" + }, + "statuses": { + "href": "http://localhost:51456/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json new file mode 100644 index 0000000000..917efa8eee --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273", + "id": 315316377, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MzE2Mzc3", + "html_url": "https://github.com/github-api-test-org/github-api/pull/273", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/273.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/273.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/273", + "number": 273, + "state": "closed", + "locked": false, + "title": "createPullRequest", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T23:20:37Z", + "updated_at": "2019-09-08T23:20:38Z", + "closed_at": "2019-09-08T23:20:38Z", + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/273/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T23:20:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:25:40Z", + "pushed_at": "2019-09-08T23:20:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/273" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/273" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/273/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/273/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/user-17990d92-81a4-43e2-b41b-bf3f95f79276.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/user-17990d92-81a4-43e2-b41b-bf3f95f79276.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/__files/user-17990d92-81a4-43e2-b41b-bf3f95f79276.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json new file mode 100644 index 0000000000..5096039eca --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json @@ -0,0 +1,40 @@ +{ + "id" : "b2d80ea5-16e2-42ed-9de1-71ed44de990a", + "name" : "orgs_github-api-test-org", + "request" : { + "url" : "/orgs/github-api-test-org", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "orgs_github-api-test-org-b2d80ea5-16e2-42ed-9de1-71ed44de990a.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:37 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4993", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified" : "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D72061:FD3203:5D758CC4" + } + }, + "uuid" : "b2d80ea5-16e2-42ed-9de1-71ed44de990a", + "persistent" : true, + "insertionIndex" : 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json new file mode 100644 index 0000000000..0d75328b0d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json @@ -0,0 +1,42 @@ +{ + "id" : "31587743-aa9c-4bdd-8e99-6d2603914f13", + "name" : "repos_github-api-test-org_github-api", + "request" : { + "url" : "/repos/github-api-test-org/github-api", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_github-api-test-org_github-api-31587743-aa9c-4bdd-8e99-6d2603914f13.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:38 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4990", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"38a6130bf6ecb7d4e7548d5db29a69ab\"", + "Last-Modified" : "Sun, 08 Sep 2019 07:25:40 GMT", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "repo", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D720B0:FD3276:5D758CC6" + } + }, + "uuid" : "31587743-aa9c-4bdd-8e99-6d2603914f13", + "persistent" : true, + "scenarioName" : "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState" : "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex" : 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json new file mode 100644 index 0000000000..7af417d06f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json @@ -0,0 +1,43 @@ +{ + "id" : "e04f90b8-9e4c-42f6-867c-1d729dcdf83f", + "name" : "repos_github-api-test-org_github-api", + "request" : { + "url" : "/repos/github-api-test-org/github-api", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_github-api-test-org_github-api-e04f90b8-9e4c-42f6-867c-1d729dcdf83f.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:37 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4992", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"100f22563cf39ef74c77122e808791ec\"", + "Last-Modified" : "Sun, 08 Sep 2019 07:25:40 GMT", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "repo", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D72069:FD321E:5D758CC5" + } + }, + "uuid" : "e04f90b8-9e4c-42f6-867c-1d729dcdf83f", + "persistent" : true, + "scenarioName" : "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex" : 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json new file mode 100644 index 0000000000..adabcd3bae --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json @@ -0,0 +1,39 @@ +{ + "id" : "21bacc38-2501-4be1-a5ed-63d59668aecf", + "name" : "repos_github-api-test-org_github-api_pulls", + "request" : { + "url" : "/repos/github-api-test-org/github-api/pulls?state=open", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_github-api-test-org_github-api_pulls-21bacc38-2501-4be1-a5ed-63d59668aecf.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:38 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4989", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"c99ec4a6900516f992fd7ef1ed6bdc3d\"", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D720C0:FD328A:5D758CC6" + } + }, + "uuid" : "21bacc38-2501-4be1-a5ed-63d59668aecf", + "persistent" : true, + "insertionIndex" : 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json new file mode 100644 index 0000000000..70f38f79c8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json @@ -0,0 +1,45 @@ +{ + "id" : "e393556d-0f08-48c2-9ec1-ecebeced216a", + "name" : "repos_github-api-test-org_github-api_pulls", + "request" : { + "url" : "/repos/github-api-test-org/github-api/pulls", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"createPullRequest\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "bodyFileName" : "repos_github-api-test-org_github-api_pulls-e393556d-0f08-48c2-9ec1-ecebeced216a.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:38 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "201 Created", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4991", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "\"88d30690a6750391197735fa610d29c7\"", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "Location" : "https://api.github.com/repos/github-api-test-org/github-api/pulls/273", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D72080:FD3235:5D758CC5" + } + }, + "uuid" : "e393556d-0f08-48c2-9ec1-ecebeced216a", + "persistent" : true, + "insertionIndex" : 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json new file mode 100644 index 0000000000..fcf85696b8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json @@ -0,0 +1,44 @@ +{ + "id" : "66712670-b79b-48e8-8593-01f7564ff169", + "name" : "repos_github-api-test-org_github-api_pulls_273", + "request" : { + "url" : "/repos/github-api-test-org/github-api/pulls/273", + "method" : "PATCH", + "bodyPatterns" : [ { + "equalToJson" : "{\"state\":\"closed\"}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "bodyFileName" : "repos_github-api-test-org_github-api_pulls_273-66712670-b79b-48e8-8593-01f7564ff169.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:38 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4988", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"2305a6d26f2503df8f8e389e3f5e8132\"", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D720D3:FD329E:5D758CC6" + } + }, + "uuid" : "66712670-b79b-48e8-8593-01f7564ff169", + "persistent" : true, + "insertionIndex" : 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/user-17990d92-81a4-43e2-b41b-bf3f95f79276.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/user-17990d92-81a4-43e2-b41b-bf3f95f79276.json new file mode 100644 index 0000000000..1dba6a1f2c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequest/mappings/user-17990d92-81a4-43e2-b41b-bf3f95f79276.json @@ -0,0 +1,40 @@ +{ + "id" : "17990d92-81a4-43e2-b41b-bf3f95f79276", + "name" : "user", + "request" : { + "url" : "/user", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "user-17990d92-81a4-43e2-b41b-bf3f95f79276.json", + "headers" : { + "Date" : "Sun, 08 Sep 2019 23:20:36 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4994", + "X-RateLimit-Reset" : "1567988436", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified" : "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes" : "gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "C902:4FAE:D7204A:FD31FB:5D758CC4" + } + }, + "uuid" : "17990d92-81a4-43e2-b41b-bf3f95f79276", + "persistent" : true, + "insertionIndex" : 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json new file mode 100644 index 0000000000..f3d6053392 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json new file mode 100644 index 0000000000..a14766ee3e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json new file mode 100644 index 0000000000..a4318d1f47 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json @@ -0,0 +1,31 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments/529177612", + "html_url": "https://github.com/github-api-test-org/github-api/pull/270#issuecomment-529177612", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270", + "id": 529177612, + "node_id": "MDEyOklzc3VlQ29tbWVudDUyOTE3NzYxMg==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2019-09-08T07:25:01Z", + "updated_at": "2019-09-08T07:25:01Z", + "author_association": "MEMBER", + "body": "Some comment" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json new file mode 100644 index 0000000000..af405cd062 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270", + "id": 315252358, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzU4", + "html_url": "https://github.com/github-api-test-org/github-api/pull/270", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/270.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/270.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270", + "number": 270, + "state": "open", + "locked": false, + "title": "createPullRequestComment", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:00Z", + "updated_at": "2019-09-08T07:25:01Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "cfe2edc76bbeefe5624061e17537052bddba3138", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/270" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/270" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/270/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json new file mode 100644 index 0000000000..31eb061501 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270", + "id": 315252358, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzU4", + "html_url": "https://github.com/github-api-test-org/github-api/pull/270", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/270.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/270.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270", + "number": 270, + "state": "open", + "locked": false, + "title": "createPullRequestComment", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:00Z", + "updated_at": "2019-09-08T07:25:00Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/270" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/270" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/270/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json new file mode 100644 index 0000000000..6c37cec41d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270", + "id": 315252358, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzU4", + "html_url": "https://github.com/github-api-test-org/github-api/pull/270", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/270.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/270.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270", + "number": 270, + "state": "closed", + "locked": false, + "title": "createPullRequestComment", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:00Z", + "updated_at": "2019-09-08T07:25:02Z", + "closed_at": "2019-09-08T07:25:02Z", + "merged_at": null, + "merge_commit_sha": "cfe2edc76bbeefe5624061e17537052bddba3138", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/270/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/270" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/270" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/270/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 1, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/__files/user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json new file mode 100644 index 0000000000..d67a906adb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json @@ -0,0 +1,43 @@ +{ + "id": "ad4f3477-141d-413d-aae6-d8d877f4359c", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-ad4f3477-141d-413d-aae6-d8d877f4359c.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4848", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D30877:F67045:5D74ACCB" + } + }, + "uuid": "ad4f3477-141d-413d-aae6-d8d877f4359c", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json new file mode 100644 index 0000000000..c72ce34cc8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json @@ -0,0 +1,45 @@ +{ + "id": "6e0179a4-9d47-4435-897a-ca80019c4ee1", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-6e0179a4-9d47-4435-897a-ca80019c4ee1.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:02 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4844", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"72809813df8fb60cd108f20632d0c629\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D309B7:F67195:5D74ACCD" + } + }, + "uuid": "6e0179a4-9d47-4435-897a-ca80019c4ee1", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json new file mode 100644 index 0000000000..3e4291e36a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json @@ -0,0 +1,46 @@ +{ + "id": "de7260bc-cad0-4eeb-ab76-129228a40fa4", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-de7260bc-cad0-4eeb-ab76-129228a40fa4.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:00 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4847", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"c7444e60baaecbb2c4b3bfb5ec0122de\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D30882:F67052:5D74ACCB" + } + }, + "uuid": "de7260bc-cad0-4eeb-ab76-129228a40fa4", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json new file mode 100644 index 0000000000..411d6a1343 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json @@ -0,0 +1,50 @@ +{ + "id": "2cd4dd92-58d7-4423-bbe8-babe22bd36ac", + "name": "repos_github-api-test-org_github-api_issues_270_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/issues/270/comments", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"Some comment\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_issues_270_comments-2cd4dd92-58d7-4423-bbe8-babe22bd36ac.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:01 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4845", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ef99935785f5188662f592f8999d1b8a\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments/529177612", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D30902:F670E9:5D74ACCC" + } + }, + "uuid": "2cd4dd92-58d7-4423-bbe8-babe22bd36ac", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json new file mode 100644 index 0000000000..98cc98ac24 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json @@ -0,0 +1,42 @@ +{ + "id": "420dc28a-cfc8-4fbc-8cef-7123c0387966", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-420dc28a-cfc8-4fbc-8cef-7123c0387966.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:02 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4843", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"02871f6e732cc23dc28a7c5b94f35624\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D309FE:F6720B:5D74ACCE" + } + }, + "uuid": "420dc28a-cfc8-4fbc-8cef-7123c0387966", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json new file mode 100644 index 0000000000..1f273112d8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json @@ -0,0 +1,50 @@ +{ + "id": "4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"createPullRequestComment\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:00 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4846", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"cb9585955cc58789f91fe57ed42a9e6a\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/270", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D30895:F67066:5D74ACCC" + } + }, + "uuid": "4e9dadbb-e2ac-410b-9a7e-8731ed5c86cf", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json new file mode 100644 index 0000000000..98fb721579 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json @@ -0,0 +1,49 @@ +{ + "id": "1a6fbb20-8969-454a-94be-1e24388e7ed4", + "name": "repos_github-api-test-org_github-api_pulls_270", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/270", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_270-1a6fbb20-8969-454a-94be-1e24388e7ed4.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:02 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4842", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"2f5b48a63cc3e7bc5f36d46808e9d52d\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D30A26:F67237:5D74ACCE" + } + }, + "uuid": "1a6fbb20-8969-454a-94be-1e24388e7ed4", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json new file mode 100644 index 0000000000..7ccf1279ff --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/createPullRequestComment/mappings/user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json @@ -0,0 +1,43 @@ +{ + "id": "c4d4d68f-a141-4fad-a2c9-539e3a21fe94", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-c4d4d68f-a141-4fad-a2c9-539e3a21fe94.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4849", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9A:15CE:D3086F:F6703D:5D74ACCB" + } + }, + "uuid": "c4d4d68f-a141-4fad-a2c9-539e3a21fe94", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json new file mode 100644 index 0000000000..2150dec957 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json new file mode 100644 index 0000000000..2150dec957 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json new file mode 100644 index 0000000000..14e2b3ba59 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:28Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json new file mode 100644 index 0000000000..1608a2d7f6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:28Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json new file mode 100644 index 0000000000..80ffe11d8c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263", + "id": 315252322, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzIy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/263", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/263.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/263.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263", + "number": 263, + "state": "open", + "locked": false, + "title": "getUser", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:30Z", + "updated_at": "2019-09-08T07:24:30Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:28Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:28Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/263" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json new file mode 100644 index 0000000000..c7215685a5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263", + "id": 315252322, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzIy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/263", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/263.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/263.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263", + "number": 263, + "state": "open", + "locked": false, + "title": "getUser", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:30Z", + "updated_at": "2019-09-08T07:24:30Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "ecddc31a370337bf1c6d94263669da1504484d4e", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/263" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json new file mode 100644 index 0000000000..c7215685a5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263", + "id": 315252322, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzIy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/263", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/263.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/263.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263", + "number": 263, + "state": "open", + "locked": false, + "title": "getUser", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:30Z", + "updated_at": "2019-09-08T07:24:30Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "ecddc31a370337bf1c6d94263669da1504484d4e", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/263" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json new file mode 100644 index 0000000000..b3a6dd345a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263", + "id": 315252322, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzIy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/263", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/263.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/263.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263", + "number": 263, + "state": "open", + "locked": false, + "title": "getUser", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:30Z", + "updated_at": "2019-09-08T07:24:30Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/263" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json new file mode 100644 index 0000000000..140235b166 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263", + "id": 315252322, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzIy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/263", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/263.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/263.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263", + "number": 263, + "state": "closed", + "locked": false, + "title": "getUser", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:30Z", + "updated_at": "2019-09-08T07:24:33Z", + "closed_at": "2019-09-08T07:24:33Z", + "merged_at": null, + "merge_commit_sha": "ecddc31a370337bf1c6d94263669da1504484d4e", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/263" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/263/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/user-07979842-29a1-401d-be2b-0c5847525fc3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/user-07979842-29a1-401d-be2b-0c5847525fc3.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/__files/user-07979842-29a1-401d-be2b-0c5847525fc3.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json new file mode 100644 index 0000000000..477c71a1c4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json @@ -0,0 +1,43 @@ +{ + "id": "9700f9b4-6787-4942-94bd-1e47116da93b", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-9700f9b4-6787-4942-94bd-1e47116da93b.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:29 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4921", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9D7C:BB5993:5D74ACAD" + } + }, + "uuid": "9700f9b4-6787-4942-94bd-1e47116da93b", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json new file mode 100644 index 0000000000..ffaaf6dfed --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json @@ -0,0 +1,46 @@ +{ + "id": "43e6882d-8843-479b-8da0-0de90a6edc39", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-43e6882d-8843-479b-8da0-0de90a6edc39.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:31 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4915", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"a9119a5f5499b471a95c911f2727452f\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9E34:BB5A3C:5D74ACAF" + } + }, + "uuid": "43e6882d-8843-479b-8da0-0de90a6edc39", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json new file mode 100644 index 0000000000..05cba6cbb4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json @@ -0,0 +1,45 @@ +{ + "id": "ab230383-b8a2-4e18-848c-31637758036c", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-ab230383-b8a2-4e18-848c-31637758036c.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:32 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4912", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"a9119a5f5499b471a95c911f2727452f\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9E6E:BB5A9F:5D74ACB0" + } + }, + "uuid": "ab230383-b8a2-4e18-848c-31637758036c", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json new file mode 100644 index 0000000000..d8037c3ce9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json @@ -0,0 +1,46 @@ +{ + "id": "c0d68f0b-8041-4a02-902c-e277971f2364", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-c0d68f0b-8041-4a02-902c-e277971f2364.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:29 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4920", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"13a1a11862cbe1a1cb1a31c2ab3af9be\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9D8A:BB59A4:5D74ACAD" + } + }, + "uuid": "c0d68f0b-8041-4a02-902c-e277971f2364", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json new file mode 100644 index 0000000000..b33e5ef6e1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json @@ -0,0 +1,46 @@ +{ + "id": "e79ad56e-9598-45d0-854b-d3b1596e0bf0", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-e79ad56e-9598-45d0-854b-d3b1596e0bf0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:30 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4918", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"a0fc415e3a03487befd847db032ba7b0\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9DDD:BB59FC:5D74ACAE" + } + }, + "uuid": "e79ad56e-9598-45d0-854b-d3b1596e0bf0", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json new file mode 100644 index 0000000000..51d4a06a6b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json @@ -0,0 +1,50 @@ +{ + "id": "344c3bf1-68d8-4ed4-8d28-31f06f7ef465", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"getUser\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-344c3bf1-68d8-4ed4-8d28-31f06f7ef465.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:30 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4919", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"d655d1d53611f46e0047b8bf06c075c5\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/263", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9D97:BB59B5:5D74ACAD" + } + }, + "uuid": "344c3bf1-68d8-4ed4-8d28-31f06f7ef465", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json new file mode 100644 index 0000000000..1523990304 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json @@ -0,0 +1,44 @@ +{ + "id": "5f8eb032-94f9-4306-922e-21141d15228b", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-5f8eb032-94f9-4306-922e-21141d15228b.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:32 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4911", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"ae049259cbd6beea8bb740e966c52803\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9E7E:BB5AC0:5D74ACB0" + } + }, + "uuid": "5f8eb032-94f9-4306-922e-21141d15228b", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-2", + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json new file mode 100644 index 0000000000..5fad1d493c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json @@ -0,0 +1,45 @@ +{ + "id": "e32f79db-5f0b-4b94-b7ee-540ef61d9fc2", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-e32f79db-5f0b-4b94-b7ee-540ef61d9fc2.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:32 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4914", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"ae049259cbd6beea8bb740e966c52803\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9E56:BB5A83:5D74ACAF" + } + }, + "uuid": "e32f79db-5f0b-4b94-b7ee-540ef61d9fc2", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-2", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json new file mode 100644 index 0000000000..4b0aa142ea --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json @@ -0,0 +1,43 @@ +{ + "id": "034f14a1-2ee6-4451-b553-d02da875468e", + "name": "repos_github-api-test-org_github-api_pulls_263", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/263", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_263-034f14a1-2ee6-4451-b553-d02da875468e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:31 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4917", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"4c8aaa43a928ad60788c6298a0cf826a\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9DFA:BB5A1D:5D74ACAE" + } + }, + "uuid": "034f14a1-2ee6-4451-b553-d02da875468e", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json new file mode 100644 index 0000000000..b1458590f0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json @@ -0,0 +1,49 @@ +{ + "id": "efb36413-ff3e-4b8b-af82-e5fe336051e8", + "name": "repos_github-api-test-org_github-api_pulls_263", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/263", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_263-efb36413-ff3e-4b8b-af82-e5fe336051e8.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4910", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f2daf1c39b599ee1902c088c320fdd61\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9E98:BB5AD8:5D74ACB0" + } + }, + "uuid": "efb36413-ff3e-4b8b-af82-e5fe336051e8", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/user-07979842-29a1-401d-be2b-0c5847525fc3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/user-07979842-29a1-401d-be2b-0c5847525fc3.json new file mode 100644 index 0000000000..2bd69913a3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/getUser/mappings/user-07979842-29a1-401d-be2b-0c5847525fc3.json @@ -0,0 +1,43 @@ +{ + "id": "07979842-29a1-401d-be2b-0c5847525fc3", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-07979842-29a1-401d-be2b-0c5847525fc3.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:29 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4922", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF84:9A32:9E9D71:BB5986:5D74ACAD" + } + }, + "uuid": "07979842-29a1-401d-be2b-0c5847525fc3", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json new file mode 100644 index 0000000000..34838e6654 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json new file mode 100644 index 0000000000..34838e6654 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json new file mode 100644 index 0000000000..34838e6654 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json new file mode 100644 index 0000000000..a69a4fcbd1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json new file mode 100644 index 0000000000..675a4f8ae2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json @@ -0,0 +1,103 @@ +{ + "sha": "a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "node_id": "MDY6Q29tbWl0MjA2ODg4MjAxOmE2ZDQ2ODNlZDU5YzAzYmRhOTFlZjk0ZWM0NjNhZTk1YWMwZDMxZGE=", + "commit": { + "author": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:38Z" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com", + "date": "2019-09-08T07:24:38Z" + }, + "message": "Merge b036909fcf45565c82c888ee326ebd0e382f6173 into 912e2176a00e60e02196737e0ae4c218a14b5dcb", + "tree": { + "sha": "b47f8df1c36a62c6d67bc9bb905fbe10ea30ba16", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees/b47f8df1c36a62c6d67bc9bb905fbe10ea30ba16" + }, + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "comment_count": 0, + "verification": { + "verified": true, + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJddKy2CRBK7hj4Ov3rIwAAdHIIAA1Er8XH1+vjTIgGhT3487SE\n44Z1hM7ME3y/j6pcXwtlK4AyS6UAjEZ5oFRBQAajStVU4NwUUaTz/5sq+EOjTo/t\nVdeKyR7jydBe/3I5wnPwgLSB8JqvxSWAE+vEhopN0EwrCDmjPlMcN+FHGnhXNu7D\niC8AarpNiK22CNeujOKfN5fNpkmwwkIAK8HCpv5OChqHfooJG2YD23ErIN0oPr47\naZIAe02cIfElm5veY1u4A+UJw9mPWOCnNRpzuVzcymeoY3CqeB1Vs8RoT+uUab3p\npEWuNwLLuwSCevg2t2TEqdU4IG4To1kxTn9pwbzKmR5stC6lpPQwLIK7K7BbaIM=\n=JFHD\n-----END PGP SIGNATURE-----\n", + "payload": "tree b47f8df1c36a62c6d67bc9bb905fbe10ea30ba16\nparent 912e2176a00e60e02196737e0ae4c218a14b5dcb\nparent b036909fcf45565c82c888ee326ebd0e382f6173\nauthor Liam Newman 1567927478 +0000\ncommitter GitHub 1567927478 +0000\n\nMerge b036909fcf45565c82c888ee326ebd0e382f6173 into 912e2176a00e60e02196737e0ae4c218a14b5dcb\n" + } + }, + "url": "https://api.github.com/repos/github-api-test-org/github-api/commits/a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "html_url": "https://github.com/github-api-test-org/github-api/commit/a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/commits/a6d4683ed59c03bda91ef94ec463ae95ac0d31da/comments", + "author": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "web-flow", + "id": 19864447, + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/web-flow", + "html_url": "https://github.com/web-flow", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "repos_url": "https://api.github.com/users/web-flow/repos", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "url": "https://api.github.com/repos/github-api-test-org/github-api/commits/912e2176a00e60e02196737e0ae4c218a14b5dcb", + "html_url": "https://github.com/github-api-test-org/github-api/commit/912e2176a00e60e02196737e0ae4c218a14b5dcb" + }, + { + "sha": "b036909fcf45565c82c888ee326ebd0e382f6173", + "url": "https://api.github.com/repos/github-api-test-org/github-api/commits/b036909fcf45565c82c888ee326ebd0e382f6173", + "html_url": "https://github.com/github-api-test-org/github-api/commit/b036909fcf45565c82c888ee326ebd0e382f6173" + } + ], + "stats": { + "total": 4, + "additions": 4, + "deletions": 0 + }, + "files": [ + { + "sha": "4ef1269926a3fc469d53e0e89528ddc5d1b448eb", + "filename": "README.md", + "status": "modified", + "additions": 4, + "deletions": 0, + "changes": 4, + "blob_url": "https://github.com/github-api-test-org/github-api/blob/a6d4683ed59c03bda91ef94ec463ae95ac0d31da/README.md", + "raw_url": "https://github.com/github-api-test-org/github-api/raw/a6d4683ed59c03bda91ef94ec463ae95ac0d31da/README.md", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/README.md?ref=a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "patch": "@@ -1,3 +1,7 @@\n Java API for GitHub\n \n See https://github-api.kohsuke.org/ for more details\n+\n+# No conflict\n+\n+Mergeable_branch\n\\ No newline at end of file" + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json new file mode 100644 index 0000000000..e9d96695b3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265", + "id": 315252334, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzM0", + "html_url": "https://github.com/github-api-test-org/github-api/pull/265", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/265.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/265.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265", + "number": 265, + "state": "open", + "locked": false, + "title": "mergeCommitSHA", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:38Z", + "updated_at": "2019-09-08T07:24:38Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173", + "head": { + "label": "github-api-test-org:test/mergeable_branch", + "ref": "test/mergeable_branch", + "sha": "b036909fcf45565c82c888ee326ebd0e382f6173", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/265" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 4, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json new file mode 100644 index 0000000000..c391ec54c1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265", + "id": 315252334, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzM0", + "html_url": "https://github.com/github-api-test-org/github-api/pull/265", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/265.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/265.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265", + "number": 265, + "state": "open", + "locked": false, + "title": "mergeCommitSHA", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:38Z", + "updated_at": "2019-09-08T07:24:38Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173", + "head": { + "label": "github-api-test-org:test/mergeable_branch", + "ref": "test/mergeable_branch", + "sha": "b036909fcf45565c82c888ee326ebd0e382f6173", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/265" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json new file mode 100644 index 0000000000..147b6cd306 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265", + "id": 315252334, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzM0", + "html_url": "https://github.com/github-api-test-org/github-api/pull/265", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/265.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/265.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265", + "number": 265, + "state": "open", + "locked": false, + "title": "mergeCommitSHA", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:38Z", + "updated_at": "2019-09-08T07:24:38Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173", + "head": { + "label": "github-api-test-org:test/mergeable_branch", + "ref": "test/mergeable_branch", + "sha": "b036909fcf45565c82c888ee326ebd0e382f6173", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/265" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 4, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json new file mode 100644 index 0000000000..c0ffe046e0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265", + "id": 315252334, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzM0", + "html_url": "https://github.com/github-api-test-org/github-api/pull/265", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/265.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/265.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265", + "number": 265, + "state": "closed", + "locked": false, + "title": "mergeCommitSHA", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:38Z", + "updated_at": "2019-09-08T07:24:42Z", + "closed_at": "2019-09-08T07:24:42Z", + "merged_at": null, + "merge_commit_sha": "a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173", + "head": { + "label": "github-api-test-org:test/mergeable_branch", + "ref": "test/mergeable_branch", + "sha": "b036909fcf45565c82c888ee326ebd0e382f6173", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/265" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/265/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/b036909fcf45565c82c888ee326ebd0e382f6173" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 4, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/__files/user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json new file mode 100644 index 0000000000..4aada90079 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json @@ -0,0 +1,43 @@ +{ + "id": "9a6723ee-af32-469d-a26a-5f8eca5da1fb", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-9a6723ee-af32-469d-a26a-5f8eca5da1fb.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:37 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4897", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9E9FBC:BB5C36:5D74ACB5" + } + }, + "uuid": "9a6723ee-af32-469d-a26a-5f8eca5da1fb", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json new file mode 100644 index 0000000000..0acbabfb6e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json @@ -0,0 +1,46 @@ +{ + "id": "0605c9f6-9c49-40ed-864f-ad6bc27e8b71", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-0605c9f6-9c49-40ed-864f-ad6bc27e8b71.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:41 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4891", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e4f58a65857ec638bfd00d967b5983b9\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA0A9:BB5D45:5D74ACB8" + } + }, + "uuid": "0605c9f6-9c49-40ed-864f-ad6bc27e8b71", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json new file mode 100644 index 0000000000..be60556b20 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json @@ -0,0 +1,45 @@ +{ + "id": "28e3a735-30c7-4678-a90e-8b4d6bdeff31", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-28e3a735-30c7-4678-a90e-8b4d6bdeff31.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:41 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4889", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e4f58a65857ec638bfd00d967b5983b9\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA0CF:BB5D69:5D74ACB9" + } + }, + "uuid": "28e3a735-30c7-4678-a90e-8b4d6bdeff31", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json new file mode 100644 index 0000000000..d232d711a1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json @@ -0,0 +1,46 @@ +{ + "id": "304b1818-f809-4768-940e-50792fb3f7fc", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-304b1818-f809-4768-940e-50792fb3f7fc.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:40 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4893", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e4f58a65857ec638bfd00d967b5983b9\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA087:BB5CA4:5D74ACB6" + } + }, + "uuid": "304b1818-f809-4768-940e-50792fb3f7fc", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json new file mode 100644 index 0000000000..0b669478fd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json @@ -0,0 +1,46 @@ +{ + "id": "a531caa8-31f1-4277-9cd4-698d0e32f079", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-a531caa8-31f1-4277-9cd4-698d0e32f079.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:37 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4896", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3c30bde80ee040608ed7f15ed1d1e11b\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9E9FE1:BB5C58:5D74ACB5" + } + }, + "uuid": "a531caa8-31f1-4277-9cd4-698d0e32f079", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json new file mode 100644 index 0000000000..3eac132bc5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json @@ -0,0 +1,43 @@ +{ + "id": "d61ffef0-862d-4b9b-9817-ff777efb8c5e", + "name": "repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "request": { + "url": "/repos/github-api-test-org/github-api/commits/a6d4683ed59c03bda91ef94ec463ae95ac0d31da", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_commits_a6d4683ed59c03bda91ef94ec463ae95ac0d31da-d61ffef0-862d-4b9b-9817-ff777efb8c5e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:41 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4890", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d460abb29684444082281fca1f27296a\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:38 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA0B5:BB5D58:5D74ACB9" + } + }, + "uuid": "d61ffef0-862d-4b9b-9817-ff777efb8c5e", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json new file mode 100644 index 0000000000..285694cf98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json @@ -0,0 +1,50 @@ +{ + "id": "8f286e1a-bf89-4038-9df2-226e0026e09a", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/mergeable_branch\",\"maintainer_can_modify\":true,\"title\":\"mergeCommitSHA\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-8f286e1a-bf89-4038-9df2-226e0026e09a.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:38 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4895", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"0a534bae39e513a8b52d701350dadc96\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/265", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9E9FEB:BB5C69:5D74ACB5" + } + }, + "uuid": "8f286e1a-bf89-4038-9df2-226e0026e09a", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json new file mode 100644 index 0000000000..d231646cd1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json @@ -0,0 +1,42 @@ +{ + "id": "b79392e0-49d2-49e2-84b2-af914db01158", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-b79392e0-49d2-49e2-84b2-af914db01158.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:42 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4888", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"4053b88e6f934767af8000ddf035fced\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA0EF:BB5D91:5D74ACB9" + } + }, + "uuid": "b79392e0-49d2-49e2-84b2-af914db01158", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json new file mode 100644 index 0000000000..90064404b9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json @@ -0,0 +1,43 @@ +{ + "id": "782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d", + "name": "repos_github-api-test-org_github-api_pulls_265", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/265", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_265-782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:40 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4892", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"afab047337d28f469e2fb3e3163a9a4d\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:38 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA094:BB5D30:5D74ACB8" + } + }, + "uuid": "782b855f-1bd3-4b7e-bc5a-0e48e4db1c2d", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json new file mode 100644 index 0000000000..0093ae203a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json @@ -0,0 +1,49 @@ +{ + "id": "d6d01d9b-8021-466e-96c2-7abf0da928be", + "name": "repos_github-api-test-org_github-api_pulls_265", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/265", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_265-d6d01d9b-8021-466e-96c2-7abf0da928be.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:42 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4887", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"c6ea7b32074f78e3113a7191a0614427\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9EA0FC:BB5DA8:5D74ACBA" + } + }, + "uuid": "d6d01d9b-8021-466e-96c2-7abf0da928be", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json new file mode 100644 index 0000000000..e53a33f55a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/mergeCommitSHA/mappings/user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json @@ -0,0 +1,43 @@ +{ + "id": "96a90d94-5e9a-4d05-9f3a-d4ae250f59e9", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-96a90d94-5e9a-4d05-9f3a-d4ae250f59e9.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:37 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4898", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF8D:9A32:9E9FB1:BB5C26:5D74ACB5" + } + }, + "uuid": "96a90d94-5e9a-4d05-9f3a-d4ae250f59e9", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json new file mode 100644 index 0000000000..9cd41eca71 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json new file mode 100644 index 0000000000..08f2533418 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json new file mode 100644 index 0000000000..1273cb8749 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "id": 315252340, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzQw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/266.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/266.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/266", + "number": 266, + "state": "open", + "locked": false, + "title": "pullRequestReviewComments", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:43Z", + "updated_at": "2019-09-08T07:24:43Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/266/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:38Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/266" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/266/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json new file mode 100644 index 0000000000..73fba52b49 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "id": 315252340, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzQw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/266.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/266.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/266", + "number": 266, + "state": "open", + "locked": false, + "title": "pullRequestReviewComments", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:43Z", + "updated_at": "2019-09-08T07:24:45Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "c40c9460c3947afd27cf83ffa79e99d1050f5417", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/266/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/266" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/266/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json new file mode 100644 index 0000000000..82ca27f959 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "id": 315252340, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzQw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/266.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/266.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/266", + "number": 266, + "state": "closed", + "locked": false, + "title": "pullRequestReviewComments", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:43Z", + "updated_at": "2019-09-08T07:24:46Z", + "closed_at": "2019-09-08T07:24:46Z", + "merged_at": null, + "merge_commit_sha": "c40c9460c3947afd27cf83ffa79e99d1050f5417", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/266/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/266" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/266/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json new file mode 100644 index 0000000000..d4caa6f08f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json @@ -0,0 +1,51 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146", + "pull_request_review_id": 285200976, + "id": 321995146, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTk5NTE0Ng==", + "diff_hunk": "@@ -1,3 +1,3 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "original_commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2019-09-08T07:24:44Z", + "updated_at": "2019-09-08T07:24:44Z", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + } + } + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json new file mode 100644 index 0000000000..93ee3dd865 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json @@ -0,0 +1,51 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146", + "pull_request_review_id": 285200976, + "id": 321995146, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTk5NTE0Ng==", + "diff_hunk": "@@ -1,3 +1,3 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "original_commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2019-09-08T07:24:44Z", + "updated_at": "2019-09-08T07:24:45Z", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + } + } + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json new file mode 100644 index 0000000000..9bc8f34beb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json @@ -0,0 +1,49 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146", + "pull_request_review_id": 285200976, + "id": 321995146, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTk5NTE0Ng==", + "diff_hunk": "@@ -1,3 +1,3 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "original_commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2019-09-08T07:24:44Z", + "updated_at": "2019-09-08T07:24:44Z", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json new file mode 100644 index 0000000000..917115869a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json @@ -0,0 +1,49 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146", + "pull_request_review_id": 285200976, + "id": 321995146, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTk5NTE0Ng==", + "diff_hunk": "@@ -1,3 +1,3 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "original_commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2019-09-08T07:24:44Z", + "updated_at": "2019-09-08T07:24:45Z", + "html_url": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/266#discussion_r321995146" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266" + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/user-f7421985-e210-4b76-b07e-0a00bae61fff.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/user-f7421985-e210-4b76-b07e-0a00bae61fff.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/__files/user-f7421985-e210-4b76-b07e-0a00bae61fff.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json new file mode 100644 index 0000000000..28d651ac51 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json @@ -0,0 +1,43 @@ +{ + "id": "079c3da5-3ce3-41f6-aef1-cae0dad71a85", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-079c3da5-3ce3-41f6-aef1-cae0dad71a85.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4885", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67D6A:E8071B:5D74ACBA" + } + }, + "uuid": "079c3da5-3ce3-41f6-aef1-cae0dad71a85", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json new file mode 100644 index 0000000000..576c34e2f4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json @@ -0,0 +1,45 @@ +{ + "id": "9090d20b-28ee-455a-8eb6-e1547d0d3d9e", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-9090d20b-28ee-455a-8eb6-e1547d0d3d9e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:46 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4875", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"9acabc33f9749ffce33a82a36bb6e76d\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E6D:E80837:5D74ACBE" + } + }, + "uuid": "9090d20b-28ee-455a-8eb6-e1547d0d3d9e", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json new file mode 100644 index 0000000000..77c462bd95 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json @@ -0,0 +1,46 @@ +{ + "id": "d585b5ae-36a9-48d8-931d-7f459bec2b4c", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-d585b5ae-36a9-48d8-931d-7f459bec2b4c.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4884", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7769c7e717cc7cf93b574833c03b891d\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67D75:E80727:5D74ACBB" + } + }, + "uuid": "d585b5ae-36a9-48d8-931d-7f459bec2b4c", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json new file mode 100644 index 0000000000..079b269a47 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json @@ -0,0 +1,50 @@ +{ + "id": "145b4497-4f76-4adf-b16b-ccf1f68c339d", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"pullRequestReviewComments\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-145b4497-4f76-4adf-b16b-ccf1f68c339d.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4883", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"a2827455894688a5faa5da779190bb2c\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/266", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67D86:E8073B:5D74ACBB" + } + }, + "uuid": "145b4497-4f76-4adf-b16b-ccf1f68c339d", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json new file mode 100644 index 0000000000..e5f1248367 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json @@ -0,0 +1,42 @@ +{ + "id": "80451be1-8c40-4a4b-9144-c59e9fb97fd8", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-80451be1-8c40-4a4b-9144-c59e9fb97fd8.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:46 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4874", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"18012acfc0962da8b2ede3a910fa5178\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E7F:E8084B:5D74ACBE" + } + }, + "uuid": "80451be1-8c40-4a4b-9144-c59e9fb97fd8", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json new file mode 100644 index 0000000000..b2c2e01eb7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json @@ -0,0 +1,49 @@ +{ + "id": "f8bf7bf6-b583-4573-b3eb-31bbad80e965", + "name": "repos_github-api-test-org_github-api_pulls_266", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/266", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_266-f8bf7bf6-b583-4573-b3eb-31bbad80e965.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:47 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4873", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"c0645af133a441f679a6966ea56da287\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E97:E80863:5D74ACBE" + } + }, + "uuid": "f8bf7bf6-b583-4573-b3eb-31bbad80e965", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json new file mode 100644 index 0000000000..65caed2f38 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json @@ -0,0 +1,45 @@ +{ + "id": "874427ac-ddf2-4cee-b85c-501b2a3861d7", + "name": "repos_github-api-test-org_github-api_pulls_266_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/266/comments", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_266_comments-874427ac-ddf2-4cee-b85c-501b2a3861d7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:45 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4880", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"5744dfa02066cbc244887629e9a78919\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E05:E807B8:5D74ACBC" + } + }, + "uuid": "874427ac-ddf2-4cee-b85c-501b2a3861d7", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments-2", + "newScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments-3", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json new file mode 100644 index 0000000000..a7cc05f0e3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json @@ -0,0 +1,45 @@ +{ + "id": "8d629bc2-ccf8-46c5-804d-500af333a156", + "name": "repos_github-api-test-org_github-api_pulls_266_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/266/comments", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_266_comments-8d629bc2-ccf8-46c5-804d-500af333a156.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:45 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4878", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"004c8f4b66ed0d9ad14c2f19e71e962a\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E36:E807F0:5D74ACBD" + } + }, + "uuid": "8d629bc2-ccf8-46c5-804d-500af333a156", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments-3", + "newScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments-4", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-b8142f12-29ab-4694-9857-cede8bce560c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-b8142f12-29ab-4694-9857-cede8bce560c.json new file mode 100644 index 0000000000..f7bf4d04be --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-b8142f12-29ab-4694-9857-cede8bce560c.json @@ -0,0 +1,44 @@ +{ + "id": "b8142f12-29ab-4694-9857-cede8bce560c", + "name": "repos_github-api-test-org_github-api_pulls_266_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/266/comments", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:46 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4876", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E64:E8081B:5D74ACBE" + } + }, + "uuid": "b8142f12-29ab-4694-9857-cede8bce560c", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments-4", + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json new file mode 100644 index 0000000000..1da48647e3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json @@ -0,0 +1,50 @@ +{ + "id": "b9a8cb45-f232-4aa9-a3bf-93f050e40616", + "name": "repos_github-api-test-org_github-api_pulls_266_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/266/comments", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"2d29c787b46ce61b98a1c13e05e21ebc21f49dbf\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_266_comments-b9a8cb45-f232-4aa9-a3bf-93f050e40616.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:44 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4881", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"1e5fb97b3f4a5335008f4d7b18498e9d\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995146", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67DD2:E8078D:5D74ACBC" + } + }, + "uuid": "b9a8cb45-f232-4aa9-a3bf-93f050e40616", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-cbd42569-0057-4dc2-89f9-2de7b12db75e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-cbd42569-0057-4dc2-89f9-2de7b12db75e.json new file mode 100644 index 0000000000..24007d3d40 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_266_comments-cbd42569-0057-4dc2-89f9-2de7b12db75e.json @@ -0,0 +1,45 @@ +{ + "id": "cbd42569-0057-4dc2-89f9-2de7b12db75e", + "name": "repos_github-api-test-org_github-api_pulls_266_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/266/comments", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:44 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4882", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67DC4:E80772:5D74ACBB" + } + }, + "uuid": "cbd42569-0057-4dc2-89f9-2de7b12db75e", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-github-api-test-org-github-api-pulls-266-comments-2", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_comments_321995146-73e6aad9-93a1-4421-94ee-721a9b1949dc.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_comments_321995146-73e6aad9-93a1-4421-94ee-721a9b1949dc.json new file mode 100644 index 0000000000..f0c81e3773 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_comments_321995146-73e6aad9-93a1-4421-94ee-721a9b1949dc.json @@ -0,0 +1,36 @@ +{ + "id": "73e6aad9-93a1-4421-94ee-721a9b1949dc", + "name": "repos_github-api-test-org_github-api_pulls_comments_321995146", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/comments/321995146", + "method": "DELETE" + }, + "response": { + "status": 204, + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:45 GMT", + "Content-Type": "application/octet-stream", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4877", + "X-RateLimit-Reset": "1567929276", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding", + "X-GitHub-Request-Id": "FF91:40BD:C67E42:E80809:5D74ACBD" + } + }, + "uuid": "73e6aad9-93a1-4421-94ee-721a9b1949dc", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json new file mode 100644 index 0000000000..f157bf14bd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json @@ -0,0 +1,49 @@ +{ + "id": "d0df7515-482f-4337-aafd-a543346e6076", + "name": "repos_github-api-test-org_github-api_pulls_comments_321995146", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/comments/321995146", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"Updated review comment\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_comments_321995146-d0df7515-482f-4337-aafd-a543346e6076.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:45 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4879", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"0c3324b1da01161140a88fc125c27562\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67E12:E807D1:5D74ACBD" + } + }, + "uuid": "d0df7515-482f-4337-aafd-a543346e6076", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/user-f7421985-e210-4b76-b07e-0a00bae61fff.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/user-f7421985-e210-4b76-b07e-0a00bae61fff.json new file mode 100644 index 0000000000..72ece192a2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviewComments/mappings/user-f7421985-e210-4b76-b07e-0a00bae61fff.json @@ -0,0 +1,43 @@ +{ + "id": "f7421985-e210-4b76-b07e-0a00bae61fff", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-f7421985-e210-4b76-b07e-0a00bae61fff.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:42 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4886", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF91:40BD:C67D5C:E8070E:5D74ACBA" + } + }, + "uuid": "f7421985-e210-4b76-b07e-0a00bae61fff", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json new file mode 100644 index 0000000000..5070dd6120 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json new file mode 100644 index 0000000000..be4f5ebd7e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:22:12Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json new file mode 100644 index 0000000000..127cb7a106 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "id": 315252305, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzA1", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/258.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/258.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/258", + "number": 258, + "state": "open", + "locked": false, + "title": "testPullRequestReviews", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:09Z", + "updated_at": "2019-09-08T07:24:12Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "df6cbd010a7043bd1c1741772cb306107b7461e3", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/258/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/258" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/258/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json new file mode 100644 index 0000000000..f26ee55dea --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "id": 315252305, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzA1", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/258.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/258.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/258", + "number": 258, + "state": "open", + "locked": false, + "title": "testPullRequestReviews", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:09Z", + "updated_at": "2019-09-08T07:24:09Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/258/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:22:12Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:22:12Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/258" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/258/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json new file mode 100644 index 0000000000..be15d5caa2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "id": 315252305, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzA1", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/258.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/258.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/258", + "number": 258, + "state": "closed", + "locked": false, + "title": "testPullRequestReviews", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:09Z", + "updated_at": "2019-09-08T07:24:12Z", + "closed_at": "2019-09-08T07:24:12Z", + "merged_at": null, + "merge_commit_sha": "df6cbd010a7043bd1c1741772cb306107b7461e3", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/258/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/258" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/258/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 1, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json new file mode 100644 index 0000000000..67ec7d6190 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json @@ -0,0 +1,38 @@ +{ + "id": 285200956, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3Mjg1MjAwOTU2", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some draft review", + "state": "PENDING", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200956", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200956" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + } + }, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json new file mode 100644 index 0000000000..ae32eca395 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json @@ -0,0 +1,40 @@ +[ + { + "id": 285200956, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3Mjg1MjAwOTU2", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some draft review", + "state": "PENDING", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200956", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200956" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + } + }, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json new file mode 100644 index 0000000000..49d6e5b1cc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json @@ -0,0 +1,38 @@ +{ + "id": 285200957, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3Mjg1MjAwOTU3", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some new review", + "state": "PENDING", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200957", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200957" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + } + }, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json new file mode 100644 index 0000000000..071eb45f5d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json @@ -0,0 +1,51 @@ +[ + { + "id": 321995128, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTk5NTEyOA==", + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995128", + "pull_request_review_id": 285200956, + "diff_hunk": "@@ -1,3 +1,3 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some niggle", + "created_at": "2019-09-08T07:24:09Z", + "updated_at": "2019-09-08T07:24:10Z", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258#discussion_r321995128", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments/321995128" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258#discussion_r321995128" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + } + }, + "original_commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json new file mode 100644 index 0000000000..42e89ba4a4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json @@ -0,0 +1,39 @@ +{ + "id": 285200956, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3Mjg1MjAwOTU2", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some review comment", + "state": "COMMENTED", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200956", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200956" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + } + }, + "submitted_at": "2019-09-08T07:24:10Z", + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json new file mode 100644 index 0000000000..49d6e5b1cc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json @@ -0,0 +1,38 @@ +{ + "id": 285200957, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3Mjg1MjAwOTU3", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some new review", + "state": "PENDING", + "html_url": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200957", + "pull_request_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/258#pullrequestreview-285200957" + }, + "pull_request": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258" + } + }, + "commit_id": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/__files/user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json new file mode 100644 index 0000000000..8f3184e4f1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json @@ -0,0 +1,43 @@ +{ + "id": "3f761467-4b55-4250-8764-14a1f83cdf7b", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-3f761467-4b55-4250-8764-14a1f83cdf7b.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4966", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54F2A:E72692:5D74AC97" + } + }, + "uuid": "3f761467-4b55-4250-8764-14a1f83cdf7b", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json new file mode 100644 index 0000000000..fcfc6c0167 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json @@ -0,0 +1,45 @@ +{ + "id": "029a5710-e19a-4db2-8b79-49123309a3bf", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-029a5710-e19a-4db2-8b79-49123309a3bf.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4957", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e4740efc748837c4fa4fd291af5e7a4f\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C5507A:E72820:5D74AC9C" + } + }, + "uuid": "029a5710-e19a-4db2-8b79-49123309a3bf", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json new file mode 100644 index 0000000000..cdc678a592 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json @@ -0,0 +1,46 @@ +{ + "id": "1efd2ad4-e334-47e1-aaa8-8588bb117bb0", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-1efd2ad4-e334-47e1-aaa8-8588bb117bb0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4965", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"ca547e62bc7fe17adb3502e01ebf153d\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54F50:E726C1:5D74AC98" + } + }, + "uuid": "1efd2ad4-e334-47e1-aaa8-8588bb117bb0", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json new file mode 100644 index 0000000000..a2adb57c36 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json @@ -0,0 +1,42 @@ +{ + "id": "0c75c020-a12d-4d29-a43f-401e5d479b4a", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-0c75c020-a12d-4d29-a43f-401e5d479b4a.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4956", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"83235f4a55a52ca3f71050891f545eff\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C5509B:E7283A:5D74AC9C" + } + }, + "uuid": "0c75c020-a12d-4d29-a43f-401e5d479b4a", + "persistent": true, + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json new file mode 100644 index 0000000000..55035c4bdf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json @@ -0,0 +1,50 @@ +{ + "id": "7f209593-4b8d-4fc8-97e2-10704e6683b7", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"testPullRequestReviews\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-7f209593-4b8d-4fc8-97e2-10704e6683b7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:09 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4964", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"b0598a7316847a33e8c3d97547451bb9\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/258", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54F67:E726E5:5D74AC98" + } + }, + "uuid": "7f209593-4b8d-4fc8-97e2-10704e6683b7", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json new file mode 100644 index 0000000000..8d6b5bb51f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json @@ -0,0 +1,49 @@ +{ + "id": "9406e54b-fdf7-40d5-a51b-3c27d7b050d8", + "name": "repos_github-api-test-org_github-api_pulls_258", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258-9406e54b-fdf7-40d5-a51b-3c27d7b050d8.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4955", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"88adcbc08092f5a33384d5818f3a59b8\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C550A8:E72856:5D74AC9C" + } + }, + "uuid": "9406e54b-fdf7-40d5-a51b-3c27d7b050d8", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json new file mode 100644 index 0000000000..e9efbd4a90 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json @@ -0,0 +1,49 @@ +{ + "id": "1fe517d8-5707-4f17-a46a-e58d3abb5991", + "name": "repos_github-api-test-org_github-api_pulls_258_reviews", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258/reviews", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"comments\":[{\"body\":\"Some niggle\",\"path\":\"README.md\",\"position\":1}],\"body\":\"Some draft review\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258_reviews-1fe517d8-5707-4f17-a46a-e58d3abb5991.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4963", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"661a313c46838fe76465f0af8e8c8d11\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54FA8:E7272B:5D74AC99" + } + }, + "uuid": "1fe517d8-5707-4f17-a46a-e58d3abb5991", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json new file mode 100644 index 0000000000..23c91e4615 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json @@ -0,0 +1,42 @@ +{ + "id": "56d54933-fb91-4e3e-8baa-245b5b7db8b2", + "name": "repos_github-api-test-org_github-api_pulls_258_reviews", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258/reviews", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258_reviews-56d54933-fb91-4e3e-8baa-245b5b7db8b2.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4962", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"826dd9da68be423cddfb11926f611eed\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54FD2:E72760:5D74AC9A" + } + }, + "uuid": "56d54933-fb91-4e3e-8baa-245b5b7db8b2", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json new file mode 100644 index 0000000000..75db553511 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json @@ -0,0 +1,49 @@ +{ + "id": "be8b553c-77cf-4904-9d74-92787d422007", + "name": "repos_github-api-test-org_github-api_pulls_258_reviews", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258/reviews", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"comments\":[{\"body\":\"Some niggle\",\"path\":\"README.md\",\"position\":1}],\"body\":\"Some new review\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258_reviews-be8b553c-77cf-4904-9d74-92787d422007.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4959", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"5983db55f65865c2c1a33d7f3ac2e2b5\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C55034:E727CF:5D74AC9B" + } + }, + "uuid": "be8b553c-77cf-4904-9d74-92787d422007", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json new file mode 100644 index 0000000000..76af35947a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json @@ -0,0 +1,42 @@ +{ + "id": "15c1e28b-6415-4c72-8a9a-bf0e88ca9364", + "name": "repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258/reviews/285200956/comments", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258_reviews_285200956_comments-15c1e28b-6415-4c72-8a9a-bf0e88ca9364.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4960", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f277539431581bfcf4e28500219f25e5\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C55023:E727BC:5D74AC9B" + } + }, + "uuid": "15c1e28b-6415-4c72-8a9a-bf0e88ca9364", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json new file mode 100644 index 0000000000..4a98bc374c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json @@ -0,0 +1,49 @@ +{ + "id": "d0f59a93-6a4d-4841-b4ec-a6b5d43747ea", + "name": "repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258/reviews/285200956/events", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"Some review comment\",\"event\":\"COMMENT\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258_reviews_285200956_events-d0f59a93-6a4d-4841-b4ec-a6b5d43747ea.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4961", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e944fffdfb00bed59c6411e2d6ce4b56\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "public_repo, repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54FF2:E7277B:5D74AC9A" + } + }, + "uuid": "d0f59a93-6a4d-4841-b4ec-a6b5d43747ea", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json new file mode 100644 index 0000000000..8ecbd6e7fe --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json @@ -0,0 +1,42 @@ +{ + "id": "886b3f8b-a7c0-4844-95a5-3f674898edb0", + "name": "repos_github-api-test-org_github-api_pulls_258_reviews_285200957", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/258/reviews/285200957", + "method": "DELETE" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_258_reviews_285200957-886b3f8b-a7c0-4844-95a5-3f674898edb0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4958", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"5983db55f65865c2c1a33d7f3ac2e2b5\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "public_repo, repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C55065:E72801:5D74AC9B" + } + }, + "uuid": "886b3f8b-a7c0-4844-95a5-3f674898edb0", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json new file mode 100644 index 0000000000..5d24b56724 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/pullRequestReviews/mappings/user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json @@ -0,0 +1,43 @@ +{ + "id": "e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4967", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF76:0A33:C54F06:E7268A:5D74AC97" + } + }, + "uuid": "e24b3373-c9ca-4d6f-b8cc-93a9d7deb4d0", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json new file mode 100644 index 0000000000..dcfcb8b5cd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json new file mode 100644 index 0000000000..3401cb9ae8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json new file mode 100644 index 0000000000..cfa0e089f6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json @@ -0,0 +1,656 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260", + "id": 315252311, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEx", + "html_url": "https://github.com/github-api-test-org/github-api/pull/260", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/260.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/260.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/260", + "number": 260, + "state": "open", + "locked": false, + "title": "queryPullRequestsQualifiedHead_rc", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:15Z", + "updated_at": "2019-09-08T07:24:15Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "19bec63f7d9c85ab85bc63733e3ed2ea7191faff", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/260/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af", + "head": { + "label": "github-api-test-org:test/rc", + "ref": "test/rc", + "sha": "14fa3698221f91613b9e1d809434326e5ed546af", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/260" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/260" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/260/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af" + } + }, + "author_association": "MEMBER" + }, + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259", + "id": 315252310, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/259", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/259.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/259.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259", + "number": 259, + "state": "open", + "locked": false, + "title": "queryPullRequestsQualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:14Z", + "updated_at": "2019-09-08T07:24:14Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "200d8ca1eb12dcc3f8bb86e3fcfd57e635539668", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/259" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json new file mode 100644 index 0000000000..d829bec76b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260", + "id": 315252311, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEx", + "html_url": "https://github.com/github-api-test-org/github-api/pull/260", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/260.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/260.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/260", + "number": 260, + "state": "open", + "locked": false, + "title": "queryPullRequestsQualifiedHead_rc", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:15Z", + "updated_at": "2019-09-08T07:24:15Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/260/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af", + "head": { + "label": "github-api-test-org:test/rc", + "ref": "test/rc", + "sha": "14fa3698221f91613b9e1d809434326e5ed546af", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:15Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:15Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/260" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/260" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/260/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json new file mode 100644 index 0000000000..3c0a633dd5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259", + "id": 315252310, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/259", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/259.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/259.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259", + "number": 259, + "state": "open", + "locked": false, + "title": "queryPullRequestsQualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:14Z", + "updated_at": "2019-09-08T07:24:14Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:09Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/259" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json new file mode 100644 index 0000000000..8075ea44aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259", + "id": 315252310, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/259", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/259.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/259.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259", + "number": 259, + "state": "open", + "locked": false, + "title": "queryPullRequestsQualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:14Z", + "updated_at": "2019-09-08T07:24:14Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "200d8ca1eb12dcc3f8bb86e3fcfd57e635539668", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/259" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json new file mode 100644 index 0000000000..f8f2305c02 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259", + "id": 315252310, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/259", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/259.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/259.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259", + "number": 259, + "state": "closed", + "locked": false, + "title": "queryPullRequestsQualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:14Z", + "updated_at": "2019-09-08T07:24:17Z", + "closed_at": "2019-09-08T07:24:17Z", + "merged_at": null, + "merge_commit_sha": "200d8ca1eb12dcc3f8bb86e3fcfd57e635539668", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/259" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/259/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json new file mode 100644 index 0000000000..f398abc90f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260", + "id": 315252311, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzEx", + "html_url": "https://github.com/github-api-test-org/github-api/pull/260", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/260.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/260.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/260", + "number": 260, + "state": "closed", + "locked": false, + "title": "queryPullRequestsQualifiedHead_rc", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:15Z", + "updated_at": "2019-09-08T07:24:16Z", + "closed_at": "2019-09-08T07:24:16Z", + "merged_at": null, + "merge_commit_sha": "19bec63f7d9c85ab85bc63733e3ed2ea7191faff", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/260/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af", + "head": { + "label": "github-api-test-org:test/rc", + "ref": "test/rc", + "sha": "14fa3698221f91613b9e1d809434326e5ed546af", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/260" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/260" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/260/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/__files/user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json new file mode 100644 index 0000000000..ec9b01bf97 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json @@ -0,0 +1,43 @@ +{ + "id": "9de3bb03-9dd4-4b5a-a2ac-20e02c951355", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-9de3bb03-9dd4-4b5a-a2ac-20e02c951355.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:14 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4953", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F2F7:BFBF46:5D74AC9D" + } + }, + "uuid": "9de3bb03-9dd4-4b5a-a2ac-20e02c951355", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json new file mode 100644 index 0000000000..4a4d189127 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json @@ -0,0 +1,45 @@ +{ + "id": "684ed3a1-dca4-42f3-b25a-ebea733d4a02", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-684ed3a1-dca4-42f3-b25a-ebea733d4a02.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4948", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"195f97272e555453610aa257d5fb5b9a\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F3D8:BFC036:5D74ACA0" + } + }, + "uuid": "684ed3a1-dca4-42f3-b25a-ebea733d4a02", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json new file mode 100644 index 0000000000..5279b553ba --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json @@ -0,0 +1,46 @@ +{ + "id": "f81e5019-7e7f-48df-803a-d47defd3f22d", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-f81e5019-7e7f-48df-803a-d47defd3f22d.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:14 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4952", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"dd8239fd64940b7b3ae7153454774220\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F30A:BFBF5B:5D74AC9E" + } + }, + "uuid": "f81e5019-7e7f-48df-803a-d47defd3f22d", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json new file mode 100644 index 0000000000..e0e6510bb8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json @@ -0,0 +1,42 @@ +{ + "id": "4e73cd50-9986-426e-bf13-b7ad18f36be0", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-4e73cd50-9986-426e-bf13-b7ad18f36be0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4947", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"19efb7691278d0c8f8c7d905df960345\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F3E9:BFC049:5D74ACA0" + } + }, + "uuid": "4e73cd50-9986-426e-bf13-b7ad18f36be0", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json new file mode 100644 index 0000000000..8f73ffc2c0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json @@ -0,0 +1,50 @@ +{ + "id": "9afc3aa9-ac54-4c53-b5e3-3c0793558359", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/rc\",\"maintainer_can_modify\":true,\"title\":\"queryPullRequestsQualifiedHead_rc\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-9afc3aa9-ac54-4c53-b5e3-3c0793558359.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4950", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"a36f2b49526944ef83755f5a7c70a604\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/260", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F361:BFBFB7:5D74AC9F" + } + }, + "uuid": "9afc3aa9-ac54-4c53-b5e3-3c0793558359", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json new file mode 100644 index 0000000000..f2838213fb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json @@ -0,0 +1,50 @@ +{ + "id": "a2c01b93-3f63-418c-bd0b-a5a61b96999f", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"queryPullRequestsQualifiedHead_stable\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-a2c01b93-3f63-418c-bd0b-a5a61b96999f.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:15 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4951", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"200d053663da19ab9669ae71ba616fa9\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/259", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F322:BFBF73:5D74AC9E" + } + }, + "uuid": "a2c01b93-3f63-418c-bd0b-a5a61b96999f", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json new file mode 100644 index 0000000000..a254cee38f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json @@ -0,0 +1,42 @@ +{ + "id": "ab74613d-0613-47a8-a6fc-34add77d9967", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open&head=github-api-test-org%3Atest%2Fstable&base=master", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-ab74613d-0613-47a8-a6fc-34add77d9967.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4949", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"eabad54ec37a46eaa61190e8372ad147\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F3C1:BFC015:5D74ACA0" + } + }, + "uuid": "ab74613d-0613-47a8-a6fc-34add77d9967", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json new file mode 100644 index 0000000000..8840b21efe --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json @@ -0,0 +1,49 @@ +{ + "id": "5f1852a8-2f93-46f0-a692-538bb386c436", + "name": "repos_github-api-test-org_github-api_pulls_259", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/259", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_259-5f1852a8-2f93-46f0-a692-538bb386c436.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:17 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4945", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"2309da07084fba85129298a8e2214bce\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F423:BFC084:5D74ACA1" + } + }, + "uuid": "5f1852a8-2f93-46f0-a692-538bb386c436", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json new file mode 100644 index 0000000000..6e06c94ed5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json @@ -0,0 +1,49 @@ +{ + "id": "6162e3a9-487d-475a-a4e1-f037c796baf5", + "name": "repos_github-api-test-org_github-api_pulls_260", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/260", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_260-6162e3a9-487d-475a-a4e1-f037c796baf5.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:17 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4946", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f86a3bd8b1787cf9c3f673c69e2456c1\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F3FA:BFC05B:5D74ACA0" + } + }, + "uuid": "6162e3a9-487d-475a-a4e1-f037c796baf5", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json new file mode 100644 index 0000000000..052ab510ef --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json @@ -0,0 +1,43 @@ +{ + "id": "4966fe2a-d81e-4b83-acd4-b1c3e2f4f684", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-4966fe2a-d81e-4b83-acd4-b1c3e2f4f684.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4954", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7B:0A32:A2F2ED:BFBF37:5D74AC9D" + } + }, + "uuid": "4966fe2a-d81e-4b83-acd4-b1c3e2f4f684", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json new file mode 100644 index 0000000000..abb5e892c6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:54Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json new file mode 100644 index 0000000000..423e15ee06 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json new file mode 100644 index 0000000000..c16bb3863f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269", + "id": 315252352, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/269", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/269.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/269.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/269", + "number": 269, + "state": "open", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_rc", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:56Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/269/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af", + "head": { + "label": "github-api-test-org:test/rc", + "ref": "test/rc", + "sha": "14fa3698221f91613b9e1d809434326e5ed546af", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:56Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:56Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/269" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/269" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/269/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json new file mode 100644 index 0000000000..0247c1eacf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json @@ -0,0 +1,329 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268", + "id": 315252350, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/268", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/268.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/268.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268", + "number": 268, + "state": "open", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:56Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "2c242ae5e2c405932dd5989e3dd7b91fce51f55d", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:56Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:56Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/268" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json new file mode 100644 index 0000000000..1b92014d99 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268", + "id": 315252350, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/268", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/268.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/268.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268", + "number": 268, + "state": "open", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:56Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:54Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:54Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/268" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json new file mode 100644 index 0000000000..1106096230 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json @@ -0,0 +1,656 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268", + "id": 315252350, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/268", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/268.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/268.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268", + "number": 268, + "state": "open", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:56Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "2c242ae5e2c405932dd5989e3dd7b91fce51f55d", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/268" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + }, + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269", + "id": 315252352, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/269", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/269.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/269.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/269", + "number": 269, + "state": "open", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_rc", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:56Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "cdd87d5e48ad367ff6e4822eaebb62e688892f8f", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/269/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af", + "head": { + "label": "github-api-test-org:test/rc", + "ref": "test/rc", + "sha": "14fa3698221f91613b9e1d809434326e5ed546af", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/269" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/269" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/269/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json new file mode 100644 index 0000000000..0b8e1d6a3e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268", + "id": 315252350, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/268", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/268.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/268.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268", + "number": 268, + "state": "closed", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_stable", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:58Z", + "closed_at": "2019-09-08T07:24:58Z", + "merged_at": null, + "merge_commit_sha": "2c242ae5e2c405932dd5989e3dd7b91fce51f55d", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/268" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/268/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json new file mode 100644 index 0000000000..dc16d328fd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269", + "id": 315252352, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzUy", + "html_url": "https://github.com/github-api-test-org/github-api/pull/269", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/269.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/269.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/269", + "number": 269, + "state": "closed", + "locked": false, + "title": "queryPullRequestsUnqualifiedHead_rc", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "created_at": "2019-09-08T07:24:56Z", + "updated_at": "2019-09-08T07:24:59Z", + "closed_at": "2019-09-08T07:24:59Z", + "merged_at": null, + "merge_commit_sha": "cdd87d5e48ad367ff6e4822eaebb62e688892f8f", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/269/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af", + "head": { + "label": "github-api-test-org:test/rc", + "ref": "test/rc", + "sha": "14fa3698221f91613b9e1d809434326e5ed546af", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:24:57Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/269" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/269" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/269/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/14fa3698221f91613b9e1d809434326e5ed546af" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/user-69a2a995-8642-477e-aafe-59a7869f4ae9.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/user-69a2a995-8642-477e-aafe-59a7869f4ae9.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/__files/user-69a2a995-8642-477e-aafe-59a7869f4ae9.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json new file mode 100644 index 0000000000..5e19b09bcc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json @@ -0,0 +1,43 @@ +{ + "id": "80e70ac1-7d85-4431-a004-1c16dd3def5c", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-80e70ac1-7d85-4431-a004-1c16dd3def5c.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4858", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D306F4:F66E77:5D74ACC7" + } + }, + "uuid": "80e70ac1-7d85-4431-a004-1c16dd3def5c", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json new file mode 100644 index 0000000000..1ad0c7340c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json @@ -0,0 +1,46 @@ +{ + "id": "10e587d7-cc44-4965-a559-261991a6a1d7", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-10e587d7-cc44-4965-a559-261991a6a1d7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4857", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"17b3b848c656ff5666591ae88958ffa7\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D30704:F66E89:5D74ACC7" + } + }, + "uuid": "10e587d7-cc44-4965-a559-261991a6a1d7", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json new file mode 100644 index 0000000000..0cc3d7093b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json @@ -0,0 +1,45 @@ +{ + "id": "db8422da-0a10-42a5-94f4-3c694b2baaf0", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-db8422da-0a10-42a5-94f4-3c694b2baaf0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4853", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"ab67447ee4109501e0b55705cb0b9d80\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D307CF:F66F69:5D74ACC9" + } + }, + "uuid": "db8422da-0a10-42a5-94f4-3c694b2baaf0", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json new file mode 100644 index 0000000000..a697da5e50 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json @@ -0,0 +1,50 @@ +{ + "id": "37334410-0027-4784-b4d5-4a1e4b6e3174", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/rc\",\"maintainer_can_modify\":true,\"title\":\"queryPullRequestsUnqualifiedHead_rc\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-37334410-0027-4784-b4d5-4a1e4b6e3174.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4855", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"e6bcc8ce97d56e22bf1aab9b388e3a68\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/269", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D30765:F66EF8:5D74ACC8" + } + }, + "uuid": "37334410-0027-4784-b4d5-4a1e4b6e3174", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json new file mode 100644 index 0000000000..6042f6b68e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json @@ -0,0 +1,42 @@ +{ + "id": "3d58d4ba-d752-421e-acdc-6fea50e3311a", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open&head=github-api-test-org%3Atest%2Fstable&base=master", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-3d58d4ba-d752-421e-acdc-6fea50e3311a.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4854", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"bca0c7921914918337495cf2c4997c21\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D307A9:F66F48:5D74ACC9" + } + }, + "uuid": "3d58d4ba-d752-421e-acdc-6fea50e3311a", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json new file mode 100644 index 0000000000..21ede2b63c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json @@ -0,0 +1,50 @@ +{ + "id": "cc03923a-acb0-4c40-ae5a-3d7a9b406ce3", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"queryPullRequestsUnqualifiedHead_stable\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-cc03923a-acb0-4c40-ae5a-3d7a9b406ce3.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:56 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4856", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"9e34ae02c80a426ed34b857b713bfb30\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/268", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D30712:F66E9E:5D74ACC7" + } + }, + "uuid": "cc03923a-acb0-4c40-ae5a-3d7a9b406ce3", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json new file mode 100644 index 0000000000..36edcf03fb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json @@ -0,0 +1,42 @@ +{ + "id": "cfa90ef7-9496-4f77-b239-adf88ad5dd64", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-cfa90ef7-9496-4f77-b239-adf88ad5dd64.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4852", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f937ef67c4c56d9ae1f03ae5ba1e403a\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D307F9:F66F9A:5D74ACC9" + } + }, + "uuid": "cfa90ef7-9496-4f77-b239-adf88ad5dd64", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json new file mode 100644 index 0000000000..9a88abb80f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json @@ -0,0 +1,49 @@ +{ + "id": "08817e59-cbfd-4e89-9e60-707e4ee940e6", + "name": "repos_github-api-test-org_github-api_pulls_268", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/268", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_268-08817e59-cbfd-4e89-9e60-707e4ee940e6.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4851", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"049e282f4491dd6ff498e76ae345eacd\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D30808:F66FBE:5D74ACCA" + } + }, + "uuid": "08817e59-cbfd-4e89-9e60-707e4ee940e6", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json new file mode 100644 index 0000000000..bcca568981 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json @@ -0,0 +1,49 @@ +{ + "id": "b5427c9e-53f5-4301-a757-4c9a349ee97d", + "name": "repos_github-api-test-org_github-api_pulls_269", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/269", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_269-b5427c9e-53f5-4301-a757-4c9a349ee97d.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4850", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"c74d62cfa43b79092c075a2a83e725e6\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D30839:F66FF0:5D74ACCA" + } + }, + "uuid": "b5427c9e-53f5-4301-a757-4c9a349ee97d", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/user-69a2a995-8642-477e-aafe-59a7869f4ae9.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/user-69a2a995-8642-477e-aafe-59a7869f4ae9.json new file mode 100644 index 0000000000..71cf13ec41 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/user-69a2a995-8642-477e-aafe-59a7869f4ae9.json @@ -0,0 +1,43 @@ +{ + "id": "69a2a995-8642-477e-aafe-59a7869f4ae9", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-69a2a995-8642-477e-aafe-59a7869f4ae9.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4859", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF97:15CE:D306E9:F66E67:5D74ACC6" + } + }, + "uuid": "69a2a995-8642-477e-aafe-59a7869f4ae9", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json new file mode 100644 index 0000000000..354145c13a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json new file mode 100644 index 0000000000..354145c13a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json new file mode 100644 index 0000000000..aadba7eaf0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json new file mode 100644 index 0000000000..6e712fa0ac --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json @@ -0,0 +1,91 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271", + "repository_url": "https://api.github.com/repos/github-api-test-org/github-api", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/labels{/name}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/events", + "html_url": "https://github.com/github-api-test-org/github-api/pull/271", + "id": 490720788, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzYz", + "number": 271, + "title": "setAssignee", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "labels": [], + "state": "open", + "locked": false, + "assignee": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 0, + "created_at": "2019-09-08T07:25:04Z", + "updated_at": "2019-09-08T07:25:04Z", + "closed_at": null, + "author_association": "MEMBER", + "pull_request": { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271", + "html_url": "https://github.com/github-api-test-org/github-api/pull/271", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/271.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/271.patch" + }, + "body": "## test", + "closed_by": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json new file mode 100644 index 0000000000..d969a93d32 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271", + "id": 315252363, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzYz", + "html_url": "https://github.com/github-api-test-org/github-api/pull/271", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/271.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/271.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271", + "number": 271, + "state": "open", + "locked": false, + "title": "setAssignee", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:04Z", + "updated_at": "2019-09-08T07:25:04Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:01Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/271" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json new file mode 100644 index 0000000000..0b11a2e3ff --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json @@ -0,0 +1,369 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271", + "id": 315252363, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzYz", + "html_url": "https://github.com/github-api-test-org/github-api/pull/271", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/271.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/271.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271", + "number": 271, + "state": "open", + "locked": false, + "title": "setAssignee", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:04Z", + "updated_at": "2019-09-08T07:25:04Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "2d4f383cd0debf1cb8bb10bb38e198fd541621ab", + "assignee": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + } + ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/271" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json new file mode 100644 index 0000000000..c3f6072d63 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json @@ -0,0 +1,379 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271", + "id": 315252363, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzYz", + "html_url": "https://github.com/github-api-test-org/github-api/pull/271", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/271.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/271.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271", + "number": 271, + "state": "open", + "locked": false, + "title": "setAssignee", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:04Z", + "updated_at": "2019-09-08T07:25:04Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "2d4f383cd0debf1cb8bb10bb38e198fd541621ab", + "assignee": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + } + ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/271" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json new file mode 100644 index 0000000000..1a659f672d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json @@ -0,0 +1,379 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271", + "id": 315252363, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzYz", + "html_url": "https://github.com/github-api-test-org/github-api/pull/271", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/271.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/271.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271", + "number": 271, + "state": "closed", + "locked": false, + "title": "setAssignee", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:25:04Z", + "updated_at": "2019-09-08T07:25:06Z", + "closed_at": "2019-09-08T07:25:06Z", + "merged_at": null, + "merge_commit_sha": "2d4f383cd0debf1cb8bb10bb38e198fd541621ab", + "assignee": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + } + ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "ecec449372b1e8270524a35c1a5aa8fdaf0e6676", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:56Z", + "pushed_at": "2019-09-08T07:25:04Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/271" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/271/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/user-27e10619-a669-4ec6-8270-519114eef6f6.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/user-27e10619-a669-4ec6-8270-519114eef6f6.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/__files/user-27e10619-a669-4ec6-8270-519114eef6f6.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json new file mode 100644 index 0000000000..43cdfc6cb7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json @@ -0,0 +1,43 @@ +{ + "id": "41c140fe-0c07-406f-8a11-c8c4dad3ff91", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-41c140fe-0c07-406f-8a11-c8c4dad3ff91.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4840", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C99500:EB500E:5D74ACCF" + } + }, + "uuid": "41c140fe-0c07-406f-8a11-c8c4dad3ff91", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json new file mode 100644 index 0000000000..f7ce4d4e85 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json @@ -0,0 +1,46 @@ +{ + "id": "6415bdcd-1b83-46fb-99b8-1e93bb21ecc4", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-6415bdcd-1b83-46fb-99b8-1e93bb21ecc4.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4836", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"1ed427629429ded9373deae90c0f49b2\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C9961C:EB5152:5D74ACD1" + } + }, + "uuid": "6415bdcd-1b83-46fb-99b8-1e93bb21ecc4", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json new file mode 100644 index 0000000000..ce5872eed9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json @@ -0,0 +1,45 @@ +{ + "id": "d2df6fea-d463-4b4e-ac13-024bf488bfcf", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-d2df6fea-d463-4b4e-ac13-024bf488bfcf.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4834", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"1ed427629429ded9373deae90c0f49b2\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C99673:EB51A9:5D74ACD1" + } + }, + "uuid": "d2df6fea-d463-4b4e-ac13-024bf488bfcf", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json new file mode 100644 index 0000000000..8179f104b9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json @@ -0,0 +1,46 @@ +{ + "id": "f25bc1c4-0789-481f-bedf-b02bb58709b7", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-f25bc1c4-0789-481f-bedf-b02bb58709b7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4839", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"5bd22dcf2a91e6f4e9b81d328d6c3992\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:56 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C99516:EB502A:5D74ACCF" + } + }, + "uuid": "f25bc1c4-0789-481f-bedf-b02bb58709b7", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json new file mode 100644 index 0000000000..dfc1f6ebb1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json @@ -0,0 +1,49 @@ +{ + "id": "9171d903-c9bb-400b-b09f-a95f1f7d9c03", + "name": "repos_github-api-test-org_github-api_issues_271", + "request": { + "url": "/repos/github-api-test-org/github-api/issues/271", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"assignees\":[\"bitwiseman\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_issues_271-9171d903-c9bb-400b-b09f-a95f1f7d9c03.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4837", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"5d0c81990a41d7d8ce9f498c6ba14b4b\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C995DE:EB50EE:5D74ACD0" + } + }, + "uuid": "9171d903-c9bb-400b-b09f-a95f1f7d9c03", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json new file mode 100644 index 0000000000..fd5c9f2f65 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json @@ -0,0 +1,50 @@ +{ + "id": "8c712317-17a5-4e10-9463-61ef2564a0b7", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"setAssignee\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-8c712317-17a5-4e10-9463-61ef2564a0b7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:04 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4838", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"82fbe7dd1f604b8a2285179b69bd96f5\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/271", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C99546:EB5066:5D74ACCF" + } + }, + "uuid": "8c712317-17a5-4e10-9463-61ef2564a0b7", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json new file mode 100644 index 0000000000..17703db58a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json @@ -0,0 +1,42 @@ +{ + "id": "aee9a7ec-9886-48b9-b8bc-f57480b183ab", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-aee9a7ec-9886-48b9-b8bc-f57480b183ab.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:06 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4833", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f8b61bc4cc6f87ff477e17e820da30c2\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C996A6:EB51CF:5D74ACD1" + } + }, + "uuid": "aee9a7ec-9886-48b9-b8bc-f57480b183ab", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json new file mode 100644 index 0000000000..c45ee4e06b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json @@ -0,0 +1,43 @@ +{ + "id": "844a4111-bda7-4086-affc-96fa7cf053d0", + "name": "repos_github-api-test-org_github-api_pulls_271", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/271", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_271-844a4111-bda7-4086-affc-96fa7cf053d0.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4835", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"b27512dbea32f30d46a33e60cb872907\"", + "Last-Modified": "Sun, 08 Sep 2019 07:25:04 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C9963E:EB5179:5D74ACD1" + } + }, + "uuid": "844a4111-bda7-4086-affc-96fa7cf053d0", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json new file mode 100644 index 0000000000..21ae90364e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json @@ -0,0 +1,49 @@ +{ + "id": "ff9fa198-2c33-4554-826e-5a2ec150d1c9", + "name": "repos_github-api-test-org_github-api_pulls_271", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/271", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_271-ff9fa198-2c33-4554-826e-5a2ec150d1c9.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:06 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4832", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"51caf19019a931068e720631831616ce\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C996C5:EB5211:5D74ACD2" + } + }, + "uuid": "ff9fa198-2c33-4554-826e-5a2ec150d1c9", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/user-27e10619-a669-4ec6-8270-519114eef6f6.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/user-27e10619-a669-4ec6-8270-519114eef6f6.json new file mode 100644 index 0000000000..c34f1ab369 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setAssignee/mappings/user-27e10619-a669-4ec6-8270-519114eef6f6.json @@ -0,0 +1,43 @@ +{ + "id": "27e10619-a669-4ec6-8270-519114eef6f6", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-27e10619-a669-4ec6-8270-519114eef6f6.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:25:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4841", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF9F:80B3:C994DF:EB4FEB:5D74ACCF" + } + }, + "uuid": "27e10619-a669-4ec6-8270-519114eef6f6", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json new file mode 100644 index 0000000000..d329ee1c9a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json new file mode 100644 index 0000000000..efa42b4e23 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json new file mode 100644 index 0000000000..efa42b4e23 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json new file mode 100644 index 0000000000..8f31f74b29 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json @@ -0,0 +1,60 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264", + "repository_url": "https://api.github.com/repos/github-api-test-org/github-api", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/labels{/name}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/events", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "id": 490720743, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzMw", + "number": 264, + "title": "setLabels", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 1541702441, + "node_id": "MDU6TGFiZWwxNTQxNzAyNDQx", + "url": "https://api.github.com/repos/github-api-test-org/github-api/labels/setLabels_label_name", + "name": "setLabels_label_name", + "color": "ededed", + "default": false + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2019-09-08T07:24:34Z", + "updated_at": "2019-09-08T07:24:35Z", + "closed_at": null, + "author_association": "MEMBER", + "pull_request": { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/264.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/264.patch" + }, + "body": "## test", + "closed_by": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json new file mode 100644 index 0000000000..8f31f74b29 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json @@ -0,0 +1,60 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264", + "repository_url": "https://api.github.com/repos/github-api-test-org/github-api", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/labels{/name}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/events", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "id": 490720743, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzMw", + "number": 264, + "title": "setLabels", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 1541702441, + "node_id": "MDU6TGFiZWwxNTQxNzAyNDQx", + "url": "https://api.github.com/repos/github-api-test-org/github-api/labels/setLabels_label_name", + "name": "setLabels_label_name", + "color": "ededed", + "default": false + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2019-09-08T07:24:34Z", + "updated_at": "2019-09-08T07:24:35Z", + "closed_at": null, + "author_association": "MEMBER", + "pull_request": { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/264.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/264.patch" + }, + "body": "## test", + "closed_by": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json new file mode 100644 index 0000000000..75d6f7ebe7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "id": 315252330, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzMw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/264.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/264.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264", + "number": 264, + "state": "open", + "locked": false, + "title": "setLabels", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:34Z", + "updated_at": "2019-09-08T07:24:34Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:30Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/264" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json new file mode 100644 index 0000000000..ccf7136bd5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json @@ -0,0 +1,338 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "id": 315252330, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzMw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/264.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/264.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264", + "number": 264, + "state": "open", + "locked": false, + "title": "setLabels", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:34Z", + "updated_at": "2019-09-08T07:24:35Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "d1944c8ee483c5a4ebb61c7c4811e7b6c5d80186", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [ + { + "id": 1541702441, + "node_id": "MDU6TGFiZWwxNTQxNzAyNDQx", + "url": "https://api.github.com/repos/github-api-test-org/github-api/labels/setLabels_label_name", + "name": "setLabels_label_name", + "color": "ededed", + "default": false + } + ], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/264" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json new file mode 100644 index 0000000000..9fe76fd0ff --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json @@ -0,0 +1,348 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "id": 315252330, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzMw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/264.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/264.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264", + "number": 264, + "state": "open", + "locked": false, + "title": "setLabels", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:34Z", + "updated_at": "2019-09-08T07:24:35Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "d1944c8ee483c5a4ebb61c7c4811e7b6c5d80186", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [ + { + "id": 1541702441, + "node_id": "MDU6TGFiZWwxNTQxNzAyNDQx", + "url": "https://api.github.com/repos/github-api-test-org/github-api/labels/setLabels_label_name", + "name": "setLabels_label_name", + "color": "ededed", + "default": false + } + ], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/264" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json new file mode 100644 index 0000000000..7c87a56edc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json @@ -0,0 +1,348 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "id": 315252330, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzMw", + "html_url": "https://github.com/github-api-test-org/github-api/pull/264", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/264.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/264.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264", + "number": 264, + "state": "closed", + "locked": false, + "title": "setLabels", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test", + "created_at": "2019-09-08T07:24:34Z", + "updated_at": "2019-09-08T07:24:36Z", + "closed_at": "2019-09-08T07:24:36Z", + "merged_at": null, + "merge_commit_sha": "d1944c8ee483c5a4ebb61c7c4811e7b6c5d80186", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [ + { + "id": 1541702441, + "node_id": "MDU6TGFiZWwxNTQxNzAyNDQx", + "url": "https://api.github.com/repos/github-api-test-org/github-api/labels/setLabels_label_name", + "name": "setLabels_label_name", + "color": "ededed", + "default": false + } + ], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "head": { + "label": "github-api-test-org:test/stable", + "ref": "test/stable", + "sha": "2d29c787b46ce61b98a1c13e05e21ebc21f49dbf", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:35Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/264" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/264/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2d29c787b46ce61b98a1c13e05e21ebc21f49dbf" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 1, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/__files/user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json new file mode 100644 index 0000000000..04ea5b9575 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json @@ -0,0 +1,43 @@ +{ + "id": "04e11278-2441-4a15-9491-102d5e142409", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-04e11278-2441-4a15-9491-102d5e142409.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4908", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD3D1:586783:5D74ACB1" + } + }, + "uuid": "04e11278-2441-4a15-9491-102d5e142409", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json new file mode 100644 index 0000000000..cc7d34fbeb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json @@ -0,0 +1,46 @@ +{ + "id": "1b1c6847-2cda-47ec-a736-79672a3a7abe", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-1b1c6847-2cda-47ec-a736-79672a3a7abe.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:34 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4907", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"63f427b5bc81943feca4792461202c49\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD3DA:58678D:5D74ACB1" + } + }, + "uuid": "1b1c6847-2cda-47ec-a736-79672a3a7abe", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json new file mode 100644 index 0000000000..1c133ae798 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json @@ -0,0 +1,46 @@ +{ + "id": "4e2383e2-109f-4ba8-910a-e6fa057728fe", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-4e2383e2-109f-4ba8-910a-e6fa057728fe.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:35 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4904", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"4f1fa06be9bf4b185661c257f4361c24\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD413:5867CB:5D74ACB3" + } + }, + "uuid": "4e2383e2-109f-4ba8-910a-e6fa057728fe", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json new file mode 100644 index 0000000000..a82acbe23a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json @@ -0,0 +1,45 @@ +{ + "id": "caba7863-7e0a-48ed-b54d-e6121b595280", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-caba7863-7e0a-48ed-b54d-e6121b595280.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:36 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4901", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"4f1fa06be9bf4b185661c257f4361c24\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD437:5867F5:5D74ACB4" + } + }, + "uuid": "caba7863-7e0a-48ed-b54d-e6121b595280", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json new file mode 100644 index 0000000000..9291422afe --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json @@ -0,0 +1,43 @@ +{ + "id": "1421d6dd-ddf5-44ca-a50e-03848f69af20", + "name": "repos_github-api-test-org_github-api_issues_264", + "request": { + "url": "/repos/github-api-test-org/github-api/issues/264", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_issues_264-1421d6dd-ddf5-44ca-a50e-03848f69af20.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:36 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4902", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d3cd42d3a7bdf3d2c3a2b4a08bf23ce5\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:35 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD434:5867F1:5D74ACB4" + } + }, + "uuid": "1421d6dd-ddf5-44ca-a50e-03848f69af20", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json new file mode 100644 index 0000000000..02bc31baa8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json @@ -0,0 +1,49 @@ +{ + "id": "52c0826c-b7a4-47a7-a202-505128247a5e", + "name": "repos_github-api-test-org_github-api_issues_264", + "request": { + "url": "/repos/github-api-test-org/github-api/issues/264", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"labels\":[\"setLabels_label_name\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_issues_264-52c0826c-b7a4-47a7-a202-505128247a5e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:35 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4905", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d3cd42d3a7bdf3d2c3a2b4a08bf23ce5\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD404:5867BB:5D74ACB2" + } + }, + "uuid": "52c0826c-b7a4-47a7-a202-505128247a5e", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json new file mode 100644 index 0000000000..1224ef5951 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json @@ -0,0 +1,50 @@ +{ + "id": "7af49b84-1732-4a74-b123-676769146f83", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/stable\",\"maintainer_can_modify\":true,\"title\":\"setLabels\",\"body\":\"## test\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-7af49b84-1732-4a74-b123-676769146f83.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:34 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4906", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"dce2e4378de06893e7bf5705f5da6c70\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/264", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD3E5:58679A:5D74ACB2" + } + }, + "uuid": "7af49b84-1732-4a74-b123-676769146f83", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json new file mode 100644 index 0000000000..f904ab7307 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json @@ -0,0 +1,42 @@ +{ + "id": "bd497d3d-3712-4ea7-9e01-2810bf2b83c8", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-bd497d3d-3712-4ea7-9e01-2810bf2b83c8.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:36 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4900", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"cf2cb7d3c66934d3bc296b9dc3d1c269\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD43D:5867FB:5D74ACB4" + } + }, + "uuid": "bd497d3d-3712-4ea7-9e01-2810bf2b83c8", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json new file mode 100644 index 0000000000..bbe4f96246 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json @@ -0,0 +1,43 @@ +{ + "id": "4627827c-55fb-4f0c-850d-23fd6b35b4f7", + "name": "repos_github-api-test-org_github-api_pulls_264", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/264", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_264-4627827c-55fb-4f0c-850d-23fd6b35b4f7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:36 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4903", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"c720faab41efaae1e5c8573973fcf333\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:35 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD42B:5867E7:5D74ACB3" + } + }, + "uuid": "4627827c-55fb-4f0c-850d-23fd6b35b4f7", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json new file mode 100644 index 0000000000..3954ecea84 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json @@ -0,0 +1,49 @@ +{ + "id": "cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4", + "name": "repos_github-api-test-org_github-api_pulls_264", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/264", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_pulls_264-cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:37 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4899", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"fa492d17864867ff70f0eda2ba2e7c93\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD444:586801:5D74ACB4" + } + }, + "uuid": "cfd2cf1d-d98d-4374-a0fe-4d80a217e9d4", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json new file mode 100644 index 0000000000..b65ab207b8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/setLabels/mappings/user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json @@ -0,0 +1,43 @@ +{ + "id": "946afcfe-31ac-4f28-9d66-5f45ffbb3a7c", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-946afcfe-31ac-4f28-9d66-5f45ffbb3a7c.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4909", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF88:40BB:4AD3CA:58677C:5D74ACB1" + } + }, + "uuid": "946afcfe-31ac-4f28-9d66-5f45ffbb3a7c", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json new file mode 100644 index 0000000000..c25e45f5c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:48Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json new file mode 100644 index 0000000000..abb5e892c6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:54Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json new file mode 100644 index 0000000000..a7a0f67744 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json new file mode 100644 index 0000000000..30aa48ccb5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:49Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json new file mode 100644 index 0000000000..a7a0f67744 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:44Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json new file mode 100644 index 0000000000..c5f810de98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "squashMerge", + "path": "squashMerge", + "sha": "58a8e2e48db272555de87ee74d36770d6172845b", + "size": 11, + "url": "https://api.github.com/repos/github-api-test-org/github-api/contents/squashMerge?ref=test/squashMerge", + "html_url": "https://github.com/github-api-test-org/github-api/blob/test/squashMerge/squashMerge", + "git_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs/58a8e2e48db272555de87ee74d36770d6172845b", + "download_url": "https://raw.githubusercontent.com/github-api-test-org/github-api/test/squashMerge/squashMerge", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/github-api-test-org/github-api/contents/squashMerge?ref=test/squashMerge", + "git": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs/58a8e2e48db272555de87ee74d36770d6172845b", + "html": "https://github.com/github-api-test-org/github-api/blob/test/squashMerge/squashMerge" + } + }, + "commit": { + "sha": "4f8759011021d7e954334e8e887c2e485b51f57a", + "node_id": "MDY6Q29tbWl0MjA2ODg4MjAxOjRmODc1OTAxMTAyMWQ3ZTk1NDMzNGU4ZTg4N2MyZTQ4NWI1MWY1N2E=", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/4f8759011021d7e954334e8e887c2e485b51f57a", + "html_url": "https://github.com/github-api-test-org/github-api/commit/4f8759011021d7e954334e8e887c2e485b51f57a", + "author": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:49Z" + }, + "committer": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:49Z" + }, + "tree": { + "sha": "2d70711de9ad39070f370221ef17943a5f4490d0", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees/2d70711de9ad39070f370221ef17943a5f4490d0" + }, + "message": "squashMerge", + "parents": [ + { + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/912e2176a00e60e02196737e0ae4c218a14b5dcb", + "html_url": "https://github.com/github-api-test-org/github-api/commit/912e2176a00e60e02196737e0ae4c218a14b5dcb" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json new file mode 100644 index 0000000000..4dcdf6a7d1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test/squashMerge", + "node_id": "MDM6UmVmMjA2ODg4MjAxOnRlc3Qvc3F1YXNoTWVyZ2U=", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs/heads/test/squashMerge", + "object": { + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "type": "commit", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/912e2176a00e60e02196737e0ae4c218a14b5dcb" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json new file mode 100644 index 0000000000..51f91ef861 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/master", + "node_id": "MDM6UmVmMjA2ODg4MjAxOm1hc3Rlcg==", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs/heads/master", + "object": { + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "type": "commit", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/912e2176a00e60e02196737e0ae4c218a14b5dcb" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json new file mode 100644 index 0000000000..d86208f218 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267", + "id": 315252343, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzQz", + "html_url": "https://github.com/github-api-test-org/github-api/pull/267", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/267.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/267.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/267", + "number": 267, + "state": "open", + "locked": false, + "title": "squashMerge", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test squash", + "created_at": "2019-09-08T07:24:51Z", + "updated_at": "2019-09-08T07:24:51Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/267/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/4f8759011021d7e954334e8e887c2e485b51f57a", + "head": { + "label": "github-api-test-org:test/squashMerge", + "ref": "test/squashMerge", + "sha": "4f8759011021d7e954334e8e887c2e485b51f57a", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:49Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "912e2176a00e60e02196737e0ae4c218a14b5dcb", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:24:28Z", + "pushed_at": "2019-09-08T07:24:49Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/267" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/267" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/267/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/4f8759011021d7e954334e8e887c2e485b51f57a" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/user-b37e46bb-87be-4613-88c7-dcba8c693074.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/user-b37e46bb-87be-4613-88c7-dcba8c693074.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/__files/user-b37e46bb-87be-4613-88c7-dcba8c693074.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json new file mode 100644 index 0000000000..342e5ff4c0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json @@ -0,0 +1,43 @@ +{ + "id": "b35d6e1e-890c-4df6-9935-5c2394a76916", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-b35d6e1e-890c-4df6-9935-5c2394a76916.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:47 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4871", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886A8:76EF44:5D74ACBF" + } + }, + "uuid": "b35d6e1e-890c-4df6-9935-5c2394a76916", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json new file mode 100644 index 0000000000..d34024742c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json @@ -0,0 +1,46 @@ +{ + "id": "3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:49 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4866", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"93c7abff2744c89fff44602d06c4a1e9\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886E5:76EF8D:5D74ACC0" + } + }, + "uuid": "3bd5c32a-06aa-4f2b-9055-9b9ff1dd9618", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json new file mode 100644 index 0000000000..c430d404fd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json @@ -0,0 +1,45 @@ +{ + "id": "5f283241-c895-49c8-92a5-f578369b853b", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-5f283241-c895-49c8-92a5-f578369b853b.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:54 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4861", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"17b3b848c656ff5666591ae88958ffa7\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:688802:76F0CB:5D74ACC6" + } + }, + "uuid": "5f283241-c895-49c8-92a5-f578369b853b", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-5", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json new file mode 100644 index 0000000000..3e60e2b99e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json @@ -0,0 +1,46 @@ +{ + "id": "6395c5e1-f2ec-4642-923d-9aebee203afe", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-6395c5e1-f2ec-4642-923d-9aebee203afe.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4868", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"05b645fd998415b5b1e1265dd27dbf29\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886C6:76EF6A:5D74ACC0" + } + }, + "uuid": "6395c5e1-f2ec-4642-923d-9aebee203afe", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json new file mode 100644 index 0000000000..154c205fcf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json @@ -0,0 +1,46 @@ +{ + "id": "7331ed24-bb2d-46a6-a842-986f52a91a5e", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-7331ed24-bb2d-46a6-a842-986f52a91a5e.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:51 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4864", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3bfeb5940fea2c97485a04d0885cbb23\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:688753:76EFC4:5D74ACC2" + } + }, + "uuid": "7331ed24-bb2d-46a6-a842-986f52a91a5e", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-5", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json new file mode 100644 index 0000000000..672231aab2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json @@ -0,0 +1,46 @@ +{ + "id": "957364c8-87d8-4b0d-aad4-396ad3fed253", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-957364c8-87d8-4b0d-aad4-396ad3fed253.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:47 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4870", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"05b645fd998415b5b1e1265dd27dbf29\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886B0:76EF4D:5D74ACBF" + } + }, + "uuid": "957364c8-87d8-4b0d-aad4-396ad3fed253", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json new file mode 100644 index 0000000000..2b83ce4201 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json @@ -0,0 +1,49 @@ +{ + "id": "04ae8436-0239-47f1-9e0a-4c2987ca1378", + "name": "repos_github-api-test-org_github-api_contents_squashmerge", + "request": { + "url": "/repos/github-api-test-org/github-api/contents/squashMerge", + "method": "PUT", + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"squashMerge\",\"message\":\"squashMerge\",\"branch\":\"test/squashMerge\",\"content\":\"c3F1YXNoTWVyZ2U=\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_contents_squashmerge-04ae8436-0239-47f1-9e0a-4c2987ca1378.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4865", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"55d3ba9450e30b1533d3b2630cafe7ba\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886F0:76EF9A:5D74ACC1" + } + }, + "uuid": "04ae8436-0239-47f1-9e0a-4c2987ca1378", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json new file mode 100644 index 0000000000..c8d24f6458 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json @@ -0,0 +1,50 @@ +{ + "id": "9d910f89-f71e-441d-8781-cba77a54dd08", + "name": "repos_github-api-test-org_github-api_git_refs", + "request": { + "url": "/repos/github-api-test-org/github-api/git/refs", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test/squashMerge\",\"sha\":\"912e2176a00e60e02196737e0ae4c218a14b5dcb\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_git_refs-9d910f89-f71e-441d-8781-cba77a54dd08.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4867", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"b87362620c8682d8c473abd414562140\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/git/refs/heads/test/squashMerge", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886CD:76EF71:5D74ACC0" + } + }, + "uuid": "9d910f89-f71e-441d-8781-cba77a54dd08", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json new file mode 100644 index 0000000000..9879524f54 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json @@ -0,0 +1,44 @@ +{ + "id": "7bfa9315-c036-44af-bc3c-1e639325a8fe", + "name": "repos_github-api-test-org_github-api_git_refs_heads_master", + "request": { + "url": "/repos/github-api-test-org/github-api/git/refs/heads/master", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_git_refs_heads_master-7bfa9315-c036-44af-bc3c-1e639325a8fe.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4869", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"338be473b06d88295f3203e460eb7cc2\"", + "Last-Modified": "Sun, 08 Sep 2019 07:24:28 GMT", + "X-Poll-Interval": "300", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886BC:76EF5F:5D74ACBF" + } + }, + "uuid": "7bfa9315-c036-44af-bc3c-1e639325a8fe", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls-1f52941d-080a-42e2-a673-f355893794c0.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls-1f52941d-080a-42e2-a673-f355893794c0.json new file mode 100644 index 0000000000..3536e04124 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls-1f52941d-080a-42e2-a673-f355893794c0.json @@ -0,0 +1,42 @@ +{ + "id": "1f52941d-080a-42e2-a673-f355893794c0", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:54 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4860", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:68880E:76F0D7:5D74ACC6" + } + }, + "uuid": "1f52941d-080a-42e2-a673-f355893794c0", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json new file mode 100644 index 0000000000..9744ac6c6f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json @@ -0,0 +1,50 @@ +{ + "id": "d149e4dc-e134-4376-8b93-ce784a868247", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/squashMerge\",\"maintainer_can_modify\":true,\"title\":\"squashMerge\",\"body\":\"## test squash\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-d149e4dc-e134-4376-8b93-ce784a868247.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:52 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4863", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"2c03a2b8b61f0879aa89357491990eb9\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/267", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:68876F:76F016:5D74ACC3" + } + }, + "uuid": "d149e4dc-e134-4376-8b93-ce784a868247", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls_267_merge-504d0b8b-20d6-4ca5-8a15-de74a7e92143.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls_267_merge-504d0b8b-20d6-4ca5-8a15-de74a7e92143.json new file mode 100644 index 0000000000..3ba3a80da6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/repos_github-api-test-org_github-api_pulls_267_merge-504d0b8b-20d6-4ca5-8a15-de74a7e92143.json @@ -0,0 +1,49 @@ +{ + "id": "504d0b8b-20d6-4ca5-8a15-de74a7e92143", + "name": "repos_github-api-test-org_github-api_pulls_267_merge", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/267/merge", + "method": "PUT", + "bodyPatterns": [ + { + "equalToJson": "{\"commit_message\":\"squash merge\",\"merge_method\":\"squash\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "body": "{\"sha\":\"ecec449372b1e8270524a35c1a5aa8fdaf0e6676\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:54 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4862", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"be61ee8096dc9be577c5f798080e7a40\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6887CF:76F050:5D74ACC4" + } + }, + "uuid": "504d0b8b-20d6-4ca5-8a15-de74a7e92143", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/user-b37e46bb-87be-4613-88c7-dcba8c693074.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/user-b37e46bb-87be-4613-88c7-dcba8c693074.json new file mode 100644 index 0000000000..d4e0d50dd1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/squashMerge/mappings/user-b37e46bb-87be-4613-88c7-dcba8c693074.json @@ -0,0 +1,43 @@ +{ + "id": "b37e46bb-87be-4613-88c7-dcba8c693074", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-b37e46bb-87be-4613-88c7-dcba8c693074.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:47 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4872", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF94:9A2F:6886A1:76EF3A:5D74ACBF" + } + }, + "uuid": "b37e46bb-87be-4613-88c7-dcba8c693074", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json new file mode 100644 index 0000000000..61547e3d98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json @@ -0,0 +1,41 @@ +{ + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/github-api-test-org", + "repos_url": "https://api.github.com/orgs/github-api-test-org/repos", + "events_url": "https://api.github.com/orgs/github-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/github-api-test-org/issues", + "members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json new file mode 100644 index 0000000000..58183475c8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:22Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json new file mode 100644 index 0000000000..c26c29ad64 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:19Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json new file mode 100644 index 0000000000..c874ac2f7a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json new file mode 100644 index 0000000000..c874ac2f7a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:16Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json new file mode 100644 index 0000000000..0285bdf2b1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:26Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json new file mode 100644 index 0000000000..65db4ab916 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:20Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-07T00:07:14Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 551, + "default_branch": "master" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json new file mode 100644 index 0000000000..498ffbc3c7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "updateContentSquashMerge", + "path": "updateContentSquashMerge", + "sha": "ad7418321ba08809e4e25ad06bd48d3968bb3819", + "size": 24, + "url": "https://api.github.com/repos/github-api-test-org/github-api/contents/updateContentSquashMerge?ref=test/updateContentSquashMerge", + "html_url": "https://github.com/github-api-test-org/github-api/blob/test/updateContentSquashMerge/updateContentSquashMerge", + "git_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs/ad7418321ba08809e4e25ad06bd48d3968bb3819", + "download_url": "https://raw.githubusercontent.com/github-api-test-org/github-api/test/updateContentSquashMerge/updateContentSquashMerge", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/github-api-test-org/github-api/contents/updateContentSquashMerge?ref=test/updateContentSquashMerge", + "git": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs/ad7418321ba08809e4e25ad06bd48d3968bb3819", + "html": "https://github.com/github-api-test-org/github-api/blob/test/updateContentSquashMerge/updateContentSquashMerge" + } + }, + "commit": { + "sha": "0b60a9b8968ff83d874111635815b59a9608d1fa", + "node_id": "MDY6Q29tbWl0MjA2ODg4MjAxOjBiNjBhOWI4OTY4ZmY4M2Q4NzQxMTE2MzU4MTViNTlhOTYwOGQxZmE=", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/0b60a9b8968ff83d874111635815b59a9608d1fa", + "html_url": "https://github.com/github-api-test-org/github-api/commit/0b60a9b8968ff83d874111635815b59a9608d1fa", + "author": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:19Z" + }, + "committer": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:19Z" + }, + "tree": { + "sha": "86e133aca22041681511b846909e1c8832127b9d", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees/86e133aca22041681511b846909e1c8832127b9d" + }, + "message": "updateContentSquashMerge", + "parents": [ + { + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "html_url": "https://github.com/github-api-test-org/github-api/commit/3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json new file mode 100644 index 0000000000..0e6cd31584 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "updateContentSquashMerge", + "path": "updateContentSquashMerge", + "sha": "58683e978fd6342744da9933a8e77923cf3ee1a8", + "size": 48, + "url": "https://api.github.com/repos/github-api-test-org/github-api/contents/updateContentSquashMerge?ref=test/updateContentSquashMerge", + "html_url": "https://github.com/github-api-test-org/github-api/blob/test/updateContentSquashMerge/updateContentSquashMerge", + "git_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs/58683e978fd6342744da9933a8e77923cf3ee1a8", + "download_url": "https://raw.githubusercontent.com/github-api-test-org/github-api/test/updateContentSquashMerge/updateContentSquashMerge", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/github-api-test-org/github-api/contents/updateContentSquashMerge?ref=test/updateContentSquashMerge", + "git": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs/58683e978fd6342744da9933a8e77923cf3ee1a8", + "html": "https://github.com/github-api-test-org/github-api/blob/test/updateContentSquashMerge/updateContentSquashMerge" + } + }, + "commit": { + "sha": "2780805b621ad6b283fbfb7d0c5dd64c4314b2b9", + "node_id": "MDY6Q29tbWl0MjA2ODg4MjAxOjI3ODA4MDViNjIxYWQ2YjI4M2ZiZmI3ZDBjNWRkNjRjNDMxNGIyYjk=", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/2780805b621ad6b283fbfb7d0c5dd64c4314b2b9", + "html_url": "https://github.com/github-api-test-org/github-api/commit/2780805b621ad6b283fbfb7d0c5dd64c4314b2b9", + "author": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:21Z" + }, + "committer": { + "name": "Liam Newman", + "email": "bitwiseman@gmail.com", + "date": "2019-09-08T07:24:21Z" + }, + "tree": { + "sha": "3cc8e9b6c068cbaa8e190e5df58ce51ea82dc3c4", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees/3cc8e9b6c068cbaa8e190e5df58ce51ea82dc3c4" + }, + "message": "updateContentSquashMerge", + "parents": [ + { + "sha": "0b60a9b8968ff83d874111635815b59a9608d1fa", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/0b60a9b8968ff83d874111635815b59a9608d1fa", + "html_url": "https://github.com/github-api-test-org/github-api/commit/0b60a9b8968ff83d874111635815b59a9608d1fa" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json new file mode 100644 index 0000000000..c30e880e49 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test/updateContentSquashMerge", + "node_id": "MDM6UmVmMjA2ODg4MjAxOnRlc3QvdXBkYXRlQ29udGVudFNxdWFzaE1lcmdl", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs/heads/test/updateContentSquashMerge", + "object": { + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "type": "commit", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json new file mode 100644 index 0000000000..c80084fd4f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/master", + "node_id": "MDM6UmVmMjA2ODg4MjAxOm1hc3Rlcg==", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs/heads/master", + "object": { + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "type": "commit", + "url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits/3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json new file mode 100644 index 0000000000..bb5eca6af1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json @@ -0,0 +1,339 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261", + "id": 315252319, + "node_id": "MDExOlB1bGxSZXF1ZXN0MzE1MjUyMzE5", + "html_url": "https://github.com/github-api-test-org/github-api/pull/261", + "diff_url": "https://github.com/github-api-test-org/github-api/pull/261.diff", + "patch_url": "https://github.com/github-api-test-org/github-api/pull/261.patch", + "issue_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/261", + "number": 261, + "state": "open", + "locked": false, + "title": "updateContentSquashMerge", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "body": "## test squash", + "created_at": "2019-09-08T07:24:23Z", + "updated_at": "2019-09-08T07:24:23Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261/commits", + "review_comments_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261/comments", + "review_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/261/comments", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2780805b621ad6b283fbfb7d0c5dd64c4314b2b9", + "head": { + "label": "github-api-test-org:test/updateContentSquashMerge", + "ref": "test/updateContentSquashMerge", + "sha": "2780805b621ad6b283fbfb7d0c5dd64c4314b2b9", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:22Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "github-api-test-org:master", + "ref": "master", + "sha": "3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", + "user": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "github-api-test-org/github-api", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/github-api-test-org/github-api", + "forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-08T07:21:20Z", + "pushed_at": "2019-09-08T07:24:22Z", + "git_url": "git://github.com/github-api-test-org/github-api.git", + "ssh_url": "git@github.com:github-api-test-org/github-api.git", + "clone_url": "https://github.com/github-api-test-org/github-api.git", + "svn_url": "https://github.com/github-api-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261" + }, + "html": { + "href": "https://github.com/github-api-test-org/github-api/pull/261" + }, + "issue": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/261" + }, + "comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/issues/261/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/github-api-test-org/github-api/statuses/2780805b621ad6b283fbfb7d0c5dd64c4314b2b9" + } + }, + "author_association": "MEMBER", + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 2, + "additions": 1, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/__files/user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json new file mode 100644 index 0000000000..961d8c5495 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json @@ -0,0 +1,43 @@ +{ + "id": "ad1f5840-8218-409f-a4da-7f3533b80a39", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-ad1f5840-8218-409f-a4da-7f3533b80a39.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA74D4:C68A83:5D74ACA2" + } + }, + "uuid": "ad1f5840-8218-409f-a4da-7f3533b80a39", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json new file mode 100644 index 0000000000..5247711894 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json @@ -0,0 +1,46 @@ +{ + "id": "2621291f-e181-41b0-98ad-3caf5f4fcf63", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-2621291f-e181-41b0-98ad-3caf5f4fcf63.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:22 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4934", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"eb0afb4590860dbc9e10e4a971fbf9b0\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA7665:C68C2C:5D74ACA6" + } + }, + "uuid": "2621291f-e181-41b0-98ad-3caf5f4fcf63", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-5", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-6", + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json new file mode 100644 index 0000000000..878ffcc16a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json @@ -0,0 +1,46 @@ +{ + "id": "3baea02b-9467-4f17-8b8c-369bd4eca9e2", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-3baea02b-9467-4f17-8b8c-369bd4eca9e2.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:19 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4938", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7cc3b675d9786125067481500fd9f8d4\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA755F:C68B0E:5D74ACA3" + } + }, + "uuid": "3baea02b-9467-4f17-8b8c-369bd4eca9e2", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json new file mode 100644 index 0000000000..7f410cd832 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json @@ -0,0 +1,46 @@ +{ + "id": "5e4301dc-40ac-40eb-8424-8ac1bf7a8861", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-5e4301dc-40ac-40eb-8424-8ac1bf7a8861.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4942", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"fbfab4b5eab59d5ca9190cb9af741e11\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA74E8:C68A95:5D74ACA2" + } + }, + "uuid": "5e4301dc-40ac-40eb-8424-8ac1bf7a8861", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json new file mode 100644 index 0000000000..685a8d4a55 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json @@ -0,0 +1,46 @@ +{ + "id": "620a6cec-3b31-4ac7-94be-d162928d0e11", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-620a6cec-3b31-4ac7-94be-d162928d0e11.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4940", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"fbfab4b5eab59d5ca9190cb9af741e11\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA750B:C68ABE:5D74ACA2" + } + }, + "uuid": "620a6cec-3b31-4ac7-94be-d162928d0e11", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-2", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-3", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json new file mode 100644 index 0000000000..dbf0421654 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json @@ -0,0 +1,45 @@ +{ + "id": "ab64951f-76cf-4bcb-a38a-497717b29f96", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-ab64951f-76cf-4bcb-a38a-497717b29f96.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:26 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4931", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"a779b2e13990c43925dacc49a260a3c5\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA776E:C68D54:5D74ACAA" + } + }, + "uuid": "ab64951f-76cf-4bcb-a38a-497717b29f96", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-6", + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json new file mode 100644 index 0000000000..cd8990c387 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json @@ -0,0 +1,46 @@ +{ + "id": "ea77125d-4094-4cd9-bfbe-da1696813034", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-ea77125d-4094-4cd9-bfbe-da1696813034.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:21 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4936", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"476689c50d919384d02a3d812284c8cd\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA760B:C68B74:5D74ACA4" + } + }, + "uuid": "ea77125d-4094-4cd9-bfbe-da1696813034", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-github-api", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-github-api-4", + "newScenarioState": "scenario-1-repos-github-api-test-org-github-api-5", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json new file mode 100644 index 0000000000..e7bbfdefd4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json @@ -0,0 +1,49 @@ +{ + "id": "1d6973ab-2bb2-4661-a449-6a3baf0da673", + "name": "repos_github-api-test-org_github-api_contents_updatecontentsquashmerge", + "request": { + "url": "/repos/github-api-test-org/github-api/contents/updateContentSquashMerge", + "method": "PUT", + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"updateContentSquashMerge\",\"message\":\"updateContentSquashMerge\",\"branch\":\"test/updateContentSquashMerge\",\"content\":\"dXBkYXRlQ29udGVudFNxdWFzaE1lcmdl\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-1d6973ab-2bb2-4661-a449-6a3baf0da673.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:20 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4937", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ce670aee18f964bc760bdacc60d1a31f\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA756E:C68B2F:5D74ACA3" + } + }, + "uuid": "1d6973ab-2bb2-4661-a449-6a3baf0da673", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json new file mode 100644 index 0000000000..627cee2656 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json @@ -0,0 +1,49 @@ +{ + "id": "70ad84cc-ff4b-4567-95cd-eed864ce2fb3", + "name": "repos_github-api-test-org_github-api_contents_updatecontentsquashmerge", + "request": { + "url": "/repos/github-api-test-org/github-api/contents/updateContentSquashMerge", + "method": "PUT", + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"updateContentSquashMerge\",\"message\":\"updateContentSquashMerge\",\"branch\":\"test/updateContentSquashMerge\",\"sha\":\"ad7418321ba08809e4e25ad06bd48d3968bb3819\",\"content\":\"dXBkYXRlQ29udGVudFNxdWFzaE1lcmdldXBkYXRlQ29udGVudFNxdWFzaE1lcmdl\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_contents_updatecontentsquashmerge-70ad84cc-ff4b-4567-95cd-eed864ce2fb3.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:22 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4935", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"b2c60c5c4932d8f77563194675552446\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA7621:C68BEC:5D74ACA5" + } + }, + "uuid": "70ad84cc-ff4b-4567-95cd-eed864ce2fb3", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json new file mode 100644 index 0000000000..cca0beb868 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json @@ -0,0 +1,50 @@ +{ + "id": "778d6679-3928-4f4c-beda-b8f1ae11aac3", + "name": "repos_github-api-test-org_github-api_git_refs", + "request": { + "url": "/repos/github-api-test-org/github-api/git/refs", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test/updateContentSquashMerge\",\"sha\":\"3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_git_refs-778d6679-3928-4f4c-beda-b8f1ae11aac3.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:19 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4939", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ef1495292577b64a037f529dcaf2232b\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/git/refs/heads/test/updateContentSquashMerge", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA7521:C68AD5:5D74ACA2" + } + }, + "uuid": "778d6679-3928-4f4c-beda-b8f1ae11aac3", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json new file mode 100644 index 0000000000..ccc5710744 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json @@ -0,0 +1,44 @@ +{ + "id": "fa77be60-4286-4610-bff6-3ab0bac74b1f", + "name": "repos_github-api-test-org_github-api_git_refs_heads_master", + "request": { + "url": "/repos/github-api-test-org/github-api/git/refs/heads/master", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api_git_refs_heads_master-fa77be60-4286-4610-bff6-3ab0bac74b1f.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4941", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"76290473b9107936edcf4ad2becf1f34\"", + "Last-Modified": "Sun, 08 Sep 2019 07:21:20 GMT", + "X-Poll-Interval": "300", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA74FC:C68AAC:5D74ACA2" + } + }, + "uuid": "fa77be60-4286-4610-bff6-3ab0bac74b1f", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls-ac16f488-4d67-4916-bb02-7c7d8d70494a.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls-ac16f488-4d67-4916-bb02-7c7d8d70494a.json new file mode 100644 index 0000000000..69198f058a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls-ac16f488-4d67-4916-bb02-7c7d8d70494a.json @@ -0,0 +1,42 @@ +{ + "id": "ac16f488-4d67-4916-bb02-7c7d8d70494a", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls?state=open", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:27 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4930", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA7795:C68D79:5D74ACAA" + } + }, + "uuid": "ac16f488-4d67-4916-bb02-7c7d8d70494a", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json new file mode 100644 index 0000000000..2adbc28a24 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json @@ -0,0 +1,50 @@ +{ + "id": "c55f0814-cb1e-4b41-a74d-e94e3eb0e843", + "name": "repos_github-api-test-org_github-api_pulls", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"test/updateContentSquashMerge\",\"maintainer_can_modify\":true,\"title\":\"updateContentSquashMerge\",\"body\":\"## test squash\",\"base\":\"master\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_github-api_pulls-c55f0814-cb1e-4b41-a74d-e94e3eb0e843.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:23 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4933", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"74632cb04927ace97b48d3e7c601dc33\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/github-api/pulls/261", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA767E:C68C40:5D74ACA6" + } + }, + "uuid": "c55f0814-cb1e-4b41-a74d-e94e3eb0e843", + "persistent": true, + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls_261_merge-0b05c767-d1a4-419a-8eb9-71d86ab9a82c.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls_261_merge-0b05c767-d1a4-419a-8eb9-71d86ab9a82c.json new file mode 100644 index 0000000000..5d95da55d7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/repos_github-api-test-org_github-api_pulls_261_merge-0b05c767-d1a4-419a-8eb9-71d86ab9a82c.json @@ -0,0 +1,49 @@ +{ + "id": "0b05c767-d1a4-419a-8eb9-71d86ab9a82c", + "name": "repos_github-api-test-org_github-api_pulls_261_merge", + "request": { + "url": "/repos/github-api-test-org/github-api/pulls/261/merge", + "method": "PUT", + "bodyPatterns": [ + { + "equalToJson": "{\"commit_message\":\"squash merge\",\"merge_method\":\"squash\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "body": "{\"sha\":\"912e2176a00e60e02196737e0ae4c218a14b5dcb\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:26 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4932", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"26636247c49e812be5185d507e910785\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA771D:C68C99:5D74ACA7" + } + }, + "uuid": "0b05c767-d1a4-419a-8eb9-71d86ab9a82c", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json new file mode 100644 index 0000000000..6d7b8f1cbb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/PullRequestTest/wiremock/updateContentSquashMerge/mappings/user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json @@ -0,0 +1,43 @@ +{ + "id": "78c0481f-0420-45ef-97f7-fabf21edf0e2", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-78c0481f-0420-45ef-97f7-fabf21edf0e2.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:24:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4944", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FF7E:15CC:AA74C9:C68A74:5D74ACA1" + } + }, + "uuid": "78c0481f-0420-45ef-97f7-fabf21edf0e2", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json new file mode 100644 index 0000000000..885bf2740f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json @@ -0,0 +1,33 @@ +{ + "login": "rtyler", + "id": 26594, + "node_id": "MDQ6VXNlcjI2NTk0", + "avatar_url": "https://avatars0.githubusercontent.com/u/26594?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rtyler", + "html_url": "https://github.com/rtyler", + "followers_url": "https://api.github.com/users/rtyler/followers", + "following_url": "https://api.github.com/users/rtyler/following{/other_user}", + "gists_url": "https://api.github.com/users/rtyler/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rtyler/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rtyler/subscriptions", + "organizations_url": "https://api.github.com/users/rtyler/orgs", + "repos_url": "https://api.github.com/users/rtyler/repos", + "events_url": "https://api.github.com/users/rtyler/events{/privacy}", + "received_events_url": "https://api.github.com/users/rtyler/received_events", + "type": "User", + "site_admin": false, + "name": "R. Tyler Croy", + "company": null, + "blog": "https://brokenco.de/", + "location": "California", + "email": "rtyler@brokenco.de", + "hireable": null, + "bio": "person", + "public_repos": 239, + "public_gists": 470, + "followers": 396, + "following": 41, + "created_at": "2008-09-28T07:28:42Z", + "updated_at": "2019-04-24T00:04:36Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json new file mode 100644 index 0000000000..1847996c70 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json @@ -0,0 +1,602 @@ +[ + { + "login": "brosner", + "id": 124, + "node_id": "MDQ6VXNlcjEyNA==", + "avatar_url": "https://avatars3.githubusercontent.com/u/124?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/brosner", + "html_url": "https://github.com/brosner", + "followers_url": "https://api.github.com/users/brosner/followers", + "following_url": "https://api.github.com/users/brosner/following{/other_user}", + "gists_url": "https://api.github.com/users/brosner/gists{/gist_id}", + "starred_url": "https://api.github.com/users/brosner/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/brosner/subscriptions", + "organizations_url": "https://api.github.com/users/brosner/orgs", + "repos_url": "https://api.github.com/users/brosner/repos", + "events_url": "https://api.github.com/users/brosner/events{/privacy}", + "received_events_url": "https://api.github.com/users/brosner/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "mde", + "id": 757, + "node_id": "MDQ6VXNlcjc1Nw==", + "avatar_url": "https://avatars1.githubusercontent.com/u/757?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mde", + "html_url": "https://github.com/mde", + "followers_url": "https://api.github.com/users/mde/followers", + "following_url": "https://api.github.com/users/mde/following{/other_user}", + "gists_url": "https://api.github.com/users/mde/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mde/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mde/subscriptions", + "organizations_url": "https://api.github.com/users/mde/orgs", + "repos_url": "https://api.github.com/users/mde/repos", + "events_url": "https://api.github.com/users/mde/events{/privacy}", + "received_events_url": "https://api.github.com/users/mde/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "coty", + "id": 1128, + "node_id": "MDQ6VXNlcjExMjg=", + "avatar_url": "https://avatars1.githubusercontent.com/u/1128?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/coty", + "html_url": "https://github.com/coty", + "followers_url": "https://api.github.com/users/coty/followers", + "following_url": "https://api.github.com/users/coty/following{/other_user}", + "gists_url": "https://api.github.com/users/coty/gists{/gist_id}", + "starred_url": "https://api.github.com/users/coty/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/coty/subscriptions", + "organizations_url": "https://api.github.com/users/coty/orgs", + "repos_url": "https://api.github.com/users/coty/repos", + "events_url": "https://api.github.com/users/coty/events{/privacy}", + "received_events_url": "https://api.github.com/users/coty/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "ericflo", + "id": 1228, + "node_id": "MDQ6VXNlcjEyMjg=", + "avatar_url": "https://avatars0.githubusercontent.com/u/1228?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ericflo", + "html_url": "https://github.com/ericflo", + "followers_url": "https://api.github.com/users/ericflo/followers", + "following_url": "https://api.github.com/users/ericflo/following{/other_user}", + "gists_url": "https://api.github.com/users/ericflo/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ericflo/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ericflo/subscriptions", + "organizations_url": "https://api.github.com/users/ericflo/orgs", + "repos_url": "https://api.github.com/users/ericflo/repos", + "events_url": "https://api.github.com/users/ericflo/events{/privacy}", + "received_events_url": "https://api.github.com/users/ericflo/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "edwardgeorge", + "id": 1572, + "node_id": "MDQ6VXNlcjE1NzI=", + "avatar_url": "https://avatars0.githubusercontent.com/u/1572?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/edwardgeorge", + "html_url": "https://github.com/edwardgeorge", + "followers_url": "https://api.github.com/users/edwardgeorge/followers", + "following_url": "https://api.github.com/users/edwardgeorge/following{/other_user}", + "gists_url": "https://api.github.com/users/edwardgeorge/gists{/gist_id}", + "starred_url": "https://api.github.com/users/edwardgeorge/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/edwardgeorge/subscriptions", + "organizations_url": "https://api.github.com/users/edwardgeorge/orgs", + "repos_url": "https://api.github.com/users/edwardgeorge/repos", + "events_url": "https://api.github.com/users/edwardgeorge/events{/privacy}", + "received_events_url": "https://api.github.com/users/edwardgeorge/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "teej", + "id": 1796, + "node_id": "MDQ6VXNlcjE3OTY=", + "avatar_url": "https://avatars1.githubusercontent.com/u/1796?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/teej", + "html_url": "https://github.com/teej", + "followers_url": "https://api.github.com/users/teej/followers", + "following_url": "https://api.github.com/users/teej/following{/other_user}", + "gists_url": "https://api.github.com/users/teej/gists{/gist_id}", + "starred_url": "https://api.github.com/users/teej/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/teej/subscriptions", + "organizations_url": "https://api.github.com/users/teej/orgs", + "repos_url": "https://api.github.com/users/teej/repos", + "events_url": "https://api.github.com/users/teej/events{/privacy}", + "received_events_url": "https://api.github.com/users/teej/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "baron", + "id": 2617, + "node_id": "MDQ6VXNlcjI2MTc=", + "avatar_url": "https://avatars3.githubusercontent.com/u/2617?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/baron", + "html_url": "https://github.com/baron", + "followers_url": "https://api.github.com/users/baron/followers", + "following_url": "https://api.github.com/users/baron/following{/other_user}", + "gists_url": "https://api.github.com/users/baron/gists{/gist_id}", + "starred_url": "https://api.github.com/users/baron/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/baron/subscriptions", + "organizations_url": "https://api.github.com/users/baron/orgs", + "repos_url": "https://api.github.com/users/baron/repos", + "events_url": "https://api.github.com/users/baron/events{/privacy}", + "received_events_url": "https://api.github.com/users/baron/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "dhou", + "id": 4307, + "node_id": "MDQ6VXNlcjQzMDc=", + "avatar_url": "https://avatars2.githubusercontent.com/u/4307?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dhou", + "html_url": "https://github.com/dhou", + "followers_url": "https://api.github.com/users/dhou/followers", + "following_url": "https://api.github.com/users/dhou/following{/other_user}", + "gists_url": "https://api.github.com/users/dhou/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dhou/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dhou/subscriptions", + "organizations_url": "https://api.github.com/users/dhou/orgs", + "repos_url": "https://api.github.com/users/dhou/repos", + "events_url": "https://api.github.com/users/dhou/events{/privacy}", + "received_events_url": "https://api.github.com/users/dhou/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "admc", + "id": 5144, + "node_id": "MDQ6VXNlcjUxNDQ=", + "avatar_url": "https://avatars3.githubusercontent.com/u/5144?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/admc", + "html_url": "https://github.com/admc", + "followers_url": "https://api.github.com/users/admc/followers", + "following_url": "https://api.github.com/users/admc/following{/other_user}", + "gists_url": "https://api.github.com/users/admc/gists{/gist_id}", + "starred_url": "https://api.github.com/users/admc/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/admc/subscriptions", + "organizations_url": "https://api.github.com/users/admc/orgs", + "repos_url": "https://api.github.com/users/admc/repos", + "events_url": "https://api.github.com/users/admc/events{/privacy}", + "received_events_url": "https://api.github.com/users/admc/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "brunojm", + "id": 5225, + "node_id": "MDQ6VXNlcjUyMjU=", + "avatar_url": "https://avatars3.githubusercontent.com/u/5225?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/brunojm", + "html_url": "https://github.com/brunojm", + "followers_url": "https://api.github.com/users/brunojm/followers", + "following_url": "https://api.github.com/users/brunojm/following{/other_user}", + "gists_url": "https://api.github.com/users/brunojm/gists{/gist_id}", + "starred_url": "https://api.github.com/users/brunojm/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/brunojm/subscriptions", + "organizations_url": "https://api.github.com/users/brunojm/orgs", + "repos_url": "https://api.github.com/users/brunojm/repos", + "events_url": "https://api.github.com/users/brunojm/events{/privacy}", + "received_events_url": "https://api.github.com/users/brunojm/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "haslup", + "id": 8447, + "node_id": "MDQ6VXNlcjg0NDc=", + "avatar_url": "https://avatars1.githubusercontent.com/u/8447?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/haslup", + "html_url": "https://github.com/haslup", + "followers_url": "https://api.github.com/users/haslup/followers", + "following_url": "https://api.github.com/users/haslup/following{/other_user}", + "gists_url": "https://api.github.com/users/haslup/gists{/gist_id}", + "starred_url": "https://api.github.com/users/haslup/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/haslup/subscriptions", + "organizations_url": "https://api.github.com/users/haslup/orgs", + "repos_url": "https://api.github.com/users/haslup/repos", + "events_url": "https://api.github.com/users/haslup/events{/privacy}", + "received_events_url": "https://api.github.com/users/haslup/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "jakedahn", + "id": 8596, + "node_id": "MDQ6VXNlcjg1OTY=", + "avatar_url": "https://avatars3.githubusercontent.com/u/8596?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jakedahn", + "html_url": "https://github.com/jakedahn", + "followers_url": "https://api.github.com/users/jakedahn/followers", + "following_url": "https://api.github.com/users/jakedahn/following{/other_user}", + "gists_url": "https://api.github.com/users/jakedahn/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jakedahn/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jakedahn/subscriptions", + "organizations_url": "https://api.github.com/users/jakedahn/orgs", + "repos_url": "https://api.github.com/users/jakedahn/repos", + "events_url": "https://api.github.com/users/jakedahn/events{/privacy}", + "received_events_url": "https://api.github.com/users/jakedahn/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "simonw", + "id": 9599, + "node_id": "MDQ6VXNlcjk1OTk=", + "avatar_url": "https://avatars0.githubusercontent.com/u/9599?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/simonw", + "html_url": "https://github.com/simonw", + "followers_url": "https://api.github.com/users/simonw/followers", + "following_url": "https://api.github.com/users/simonw/following{/other_user}", + "gists_url": "https://api.github.com/users/simonw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/simonw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/simonw/subscriptions", + "organizations_url": "https://api.github.com/users/simonw/orgs", + "repos_url": "https://api.github.com/users/simonw/repos", + "events_url": "https://api.github.com/users/simonw/events{/privacy}", + "received_events_url": "https://api.github.com/users/simonw/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "philippp", + "id": 10235, + "node_id": "MDQ6VXNlcjEwMjM1", + "avatar_url": "https://avatars2.githubusercontent.com/u/10235?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/philippp", + "html_url": "https://github.com/philippp", + "followers_url": "https://api.github.com/users/philippp/followers", + "following_url": "https://api.github.com/users/philippp/following{/other_user}", + "gists_url": "https://api.github.com/users/philippp/gists{/gist_id}", + "starred_url": "https://api.github.com/users/philippp/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/philippp/subscriptions", + "organizations_url": "https://api.github.com/users/philippp/orgs", + "repos_url": "https://api.github.com/users/philippp/repos", + "events_url": "https://api.github.com/users/philippp/events{/privacy}", + "received_events_url": "https://api.github.com/users/philippp/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "bastos", + "id": 11134, + "node_id": "MDQ6VXNlcjExMTM0", + "avatar_url": "https://avatars1.githubusercontent.com/u/11134?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bastos", + "html_url": "https://github.com/bastos", + "followers_url": "https://api.github.com/users/bastos/followers", + "following_url": "https://api.github.com/users/bastos/following{/other_user}", + "gists_url": "https://api.github.com/users/bastos/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bastos/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bastos/subscriptions", + "organizations_url": "https://api.github.com/users/bastos/orgs", + "repos_url": "https://api.github.com/users/bastos/repos", + "events_url": "https://api.github.com/users/bastos/events{/privacy}", + "received_events_url": "https://api.github.com/users/bastos/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "atl", + "id": 12243, + "node_id": "MDQ6VXNlcjEyMjQz", + "avatar_url": "https://avatars3.githubusercontent.com/u/12243?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/atl", + "html_url": "https://github.com/atl", + "followers_url": "https://api.github.com/users/atl/followers", + "following_url": "https://api.github.com/users/atl/following{/other_user}", + "gists_url": "https://api.github.com/users/atl/gists{/gist_id}", + "starred_url": "https://api.github.com/users/atl/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/atl/subscriptions", + "organizations_url": "https://api.github.com/users/atl/orgs", + "repos_url": "https://api.github.com/users/atl/repos", + "events_url": "https://api.github.com/users/atl/events{/privacy}", + "received_events_url": "https://api.github.com/users/atl/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "chromakode", + "id": 16893, + "node_id": "MDQ6VXNlcjE2ODkz", + "avatar_url": "https://avatars1.githubusercontent.com/u/16893?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/chromakode", + "html_url": "https://github.com/chromakode", + "followers_url": "https://api.github.com/users/chromakode/followers", + "following_url": "https://api.github.com/users/chromakode/following{/other_user}", + "gists_url": "https://api.github.com/users/chromakode/gists{/gist_id}", + "starred_url": "https://api.github.com/users/chromakode/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/chromakode/subscriptions", + "organizations_url": "https://api.github.com/users/chromakode/orgs", + "repos_url": "https://api.github.com/users/chromakode/repos", + "events_url": "https://api.github.com/users/chromakode/events{/privacy}", + "received_events_url": "https://api.github.com/users/chromakode/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "mikegray", + "id": 17547, + "node_id": "MDQ6VXNlcjE3NTQ3", + "avatar_url": "https://avatars1.githubusercontent.com/u/17547?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mikegray", + "html_url": "https://github.com/mikegray", + "followers_url": "https://api.github.com/users/mikegray/followers", + "following_url": "https://api.github.com/users/mikegray/following{/other_user}", + "gists_url": "https://api.github.com/users/mikegray/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mikegray/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mikegray/subscriptions", + "organizations_url": "https://api.github.com/users/mikegray/orgs", + "repos_url": "https://api.github.com/users/mikegray/repos", + "events_url": "https://api.github.com/users/mikegray/events{/privacy}", + "received_events_url": "https://api.github.com/users/mikegray/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "jorgenpt", + "id": 21258, + "node_id": "MDQ6VXNlcjIxMjU4", + "avatar_url": "https://avatars1.githubusercontent.com/u/21258?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jorgenpt", + "html_url": "https://github.com/jorgenpt", + "followers_url": "https://api.github.com/users/jorgenpt/followers", + "following_url": "https://api.github.com/users/jorgenpt/following{/other_user}", + "gists_url": "https://api.github.com/users/jorgenpt/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jorgenpt/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jorgenpt/subscriptions", + "organizations_url": "https://api.github.com/users/jorgenpt/orgs", + "repos_url": "https://api.github.com/users/jorgenpt/repos", + "events_url": "https://api.github.com/users/jorgenpt/events{/privacy}", + "received_events_url": "https://api.github.com/users/jorgenpt/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "rodbegbie", + "id": 21818, + "node_id": "MDQ6VXNlcjIxODE4", + "avatar_url": "https://avatars1.githubusercontent.com/u/21818?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rodbegbie", + "html_url": "https://github.com/rodbegbie", + "followers_url": "https://api.github.com/users/rodbegbie/followers", + "following_url": "https://api.github.com/users/rodbegbie/following{/other_user}", + "gists_url": "https://api.github.com/users/rodbegbie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rodbegbie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rodbegbie/subscriptions", + "organizations_url": "https://api.github.com/users/rodbegbie/orgs", + "repos_url": "https://api.github.com/users/rodbegbie/repos", + "events_url": "https://api.github.com/users/rodbegbie/events{/privacy}", + "received_events_url": "https://api.github.com/users/rodbegbie/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "philippWassibauer", + "id": 22848, + "node_id": "MDQ6VXNlcjIyODQ4", + "avatar_url": "https://avatars1.githubusercontent.com/u/22848?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/philippWassibauer", + "html_url": "https://github.com/philippWassibauer", + "followers_url": "https://api.github.com/users/philippWassibauer/followers", + "following_url": "https://api.github.com/users/philippWassibauer/following{/other_user}", + "gists_url": "https://api.github.com/users/philippWassibauer/gists{/gist_id}", + "starred_url": "https://api.github.com/users/philippWassibauer/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/philippWassibauer/subscriptions", + "organizations_url": "https://api.github.com/users/philippWassibauer/orgs", + "repos_url": "https://api.github.com/users/philippWassibauer/repos", + "events_url": "https://api.github.com/users/philippWassibauer/events{/privacy}", + "received_events_url": "https://api.github.com/users/philippWassibauer/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "imlucas", + "id": 23074, + "node_id": "MDQ6VXNlcjIzMDc0", + "avatar_url": "https://avatars3.githubusercontent.com/u/23074?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/imlucas", + "html_url": "https://github.com/imlucas", + "followers_url": "https://api.github.com/users/imlucas/followers", + "following_url": "https://api.github.com/users/imlucas/following{/other_user}", + "gists_url": "https://api.github.com/users/imlucas/gists{/gist_id}", + "starred_url": "https://api.github.com/users/imlucas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/imlucas/subscriptions", + "organizations_url": "https://api.github.com/users/imlucas/orgs", + "repos_url": "https://api.github.com/users/imlucas/repos", + "events_url": "https://api.github.com/users/imlucas/events{/privacy}", + "received_events_url": "https://api.github.com/users/imlucas/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "resmo", + "id": 23809, + "node_id": "MDQ6VXNlcjIzODA5", + "avatar_url": "https://avatars1.githubusercontent.com/u/23809?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/resmo", + "html_url": "https://github.com/resmo", + "followers_url": "https://api.github.com/users/resmo/followers", + "following_url": "https://api.github.com/users/resmo/following{/other_user}", + "gists_url": "https://api.github.com/users/resmo/gists{/gist_id}", + "starred_url": "https://api.github.com/users/resmo/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/resmo/subscriptions", + "organizations_url": "https://api.github.com/users/resmo/orgs", + "repos_url": "https://api.github.com/users/resmo/repos", + "events_url": "https://api.github.com/users/resmo/events{/privacy}", + "received_events_url": "https://api.github.com/users/resmo/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "zeljkofilipin", + "id": 23927, + "node_id": "MDQ6VXNlcjIzOTI3", + "avatar_url": "https://avatars3.githubusercontent.com/u/23927?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/zeljkofilipin", + "html_url": "https://github.com/zeljkofilipin", + "followers_url": "https://api.github.com/users/zeljkofilipin/followers", + "following_url": "https://api.github.com/users/zeljkofilipin/following{/other_user}", + "gists_url": "https://api.github.com/users/zeljkofilipin/gists{/gist_id}", + "starred_url": "https://api.github.com/users/zeljkofilipin/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/zeljkofilipin/subscriptions", + "organizations_url": "https://api.github.com/users/zeljkofilipin/orgs", + "repos_url": "https://api.github.com/users/zeljkofilipin/repos", + "events_url": "https://api.github.com/users/zeljkofilipin/events{/privacy}", + "received_events_url": "https://api.github.com/users/zeljkofilipin/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "kidd", + "id": 25607, + "node_id": "MDQ6VXNlcjI1NjA3", + "avatar_url": "https://avatars2.githubusercontent.com/u/25607?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kidd", + "html_url": "https://github.com/kidd", + "followers_url": "https://api.github.com/users/kidd/followers", + "following_url": "https://api.github.com/users/kidd/following{/other_user}", + "gists_url": "https://api.github.com/users/kidd/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kidd/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kidd/subscriptions", + "organizations_url": "https://api.github.com/users/kidd/orgs", + "repos_url": "https://api.github.com/users/kidd/repos", + "events_url": "https://api.github.com/users/kidd/events{/privacy}", + "received_events_url": "https://api.github.com/users/kidd/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "supertunaman", + "id": 26306, + "node_id": "MDQ6VXNlcjI2MzA2", + "avatar_url": "https://avatars2.githubusercontent.com/u/26306?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/supertunaman", + "html_url": "https://github.com/supertunaman", + "followers_url": "https://api.github.com/users/supertunaman/followers", + "following_url": "https://api.github.com/users/supertunaman/following{/other_user}", + "gists_url": "https://api.github.com/users/supertunaman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/supertunaman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/supertunaman/subscriptions", + "organizations_url": "https://api.github.com/users/supertunaman/orgs", + "repos_url": "https://api.github.com/users/supertunaman/repos", + "events_url": "https://api.github.com/users/supertunaman/events{/privacy}", + "received_events_url": "https://api.github.com/users/supertunaman/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "temoto", + "id": 27057, + "node_id": "MDQ6VXNlcjI3MDU3", + "avatar_url": "https://avatars2.githubusercontent.com/u/27057?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/temoto", + "html_url": "https://github.com/temoto", + "followers_url": "https://api.github.com/users/temoto/followers", + "following_url": "https://api.github.com/users/temoto/following{/other_user}", + "gists_url": "https://api.github.com/users/temoto/gists{/gist_id}", + "starred_url": "https://api.github.com/users/temoto/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/temoto/subscriptions", + "organizations_url": "https://api.github.com/users/temoto/orgs", + "repos_url": "https://api.github.com/users/temoto/repos", + "events_url": "https://api.github.com/users/temoto/events{/privacy}", + "received_events_url": "https://api.github.com/users/temoto/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "andreypopp", + "id": 30594, + "node_id": "MDQ6VXNlcjMwNTk0", + "avatar_url": "https://avatars0.githubusercontent.com/u/30594?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/andreypopp", + "html_url": "https://github.com/andreypopp", + "followers_url": "https://api.github.com/users/andreypopp/followers", + "following_url": "https://api.github.com/users/andreypopp/following{/other_user}", + "gists_url": "https://api.github.com/users/andreypopp/gists{/gist_id}", + "starred_url": "https://api.github.com/users/andreypopp/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/andreypopp/subscriptions", + "organizations_url": "https://api.github.com/users/andreypopp/orgs", + "repos_url": "https://api.github.com/users/andreypopp/repos", + "events_url": "https://api.github.com/users/andreypopp/events{/privacy}", + "received_events_url": "https://api.github.com/users/andreypopp/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "anditosan", + "id": 34474, + "node_id": "MDQ6VXNlcjM0NDc0", + "avatar_url": "https://avatars2.githubusercontent.com/u/34474?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/anditosan", + "html_url": "https://github.com/anditosan", + "followers_url": "https://api.github.com/users/anditosan/followers", + "following_url": "https://api.github.com/users/anditosan/following{/other_user}", + "gists_url": "https://api.github.com/users/anditosan/gists{/gist_id}", + "starred_url": "https://api.github.com/users/anditosan/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/anditosan/subscriptions", + "organizations_url": "https://api.github.com/users/anditosan/orgs", + "repos_url": "https://api.github.com/users/anditosan/repos", + "events_url": "https://api.github.com/users/anditosan/events{/privacy}", + "received_events_url": "https://api.github.com/users/anditosan/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "3rdman", + "id": 36356, + "node_id": "MDQ6VXNlcjM2MzU2", + "avatar_url": "https://avatars2.githubusercontent.com/u/36356?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/3rdman", + "html_url": "https://github.com/3rdman", + "followers_url": "https://api.github.com/users/3rdman/followers", + "following_url": "https://api.github.com/users/3rdman/following{/other_user}", + "gists_url": "https://api.github.com/users/3rdman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/3rdman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/3rdman/subscriptions", + "organizations_url": "https://api.github.com/users/3rdman/orgs", + "repos_url": "https://api.github.com/users/3rdman/repos", + "events_url": "https://api.github.com/users/3rdman/events{/privacy}", + "received_events_url": "https://api.github.com/users/3rdman/received_events", + "type": "User", + "site_admin": false + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json new file mode 100644 index 0000000000..c4d515343a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/__files/users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json @@ -0,0 +1,602 @@ +[ + { + "login": "aphyr", + "id": 3748, + "node_id": "MDQ6VXNlcjM3NDg=", + "avatar_url": "https://avatars3.githubusercontent.com/u/3748?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/aphyr", + "html_url": "https://github.com/aphyr", + "followers_url": "https://api.github.com/users/aphyr/followers", + "following_url": "https://api.github.com/users/aphyr/following{/other_user}", + "gists_url": "https://api.github.com/users/aphyr/gists{/gist_id}", + "starred_url": "https://api.github.com/users/aphyr/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/aphyr/subscriptions", + "organizations_url": "https://api.github.com/users/aphyr/orgs", + "repos_url": "https://api.github.com/users/aphyr/repos", + "events_url": "https://api.github.com/users/aphyr/events{/privacy}", + "received_events_url": "https://api.github.com/users/aphyr/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "jeremyd", + "id": 4072, + "node_id": "MDQ6VXNlcjQwNzI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/4072?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jeremyd", + "html_url": "https://github.com/jeremyd", + "followers_url": "https://api.github.com/users/jeremyd/followers", + "following_url": "https://api.github.com/users/jeremyd/following{/other_user}", + "gists_url": "https://api.github.com/users/jeremyd/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jeremyd/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jeremyd/subscriptions", + "organizations_url": "https://api.github.com/users/jeremyd/orgs", + "repos_url": "https://api.github.com/users/jeremyd/repos", + "events_url": "https://api.github.com/users/jeremyd/events{/privacy}", + "received_events_url": "https://api.github.com/users/jeremyd/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "admc", + "id": 5144, + "node_id": "MDQ6VXNlcjUxNDQ=", + "avatar_url": "https://avatars3.githubusercontent.com/u/5144?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/admc", + "html_url": "https://github.com/admc", + "followers_url": "https://api.github.com/users/admc/followers", + "following_url": "https://api.github.com/users/admc/following{/other_user}", + "gists_url": "https://api.github.com/users/admc/gists{/gist_id}", + "starred_url": "https://api.github.com/users/admc/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/admc/subscriptions", + "organizations_url": "https://api.github.com/users/admc/orgs", + "repos_url": "https://api.github.com/users/admc/repos", + "events_url": "https://api.github.com/users/admc/events{/privacy}", + "received_events_url": "https://api.github.com/users/admc/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "headius", + "id": 10135, + "node_id": "MDQ6VXNlcjEwMTM1", + "avatar_url": "https://avatars3.githubusercontent.com/u/10135?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/headius", + "html_url": "https://github.com/headius", + "followers_url": "https://api.github.com/users/headius/followers", + "following_url": "https://api.github.com/users/headius/following{/other_user}", + "gists_url": "https://api.github.com/users/headius/gists{/gist_id}", + "starred_url": "https://api.github.com/users/headius/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/headius/subscriptions", + "organizations_url": "https://api.github.com/users/headius/orgs", + "repos_url": "https://api.github.com/users/headius/repos", + "events_url": "https://api.github.com/users/headius/events{/privacy}", + "received_events_url": "https://api.github.com/users/headius/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "atl", + "id": 12243, + "node_id": "MDQ6VXNlcjEyMjQz", + "avatar_url": "https://avatars3.githubusercontent.com/u/12243?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/atl", + "html_url": "https://github.com/atl", + "followers_url": "https://api.github.com/users/atl/followers", + "following_url": "https://api.github.com/users/atl/following{/other_user}", + "gists_url": "https://api.github.com/users/atl/gists{/gist_id}", + "starred_url": "https://api.github.com/users/atl/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/atl/subscriptions", + "organizations_url": "https://api.github.com/users/atl/orgs", + "repos_url": "https://api.github.com/users/atl/repos", + "events_url": "https://api.github.com/users/atl/events{/privacy}", + "received_events_url": "https://api.github.com/users/atl/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "ice799", + "id": 21102, + "node_id": "MDQ6VXNlcjIxMTAy", + "avatar_url": "https://avatars2.githubusercontent.com/u/21102?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ice799", + "html_url": "https://github.com/ice799", + "followers_url": "https://api.github.com/users/ice799/followers", + "following_url": "https://api.github.com/users/ice799/following{/other_user}", + "gists_url": "https://api.github.com/users/ice799/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ice799/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ice799/subscriptions", + "organizations_url": "https://api.github.com/users/ice799/orgs", + "repos_url": "https://api.github.com/users/ice799/repos", + "events_url": "https://api.github.com/users/ice799/events{/privacy}", + "received_events_url": "https://api.github.com/users/ice799/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "jorgenpt", + "id": 21258, + "node_id": "MDQ6VXNlcjIxMjU4", + "avatar_url": "https://avatars1.githubusercontent.com/u/21258?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jorgenpt", + "html_url": "https://github.com/jorgenpt", + "followers_url": "https://api.github.com/users/jorgenpt/followers", + "following_url": "https://api.github.com/users/jorgenpt/following{/other_user}", + "gists_url": "https://api.github.com/users/jorgenpt/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jorgenpt/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jorgenpt/subscriptions", + "organizations_url": "https://api.github.com/users/jorgenpt/orgs", + "repos_url": "https://api.github.com/users/jorgenpt/repos", + "events_url": "https://api.github.com/users/jorgenpt/events{/privacy}", + "received_events_url": "https://api.github.com/users/jorgenpt/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "rodbegbie", + "id": 21818, + "node_id": "MDQ6VXNlcjIxODE4", + "avatar_url": "https://avatars1.githubusercontent.com/u/21818?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/rodbegbie", + "html_url": "https://github.com/rodbegbie", + "followers_url": "https://api.github.com/users/rodbegbie/followers", + "following_url": "https://api.github.com/users/rodbegbie/following{/other_user}", + "gists_url": "https://api.github.com/users/rodbegbie/gists{/gist_id}", + "starred_url": "https://api.github.com/users/rodbegbie/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/rodbegbie/subscriptions", + "organizations_url": "https://api.github.com/users/rodbegbie/orgs", + "repos_url": "https://api.github.com/users/rodbegbie/repos", + "events_url": "https://api.github.com/users/rodbegbie/events{/privacy}", + "received_events_url": "https://api.github.com/users/rodbegbie/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "chergert", + "id": 25676, + "node_id": "MDQ6VXNlcjI1Njc2", + "avatar_url": "https://avatars2.githubusercontent.com/u/25676?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/chergert", + "html_url": "https://github.com/chergert", + "followers_url": "https://api.github.com/users/chergert/followers", + "following_url": "https://api.github.com/users/chergert/following{/other_user}", + "gists_url": "https://api.github.com/users/chergert/gists{/gist_id}", + "starred_url": "https://api.github.com/users/chergert/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/chergert/subscriptions", + "organizations_url": "https://api.github.com/users/chergert/orgs", + "repos_url": "https://api.github.com/users/chergert/repos", + "events_url": "https://api.github.com/users/chergert/events{/privacy}", + "received_events_url": "https://api.github.com/users/chergert/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "migueldeicaza", + "id": 36863, + "node_id": "MDQ6VXNlcjM2ODYz", + "avatar_url": "https://avatars2.githubusercontent.com/u/36863?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/migueldeicaza", + "html_url": "https://github.com/migueldeicaza", + "followers_url": "https://api.github.com/users/migueldeicaza/followers", + "following_url": "https://api.github.com/users/migueldeicaza/following{/other_user}", + "gists_url": "https://api.github.com/users/migueldeicaza/gists{/gist_id}", + "starred_url": "https://api.github.com/users/migueldeicaza/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/migueldeicaza/subscriptions", + "organizations_url": "https://api.github.com/users/migueldeicaza/orgs", + "repos_url": "https://api.github.com/users/migueldeicaza/repos", + "events_url": "https://api.github.com/users/migueldeicaza/events{/privacy}", + "received_events_url": "https://api.github.com/users/migueldeicaza/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "teepark", + "id": 37182, + "node_id": "MDQ6VXNlcjM3MTgy", + "avatar_url": "https://avatars3.githubusercontent.com/u/37182?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/teepark", + "html_url": "https://github.com/teepark", + "followers_url": "https://api.github.com/users/teepark/followers", + "following_url": "https://api.github.com/users/teepark/following{/other_user}", + "gists_url": "https://api.github.com/users/teepark/gists{/gist_id}", + "starred_url": "https://api.github.com/users/teepark/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/teepark/subscriptions", + "organizations_url": "https://api.github.com/users/teepark/orgs", + "repos_url": "https://api.github.com/users/teepark/repos", + "events_url": "https://api.github.com/users/teepark/events{/privacy}", + "received_events_url": "https://api.github.com/users/teepark/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "paulbaumgart", + "id": 47379, + "node_id": "MDQ6VXNlcjQ3Mzc5", + "avatar_url": "https://avatars3.githubusercontent.com/u/47379?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/paulbaumgart", + "html_url": "https://github.com/paulbaumgart", + "followers_url": "https://api.github.com/users/paulbaumgart/followers", + "following_url": "https://api.github.com/users/paulbaumgart/following{/other_user}", + "gists_url": "https://api.github.com/users/paulbaumgart/gists{/gist_id}", + "starred_url": "https://api.github.com/users/paulbaumgart/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/paulbaumgart/subscriptions", + "organizations_url": "https://api.github.com/users/paulbaumgart/orgs", + "repos_url": "https://api.github.com/users/paulbaumgart/repos", + "events_url": "https://api.github.com/users/paulbaumgart/events{/privacy}", + "received_events_url": "https://api.github.com/users/paulbaumgart/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "i386", + "id": 50156, + "node_id": "MDQ6VXNlcjUwMTU2", + "avatar_url": "https://avatars2.githubusercontent.com/u/50156?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/i386", + "html_url": "https://github.com/i386", + "followers_url": "https://api.github.com/users/i386/followers", + "following_url": "https://api.github.com/users/i386/following{/other_user}", + "gists_url": "https://api.github.com/users/i386/gists{/gist_id}", + "starred_url": "https://api.github.com/users/i386/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/i386/subscriptions", + "organizations_url": "https://api.github.com/users/i386/orgs", + "repos_url": "https://api.github.com/users/i386/repos", + "events_url": "https://api.github.com/users/i386/events{/privacy}", + "received_events_url": "https://api.github.com/users/i386/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "ironpython", + "id": 63615, + "node_id": "MDQ6VXNlcjYzNjE1", + "avatar_url": "https://avatars0.githubusercontent.com/u/63615?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ironpython", + "html_url": "https://github.com/ironpython", + "followers_url": "https://api.github.com/users/ironpython/followers", + "following_url": "https://api.github.com/users/ironpython/following{/other_user}", + "gists_url": "https://api.github.com/users/ironpython/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ironpython/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ironpython/subscriptions", + "organizations_url": "https://api.github.com/users/ironpython/orgs", + "repos_url": "https://api.github.com/users/ironpython/repos", + "events_url": "https://api.github.com/users/ironpython/events{/privacy}", + "received_events_url": "https://api.github.com/users/ironpython/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "thehar", + "id": 64139, + "node_id": "MDQ6VXNlcjY0MTM5", + "avatar_url": "https://avatars1.githubusercontent.com/u/64139?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/thehar", + "html_url": "https://github.com/thehar", + "followers_url": "https://api.github.com/users/thehar/followers", + "following_url": "https://api.github.com/users/thehar/following{/other_user}", + "gists_url": "https://api.github.com/users/thehar/gists{/gist_id}", + "starred_url": "https://api.github.com/users/thehar/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/thehar/subscriptions", + "organizations_url": "https://api.github.com/users/thehar/orgs", + "repos_url": "https://api.github.com/users/thehar/repos", + "events_url": "https://api.github.com/users/thehar/events{/privacy}", + "received_events_url": "https://api.github.com/users/thehar/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "breckinloggins", + "id": 71640, + "node_id": "MDQ6VXNlcjcxNjQw", + "avatar_url": "https://avatars1.githubusercontent.com/u/71640?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/breckinloggins", + "html_url": "https://github.com/breckinloggins", + "followers_url": "https://api.github.com/users/breckinloggins/followers", + "following_url": "https://api.github.com/users/breckinloggins/following{/other_user}", + "gists_url": "https://api.github.com/users/breckinloggins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/breckinloggins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/breckinloggins/subscriptions", + "organizations_url": "https://api.github.com/users/breckinloggins/orgs", + "repos_url": "https://api.github.com/users/breckinloggins/repos", + "events_url": "https://api.github.com/users/breckinloggins/events{/privacy}", + "received_events_url": "https://api.github.com/users/breckinloggins/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "ngandhy", + "id": 76397, + "node_id": "MDQ6VXNlcjc2Mzk3", + "avatar_url": "https://avatars1.githubusercontent.com/u/76397?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ngandhy", + "html_url": "https://github.com/ngandhy", + "followers_url": "https://api.github.com/users/ngandhy/followers", + "following_url": "https://api.github.com/users/ngandhy/following{/other_user}", + "gists_url": "https://api.github.com/users/ngandhy/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ngandhy/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ngandhy/subscriptions", + "organizations_url": "https://api.github.com/users/ngandhy/orgs", + "repos_url": "https://api.github.com/users/ngandhy/repos", + "events_url": "https://api.github.com/users/ngandhy/events{/privacy}", + "received_events_url": "https://api.github.com/users/ngandhy/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "cheetahtemplate", + "id": 80304, + "node_id": "MDQ6VXNlcjgwMzA0", + "avatar_url": "https://avatars3.githubusercontent.com/u/80304?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/cheetahtemplate", + "html_url": "https://github.com/cheetahtemplate", + "followers_url": "https://api.github.com/users/cheetahtemplate/followers", + "following_url": "https://api.github.com/users/cheetahtemplate/following{/other_user}", + "gists_url": "https://api.github.com/users/cheetahtemplate/gists{/gist_id}", + "starred_url": "https://api.github.com/users/cheetahtemplate/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/cheetahtemplate/subscriptions", + "organizations_url": "https://api.github.com/users/cheetahtemplate/orgs", + "repos_url": "https://api.github.com/users/cheetahtemplate/repos", + "events_url": "https://api.github.com/users/cheetahtemplate/events{/privacy}", + "received_events_url": "https://api.github.com/users/cheetahtemplate/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "frxxbase-xx", + "id": 81274, + "node_id": "MDQ6VXNlcjgxMjc0", + "avatar_url": "https://avatars1.githubusercontent.com/u/81274?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/frxxbase-xx", + "html_url": "https://github.com/frxxbase-xx", + "followers_url": "https://api.github.com/users/frxxbase-xx/followers", + "following_url": "https://api.github.com/users/frxxbase-xx/following{/other_user}", + "gists_url": "https://api.github.com/users/frxxbase-xx/gists{/gist_id}", + "starred_url": "https://api.github.com/users/frxxbase-xx/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/frxxbase-xx/subscriptions", + "organizations_url": "https://api.github.com/users/frxxbase-xx/orgs", + "repos_url": "https://api.github.com/users/frxxbase-xx/repos", + "events_url": "https://api.github.com/users/frxxbase-xx/events{/privacy}", + "received_events_url": "https://api.github.com/users/frxxbase-xx/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "alanharder", + "id": 113800, + "node_id": "MDQ6VXNlcjExMzgwMA==", + "avatar_url": "https://avatars2.githubusercontent.com/u/113800?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/alanharder", + "html_url": "https://github.com/alanharder", + "followers_url": "https://api.github.com/users/alanharder/followers", + "following_url": "https://api.github.com/users/alanharder/following{/other_user}", + "gists_url": "https://api.github.com/users/alanharder/gists{/gist_id}", + "starred_url": "https://api.github.com/users/alanharder/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/alanharder/subscriptions", + "organizations_url": "https://api.github.com/users/alanharder/orgs", + "repos_url": "https://api.github.com/users/alanharder/repos", + "events_url": "https://api.github.com/users/alanharder/events{/privacy}", + "received_events_url": "https://api.github.com/users/alanharder/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "abayer", + "id": 120218, + "node_id": "MDQ6VXNlcjEyMDIxOA==", + "avatar_url": "https://avatars2.githubusercontent.com/u/120218?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/abayer", + "html_url": "https://github.com/abayer", + "followers_url": "https://api.github.com/users/abayer/followers", + "following_url": "https://api.github.com/users/abayer/following{/other_user}", + "gists_url": "https://api.github.com/users/abayer/gists{/gist_id}", + "starred_url": "https://api.github.com/users/abayer/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/abayer/subscriptions", + "organizations_url": "https://api.github.com/users/abayer/orgs", + "repos_url": "https://api.github.com/users/abayer/repos", + "events_url": "https://api.github.com/users/abayer/events{/privacy}", + "received_events_url": "https://api.github.com/users/abayer/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "lolgzs", + "id": 127150, + "node_id": "MDQ6VXNlcjEyNzE1MA==", + "avatar_url": "https://avatars1.githubusercontent.com/u/127150?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/lolgzs", + "html_url": "https://github.com/lolgzs", + "followers_url": "https://api.github.com/users/lolgzs/followers", + "following_url": "https://api.github.com/users/lolgzs/following{/other_user}", + "gists_url": "https://api.github.com/users/lolgzs/gists{/gist_id}", + "starred_url": "https://api.github.com/users/lolgzs/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/lolgzs/subscriptions", + "organizations_url": "https://api.github.com/users/lolgzs/orgs", + "repos_url": "https://api.github.com/users/lolgzs/repos", + "events_url": "https://api.github.com/users/lolgzs/events{/privacy}", + "received_events_url": "https://api.github.com/users/lolgzs/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "redterror", + "id": 131319, + "node_id": "MDQ6VXNlcjEzMTMxOQ==", + "avatar_url": "https://avatars3.githubusercontent.com/u/131319?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/redterror", + "html_url": "https://github.com/redterror", + "followers_url": "https://api.github.com/users/redterror/followers", + "following_url": "https://api.github.com/users/redterror/following{/other_user}", + "gists_url": "https://api.github.com/users/redterror/gists{/gist_id}", + "starred_url": "https://api.github.com/users/redterror/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/redterror/subscriptions", + "organizations_url": "https://api.github.com/users/redterror/orgs", + "repos_url": "https://api.github.com/users/redterror/repos", + "events_url": "https://api.github.com/users/redterror/events{/privacy}", + "received_events_url": "https://api.github.com/users/redterror/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "john-vinters", + "id": 147399, + "node_id": "MDQ6VXNlcjE0NzM5OQ==", + "avatar_url": "https://avatars0.githubusercontent.com/u/147399?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/john-vinters", + "html_url": "https://github.com/john-vinters", + "followers_url": "https://api.github.com/users/john-vinters/followers", + "following_url": "https://api.github.com/users/john-vinters/following{/other_user}", + "gists_url": "https://api.github.com/users/john-vinters/gists{/gist_id}", + "starred_url": "https://api.github.com/users/john-vinters/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/john-vinters/subscriptions", + "organizations_url": "https://api.github.com/users/john-vinters/orgs", + "repos_url": "https://api.github.com/users/john-vinters/repos", + "events_url": "https://api.github.com/users/john-vinters/events{/privacy}", + "received_events_url": "https://api.github.com/users/john-vinters/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "apture", + "id": 155217, + "node_id": "MDQ6VXNlcjE1NTIxNw==", + "avatar_url": "https://avatars2.githubusercontent.com/u/155217?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/apture", + "html_url": "https://github.com/apture", + "followers_url": "https://api.github.com/users/apture/followers", + "following_url": "https://api.github.com/users/apture/following{/other_user}", + "gists_url": "https://api.github.com/users/apture/gists{/gist_id}", + "starred_url": "https://api.github.com/users/apture/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/apture/subscriptions", + "organizations_url": "https://api.github.com/users/apture/orgs", + "repos_url": "https://api.github.com/users/apture/repos", + "events_url": "https://api.github.com/users/apture/events{/privacy}", + "received_events_url": "https://api.github.com/users/apture/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "parrt", + "id": 178777, + "node_id": "MDQ6VXNlcjE3ODc3Nw==", + "avatar_url": "https://avatars3.githubusercontent.com/u/178777?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/parrt", + "html_url": "https://github.com/parrt", + "followers_url": "https://api.github.com/users/parrt/followers", + "following_url": "https://api.github.com/users/parrt/following{/other_user}", + "gists_url": "https://api.github.com/users/parrt/gists{/gist_id}", + "starred_url": "https://api.github.com/users/parrt/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/parrt/subscriptions", + "organizations_url": "https://api.github.com/users/parrt/orgs", + "repos_url": "https://api.github.com/users/parrt/repos", + "events_url": "https://api.github.com/users/parrt/events{/privacy}", + "received_events_url": "https://api.github.com/users/parrt/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "whichlinden", + "id": 199239, + "node_id": "MDQ6VXNlcjE5OTIzOQ==", + "avatar_url": "https://avatars3.githubusercontent.com/u/199239?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/whichlinden", + "html_url": "https://github.com/whichlinden", + "followers_url": "https://api.github.com/users/whichlinden/followers", + "following_url": "https://api.github.com/users/whichlinden/following{/other_user}", + "gists_url": "https://api.github.com/users/whichlinden/gists{/gist_id}", + "starred_url": "https://api.github.com/users/whichlinden/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/whichlinden/subscriptions", + "organizations_url": "https://api.github.com/users/whichlinden/orgs", + "repos_url": "https://api.github.com/users/whichlinden/repos", + "events_url": "https://api.github.com/users/whichlinden/events{/privacy}", + "received_events_url": "https://api.github.com/users/whichlinden/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "jasonrubenstein", + "id": 207600, + "node_id": "MDQ6VXNlcjIwNzYwMA==", + "avatar_url": "https://avatars1.githubusercontent.com/u/207600?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jasonrubenstein", + "html_url": "https://github.com/jasonrubenstein", + "followers_url": "https://api.github.com/users/jasonrubenstein/followers", + "following_url": "https://api.github.com/users/jasonrubenstein/following{/other_user}", + "gists_url": "https://api.github.com/users/jasonrubenstein/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jasonrubenstein/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jasonrubenstein/subscriptions", + "organizations_url": "https://api.github.com/users/jasonrubenstein/orgs", + "repos_url": "https://api.github.com/users/jasonrubenstein/repos", + "events_url": "https://api.github.com/users/jasonrubenstein/events{/privacy}", + "received_events_url": "https://api.github.com/users/jasonrubenstein/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "persan", + "id": 233548, + "node_id": "MDQ6VXNlcjIzMzU0OA==", + "avatar_url": "https://avatars0.githubusercontent.com/u/233548?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/persan", + "html_url": "https://github.com/persan", + "followers_url": "https://api.github.com/users/persan/followers", + "following_url": "https://api.github.com/users/persan/following{/other_user}", + "gists_url": "https://api.github.com/users/persan/gists{/gist_id}", + "starred_url": "https://api.github.com/users/persan/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/persan/subscriptions", + "organizations_url": "https://api.github.com/users/persan/orgs", + "repos_url": "https://api.github.com/users/persan/repos", + "events_url": "https://api.github.com/users/persan/events{/privacy}", + "received_events_url": "https://api.github.com/users/persan/received_events", + "type": "User", + "site_admin": false + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json new file mode 100644 index 0000000000..c98e6c6cd0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json @@ -0,0 +1,43 @@ +{ + "id": "ca1c867f-b2ed-4064-80c5-8cfd1c50290f", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-ca1c867f-b2ed-4064-80c5-8cfd1c50290f.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:01:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4971", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FDFE:80B1:5E8F3B:6D2ECA:5D74A736" + } + }, + "uuid": "ca1c867f-b2ed-4064-80c5-8cfd1c50290f", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json new file mode 100644 index 0000000000..8e1bdb33c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json @@ -0,0 +1,43 @@ +{ + "id": "b56699fa-976a-4309-abc2-cece79cb70d7", + "name": "users_rtyler", + "request": { + "url": "/users/rtyler", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "users_rtyler-b56699fa-976a-4309-abc2-cece79cb70d7.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:01:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4970", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f13c58cd9f3dd2edb520a621b6c530d4\"", + "Last-Modified": "Wed, 24 Apr 2019 00:04:36 GMT", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FDFE:80B1:5E8F4F:6D2ED2:5D74A736" + } + }, + "uuid": "b56699fa-976a-4309-abc2-cece79cb70d7", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json new file mode 100644 index 0000000000..e489f1af03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json @@ -0,0 +1,43 @@ +{ + "id": "5d12f119-f036-4a78-a192-3af769a82f87", + "name": "users_rtyler_followers", + "request": { + "url": "/users/rtyler/followers", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "users_rtyler_followers-5d12f119-f036-4a78-a192-3af769a82f87.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:01:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4969", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"dd9b3c995ba6c5f222f409fb1407a292\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Link": "; rel=\"next\", ; rel=\"last\"", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FDFE:80B1:5E8F56:6D2EEB:5D74A737" + } + }, + "uuid": "5d12f119-f036-4a78-a192-3af769a82f87", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json new file mode 100644 index 0000000000..1e73b0eae8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/UserTest/wiremock/listFollowsAndFollowers/mappings/users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json @@ -0,0 +1,43 @@ +{ + "id": "51f79259-5780-473e-b593-e2a010f0b430", + "name": "users_rtyler_following", + "request": { + "url": "/users/rtyler/following", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "users_rtyler_following-51f79259-5780-473e-b593-e2a010f0b430.json", + "headers": { + "Date": "Sun, 08 Sep 2019 07:01:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4968", + "X-RateLimit-Reset": "1567929276", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"0c0837f539c6acc99e3695975e878f01\"", + "X-OAuth-Scopes": "gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Link": "; rel=\"next\", ; rel=\"last\"", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "FDFE:80B1:5E8F66:6D2EF6:5D74A737" + } + }, + "uuid": "51f79259-5780-473e-b593-e2a010f0b430", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/__files/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/__files/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json new file mode 100644 index 0000000000..417753cf08 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/__files/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json @@ -0,0 +1,130 @@ +{ + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "this is a stubbed description", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-09T06:58:21Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 428, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 428, + "open_issues": 96, + "watchers": 551, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 428, + "subscribers_count": 52 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/__files/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/__files/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/__files/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/mappings/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/mappings/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json new file mode 100644 index 0000000000..2f4e8273aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/mappings/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json @@ -0,0 +1,43 @@ +{ + "id": "0a34447d-6390-42da-ad5b-25bb566547f0", + "name": "repos_github-api_github-api", + "request": { + "url": "/repos/github-api/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json", + "headers": { + "Date": "Mon, 09 Sep 2019 21:36:30 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4970", + "X-RateLimit-Reset": "1568068520", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"4e3dd7308c6c7e9e08b7a9000e0fbfdd\"", + "Last-Modified": "Sat, 07 Sep 2019 00:07:16 GMT", + "X-OAuth-Scopes": "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "DF6D:7CF5:CA117:F0DAF:5D76C5DD" + } + }, + "uuid": "0a34447d-6390-42da-ad5b-25bb566547f0", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/mappings/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/mappings/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json new file mode 100644 index 0000000000..b1eda52765 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenNotProxying/mappings/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json @@ -0,0 +1,43 @@ +{ + "id": "b4b6d514-c9e8-488f-802f-35e51d3ba5b3", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json", + "headers": { + "Date": "Mon, 09 Sep 2019 21:36:29 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4971", + "X-RateLimit-Reset": "1568068520", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "DF6D:7CF5:CA101:F0DA8:5D76C5DD" + } + }, + "uuid": "b4b6d514-c9e8-488f-802f-35e51d3ba5b3", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/__files/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/__files/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json new file mode 100644 index 0000000000..417753cf08 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/__files/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json @@ -0,0 +1,130 @@ +{ + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "github-api/github-api", + "private": false, + "owner": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api/github-api", + "description": "this is a stubbed description", + "fork": false, + "url": "https://api.github.com/repos/github-api/github-api", + "forks_url": "https://api.github.com/repos/github-api/github-api/forks", + "keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api/github-api/teams", + "hooks_url": "https://api.github.com/repos/github-api/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api/github-api/events", + "assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api/github-api/tags", + "blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api/github-api/languages", + "stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/github-api/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/github-api/github-api/subscription", + "commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api/github-api/merges", + "archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api/github-api/downloads", + "issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-07T00:07:16Z", + "pushed_at": "2019-09-09T06:58:21Z", + "git_url": "git://github.com/github-api/github-api.git", + "ssh_url": "git@github.com:github-api/github-api.git", + "clone_url": "https://github.com/github-api/github-api.git", + "svn_url": "https://github.com/github-api/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11386, + "stargazers_count": 551, + "watchers_count": 551, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 428, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 428, + "open_issues": 96, + "watchers": 551, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api", + "html_url": "https://github.com/github-api", + "followers_url": "https://api.github.com/users/github-api/followers", + "following_url": "https://api.github.com/users/github-api/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api/subscriptions", + "organizations_url": "https://api.github.com/users/github-api/orgs", + "repos_url": "https://api.github.com/users/github-api/repos", + "events_url": "https://api.github.com/users/github-api/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 428, + "subscribers_count": 52 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/__files/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/__files/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json new file mode 100644 index 0000000000..b9ce24cb03 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/__files/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/mappings/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/mappings/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json new file mode 100644 index 0000000000..2f4e8273aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/mappings/repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json @@ -0,0 +1,43 @@ +{ + "id": "0a34447d-6390-42da-ad5b-25bb566547f0", + "name": "repos_github-api_github-api", + "request": { + "url": "/repos/github-api/github-api", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api-0a34447d-6390-42da-ad5b-25bb566547f0.json", + "headers": { + "Date": "Mon, 09 Sep 2019 21:36:30 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4970", + "X-RateLimit-Reset": "1568068520", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"4e3dd7308c6c7e9e08b7a9000e0fbfdd\"", + "Last-Modified": "Sat, 07 Sep 2019 00:07:16 GMT", + "X-OAuth-Scopes": "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "DF6D:7CF5:CA117:F0DAF:5D76C5DD" + } + }, + "uuid": "0a34447d-6390-42da-ad5b-25bb566547f0", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/mappings/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/mappings/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json new file mode 100644 index 0000000000..b1eda52765 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/BasicBehaviors_whenProxying/mappings/user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json @@ -0,0 +1,43 @@ +{ + "id": "b4b6d514-c9e8-488f-802f-35e51d3ba5b3", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-b4b6d514-c9e8-488f-802f-35e51d3ba5b3.json", + "headers": { + "Date": "Mon, 09 Sep 2019 21:36:29 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4971", + "X-RateLimit-Reset": "1568068520", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified": "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes": "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "DF6D:7CF5:CA101:F0DA8:5D76C5DD" + } + }, + "uuid": "b4b6d514-c9e8-488f-802f-35e51d3ba5b3", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/user_whenNotProxying_Stubbed/__files/user-67d218ce-0abd-4a0a-98ea-626565e977ca.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/user_whenNotProxying_Stubbed/__files/user-67d218ce-0abd-4a0a-98ea-626565e977ca.json new file mode 100644 index 0000000000..672e8de4a1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/user_whenNotProxying_Stubbed/__files/user-67d218ce-0abd-4a0a-98ea-626565e977ca.json @@ -0,0 +1,33 @@ +{ + "login": "stubbed-user-login", + "id": 2958353, + "node_id": "MDGGVXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/2958353?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/stubbed-user-login", + "html_url": "https://github.com/stubbed-user-login", + "followers_url": "https://api.github.com/users/stubbed-user-login/followers", + "following_url": "https://api.github.com/users/stubbed-user-login/following{/other_user}", + "gists_url": "https://api.github.com/users/stubbed-user-login/gists{/gist_id}", + "starred_url": "https://api.github.com/users/stubbed-user-login/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/stubbed-user-login/subscriptions", + "organizations_url": "https://api.github.com/users/stubbed-user-login/orgs", + "repos_url": "https://api.github.com/users/stubbed-user-login/repos", + "events_url": "https://api.github.com/users/stubbed-user-login/events{/privacy}", + "received_events_url": "https://api.github.com/users/stubbed-user-login/received_events", + "type": "User", + "site_admin": false, + "name": "L. Jenkins", + "company": "Sometimes", + "blog": "", + "location": "Seattle, WA, USA", + "email": "stubbed-user-login@gmail.com", + "hireable": null, + "bio": "https://twitter.com/stubbed-user-login", + "public_repos": 166, + "public_gists": 4, + "followers": 133, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-06-03T17:47:20Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/user_whenNotProxying_Stubbed/mappings/user-67d218ce-0abd-4a0a-98ea-626565e977ca.json b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/user_whenNotProxying_Stubbed/mappings/user-67d218ce-0abd-4a0a-98ea-626565e977ca.json new file mode 100644 index 0000000000..e95d930539 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/WireMockStatusReporterTest/wiremock/user_whenNotProxying_Stubbed/mappings/user-67d218ce-0abd-4a0a-98ea-626565e977ca.json @@ -0,0 +1,40 @@ +{ + "id" : "67d218ce-0abd-4a0a-98ea-626565e977ca", + "name" : "user", + "request" : { + "url" : "/user", + "method" : "GET" + }, + "response" : { + "status" : 200, + "bodyFileName" : "user-67d218ce-0abd-4a0a-98ea-626565e977ca.json", + "headers" : { + "Date" : "Mon, 09 Sep 2019 21:24:28 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Server" : "GitHub.com", + "Status" : "200 OK", + "X-RateLimit-Limit" : "5000", + "X-RateLimit-Remaining" : "4981", + "X-RateLimit-Reset" : "1568067845", + "Cache-Control" : "private, max-age=60, s-maxage=60", + "Vary" : [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding" ], + "ETag" : "W/\"3ba1de3523043df743651bd23efc7def\"", + "Last-Modified" : "Mon, 03 Jun 2019 17:47:20 GMT", + "X-OAuth-Scopes" : "delete_repo, gist, notifications, repo", + "X-Accepted-OAuth-Scopes" : "", + "X-GitHub-Media-Type" : "unknown, github.v3", + "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin" : "*", + "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options" : "deny", + "X-Content-Type-Options" : "nosniff", + "X-XSS-Protection" : "1; mode=block", + "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy" : "default-src 'none'", + "X-GitHub-Request-Id" : "DEFC:7CF6:1726A3:1B693D:5D76C30C" + } + }, + "uuid" : "67d218ce-0abd-4a0a-98ea-626565e977ca", + "persistent" : true, + "insertionIndex" : 1 +} \ No newline at end of file