diff --git a/src/main/java/org/kohsuke/github/GHCheckRunsIterable.java b/src/main/java/org/kohsuke/github/GHCheckRunsIterable.java new file mode 100644 index 000000000..10e7edd61 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHCheckRunsIterable.java @@ -0,0 +1,44 @@ +package org.kohsuke.github; + +import java.util.Iterator; + +import javax.annotation.Nonnull; + +/** + * Iterable for check-runs listing. + */ +class GHCheckRunsIterable extends PagedIterable { + private GitHub root; + private final GitHubRequest request; + + private GHCheckRunsPage result; + + public GHCheckRunsIterable(GitHub root, GitHubRequest request) { + this.root = root; + this.request = request; + } + + @Nonnull + @Override + public PagedIterator _iterator(int pageSize) { + return new PagedIterator<>( + adapt(GitHubPageIterator.create(root.getClient(), GHCheckRunsPage.class, request, pageSize)), + null); + } + + protected Iterator adapt(final Iterator base) { + return new Iterator() { + public boolean hasNext() { + return base.hasNext(); + } + + public GHCheckRun[] next() { + GHCheckRunsPage v = base.next(); + if (result == null) { + result = v; + } + return v.getCheckRuns(root); + } + }; + } +} diff --git a/src/main/java/org/kohsuke/github/GHCheckRunsPage.java b/src/main/java/org/kohsuke/github/GHCheckRunsPage.java new file mode 100644 index 000000000..946b7b0cf --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHCheckRunsPage.java @@ -0,0 +1,20 @@ +package org.kohsuke.github; + +/** + * Represents the one page of check-runs result when listing check-runs. + */ +class GHCheckRunsPage { + private int total_count; + private GHCheckRun[] check_runs; + + public int getTotalCount() { + return total_count; + } + + GHCheckRun[] getCheckRuns(GitHub root) { + for (GHCheckRun check_run : check_runs) { + check_run.wrap(root); + } + return check_runs; + } +} diff --git a/src/main/java/org/kohsuke/github/GHCommit.java b/src/main/java/org/kohsuke/github/GHCommit.java index fd4aa2f36..98568cb77 100644 --- a/src/main/java/org/kohsuke/github/GHCommit.java +++ b/src/main/java/org/kohsuke/github/GHCommit.java @@ -512,6 +512,19 @@ public class GHCommit { return owner.getLastCommitStatus(sha); } + /** + * Gets check-runs for given sha. + * + * @return check runs for given sha. + * @throws IOException + * on error + */ + @Preview + @Deprecated + public PagedIterable getCheckRuns() throws IOException { + return owner.getCheckRuns(sha); + } + /** * Some of the fields are not always filled in when this object is retrieved as a part of another API call. * diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index ce27e2d14..24349f03f 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1745,7 +1745,7 @@ public class GHRepository extends GHObject { } /** - * /** Lists all the commit statues attached to the given commit, newer ones first. + * /** Lists all the commit statuses attached to the given commit, newer ones first. * * @param sha1 * the sha 1 @@ -1773,6 +1773,27 @@ public class GHRepository extends GHObject { return v.isEmpty() ? null : v.get(0); } + /** + * Gets check runs for given ref. + * + * @param ref + * ref + * @return check runs for given ref + * @throws IOException + * the io exception + * @see List check runs + * for a specific ref + */ + @Preview + @Deprecated + public PagedIterable getCheckRuns(String ref) throws IOException { + GitHubRequest request = root.createRequest() + .withUrlPath(String.format("/repos/%s/%s/commits/%s/check-runs", getOwnerName(), name, ref)) + .withPreview(ANTIOPE) + .build(); + return new GHCheckRunsIterable(root, request); + } + /** * Creates a commit status * diff --git a/src/main/java/org/kohsuke/github/Previews.java b/src/main/java/org/kohsuke/github/Previews.java index 92b9235e8..3b67d4802 100644 --- a/src/main/java/org/kohsuke/github/Previews.java +++ b/src/main/java/org/kohsuke/github/Previews.java @@ -8,6 +8,12 @@ package org.kohsuke.github; * @author Kohsuke Kawaguchi */ class Previews { + /** + * Check-runs and check-suites + * + * @see GitHub API Previews + */ + static final String ANTIOPE = "application/vnd.github.antiope-preview+json"; /** * Commit Search diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index d2a89d298..c0a81e2ae 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -496,4 +496,31 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest { List collaborators = repo.listCollaborators().toList(); assertThat(collaborators.size(), greaterThan(10)); } + + @Test + public void getCheckRuns() throws Exception { + final int expectedCount = 8; + // Use github-api repository as it has checks set up + PagedIterable checkRuns = gitHub.getOrganization("github-api") + .getRepository("github-api") + .getCheckRuns("78b9ff49d47daaa158eb373c4e2e040f739df8b9"); + // Check if the paging works correctly + assertThat(checkRuns.withPageSize(2).iterator().nextPage(), hasSize(2)); + + // Check if the checkruns are all succeeded and if we got all of them + int checkRunsCount = 0; + for (GHCheckRun checkRun : checkRuns) { + assertThat(checkRun.getConclusion(), equalTo("success")); + checkRunsCount++; + } + assertThat(checkRunsCount, equalTo(expectedCount)); + } + + @Test + public void getLastCommitStatus() throws Exception { + GHCommitStatus status = getRepository().getLastCommitStatus("8051615eff597f4e49f4f47625e6fc2b49f26bfc"); + assertThat(status.getId(), equalTo(9027542286L)); + assertThat(status.getState(), equalTo(GHCommitState.SUCCESS)); + assertThat(status.getContext(), equalTo("ci/circleci: build")); + } } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/orgs_github-api-5d8b3f90-4fb5-4321-b979-b06127d19224.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/orgs_github-api-5d8b3f90-4fb5-4321-b979-b06127d19224.json new file mode 100644 index 000000000..64285eb59 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/orgs_github-api-5d8b3f90-4fb5-4321-b979-b06127d19224.json @@ -0,0 +1,25 @@ +{ + "login": "github-api", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "url": "https://api.github.com/orgs/github-api", + "repos_url": "https://api.github.com/orgs/github-api/repos", + "events_url": "https://api.github.com/orgs/github-api/events", + "hooks_url": "https://api.github.com/orgs/github-api/hooks", + "issues_url": "https://api.github.com/orgs/github-api/issues", + "members_url": "https://api.github.com/orgs/github-api/members{/member}", + "public_members_url": "https://api.github.com/orgs/github-api/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 1, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/github-api", + "created_at": "2019-09-04T18:12:34Z", + "updated_at": "2019-09-04T18:12:34Z", + "type": "Organization" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api-71c75ce1-402c-4835-8841-f1707d28d88d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api-71c75ce1-402c-4835-8841-f1707d28d88d.json new file mode 100644 index 000000000..6fa25db93 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api-71c75ce1-402c-4835-8841-f1707d28d88d.json @@ -0,0 +1,123 @@ +{ + "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": "2020-03-19T06:29:25Z", + "pushed_at": "2020-03-19T06:35:18Z", + "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": "https://github-api.kohsuke.org/", + "size": 20323, + "stargazers_count": 620, + "watchers_count": 620, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 467, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 66, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 467, + "open_issues": 66, + "watchers": 620, + "default_branch": "master", + "temp_clone_token": null, + "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": 467, + "subscribers_count": 48 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6f217f80-e2fa-4a54-b6ab-b110055d776a.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6f217f80-e2fa-4a54-b6ab-b110055d776a.json new file mode 100644 index 000000000..28c50efd0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6f217f80-e2fa-4a54-b6ab-b110055d776a.json @@ -0,0 +1,205 @@ +{ + "total_count": 8, + "check_runs": [ + { + "id": 514982798, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3OTg=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "44bef7c6-b952-5d8b-0142-2ae829612aad", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982798", + "html_url": "https://github.com/github-api/github-api/runs/514982798", + "details_url": "https://github.com/github-api/github-api/runs/514982798", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:32Z", + "completed_at": "2020-03-17T21:41:30Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982798/annotations" + }, + "name": "test (windows, Java 13)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + }, + { + "id": 514982790, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3OTA=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "5b9ee24e-a4fa-5b0f-9fef-471905f84b41", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982790", + "html_url": "https://github.com/github-api/github-api/runs/514982790", + "details_url": "https://github.com/github-api/github-api/runs/514982790", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:30Z", + "completed_at": "2020-03-17T21:41:01Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982790/annotations" + }, + "name": "test (windows, Java 11)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-f57cb1d4-4b6d-4f95-9d39-977d82bbdd6f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-f57cb1d4-4b6d-4f95-9d39-977d82bbdd6f.json new file mode 100644 index 000000000..28c50efd0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-f57cb1d4-4b6d-4f95-9d39-977d82bbdd6f.json @@ -0,0 +1,205 @@ +{ + "total_count": 8, + "check_runs": [ + { + "id": 514982798, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3OTg=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "44bef7c6-b952-5d8b-0142-2ae829612aad", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982798", + "html_url": "https://github.com/github-api/github-api/runs/514982798", + "details_url": "https://github.com/github-api/github-api/runs/514982798", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:32Z", + "completed_at": "2020-03-17T21:41:30Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982798/annotations" + }, + "name": "test (windows, Java 13)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + }, + { + "id": 514982790, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3OTA=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "5b9ee24e-a4fa-5b0f-9fef-471905f84b41", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982790", + "html_url": "https://github.com/github-api/github-api/runs/514982790", + "details_url": "https://github.com/github-api/github-api/runs/514982790", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:30Z", + "completed_at": "2020-03-17T21:41:01Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982790/annotations" + }, + "name": "test (windows, Java 11)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-1787eed0-2420-4fc6-84b7-7a36b96580b5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-1787eed0-2420-4fc6-84b7-7a36b96580b5.json new file mode 100644 index 000000000..46741003d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-1787eed0-2420-4fc6-84b7-7a36b96580b5.json @@ -0,0 +1,205 @@ +{ + "total_count": 8, + "check_runs": [ + { + "id": 514982775, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3NzU=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "19c43c68-82b5-5248-f491-e5f044c208d2", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982775", + "html_url": "https://github.com/github-api/github-api/runs/514982775", + "details_url": "https://github.com/github-api/github-api/runs/514982775", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:31Z", + "completed_at": "2020-03-17T21:40:41Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982775/annotations" + }, + "name": "test (ubuntu, Java 11)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + }, + { + "id": 514982765, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3NjU=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "e5309eb5-4e24-5531-8a99-f788d5041dd4", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982765", + "html_url": "https://github.com/github-api/github-api/runs/514982765", + "details_url": "https://github.com/github-api/github-api/runs/514982765", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:32Z", + "completed_at": "2020-03-17T21:40:55Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982765/annotations" + }, + "name": "test (ubuntu, Java 8)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-2c64ebec-78aa-4073-86be-689da8b5914a.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-2c64ebec-78aa-4073-86be-689da8b5914a.json new file mode 100644 index 000000000..9cefb4572 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-2c64ebec-78aa-4073-86be-689da8b5914a.json @@ -0,0 +1,205 @@ +{ + "total_count": 8, + "check_runs": [ + { + "id": 514982741, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3NDE=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "1117c5e3-7879-562b-d0b9-3c449bc32976", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982741", + "html_url": "https://github.com/github-api/github-api/runs/514982741", + "details_url": "https://github.com/github-api/github-api/runs/514982741", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:30Z", + "completed_at": "2020-03-17T21:38:38Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982741/annotations" + }, + "name": "site (Java 11)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + }, + { + "id": 514982721, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3MjE=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "1a964363-bc45-576e-c37e-1bfbfad21938", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982721", + "html_url": "https://github.com/github-api/github-api/runs/514982721", + "details_url": "https://github.com/github-api/github-api/runs/514982721", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:31Z", + "completed_at": "2020-03-17T21:38:40Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982721/annotations" + }, + "name": "build-only (Java 11)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-797b1c78-fa26-490b-84c8-bd33b21dc7f7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-797b1c78-fa26-490b-84c8-bd33b21dc7f7.json new file mode 100644 index 000000000..025284c84 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/__files/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-797b1c78-fa26-490b-84c8-bd33b21dc7f7.json @@ -0,0 +1,205 @@ +{ + "total_count": 8, + "check_runs": [ + { + "id": 514982786, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3ODY=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "0536020d-6bc0-5dd4-131c-cf0ea0f8710e", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982786", + "html_url": "https://github.com/github-api/github-api/runs/514982786", + "details_url": "https://github.com/github-api/github-api/runs/514982786", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:31Z", + "completed_at": "2020-03-17T21:40:55Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982786/annotations" + }, + "name": "test (windows, Java 8)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + }, + { + "id": 514982783, + "node_id": "MDg6Q2hlY2tSdW41MTQ5ODI3ODM=", + "head_sha": "78b9ff49d47daaa158eb373c4e2e040f739df8b9", + "external_id": "ce3cb3c3-d405-529e-dfe1-a7bc0daf3980", + "url": "https://api.github.com/repos/github-api/github-api/check-runs/514982783", + "html_url": "https://github.com/github-api/github-api/runs/514982783", + "details_url": "https://github.com/github-api/github-api/runs/514982783", + "status": "completed", + "conclusion": "success", + "started_at": "2020-03-17T21:37:31Z", + "completed_at": "2020-03-17T21:40:45Z", + "output": { + "title": null, + "summary": null, + "text": null, + "annotations_count": 0, + "annotations_url": "https://api.github.com/repos/github-api/github-api/check-runs/514982783/annotations" + }, + "name": "test (ubuntu, Java 13)", + "check_suite": { + "id": 528275399 + }, + "app": { + "id": 15368, + "slug": "github-actions", + "node_id": "MDM6QXBwMTUzNjg=", + "owner": { + "login": "github", + "id": 9919, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", + "avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/users/github/repos", + "events_url": "https://api.github.com/users/github/events{/privacy}", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "name": "GitHub Actions", + "description": "Automate your workflow from idea to production", + "external_url": "https://help.github.com/en/actions", + "html_url": "https://github.com/apps/github-actions", + "created_at": "2018-07-30T09:30:17Z", + "updated_at": "2019-12-10T19:04:12Z", + "permissions": { + "actions": "write", + "checks": "write", + "contents": "write", + "deployments": "write", + "issues": "write", + "metadata": "read", + "packages": "write", + "pages": "write", + "pull_requests": "write", + "repository_hooks": "write", + "repository_projects": "write", + "statuses": "write", + "vulnerability_alerts": "read" + }, + "events": [ + "check_run", + "check_suite", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "milestone", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "status", + "watch" + ] + }, + "pull_requests": [] + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/orgs_github-api-1-5d8b3f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/orgs_github-api-1-5d8b3f.json new file mode 100644 index 000000000..1b99efcac --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/orgs_github-api-1-5d8b3f.json @@ -0,0 +1,44 @@ +{ + "id": "5d8b3f90-4fb5-4321-b979-b06127d19224", + "name": "orgs_github-api", + "request": { + "url": "/orgs/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-5d8b3f90-4fb5-4321-b979-b06127d19224.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:01 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "39", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"ecb2a1373168a8fb973e115a07230ce6\"", + "Last-Modified": "Wed, 04 Sep 2019 18:12:34 GMT", + "X-GitHub-Media-Type": "unknown, github.v3", + "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": "BDDE:30E5B:FEA263:12C841D:5E739BB0" + } + }, + "uuid": "5d8b3f90-4fb5-4321-b979-b06127d19224", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api-2-71c75c.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api-2-71c75c.json new file mode 100644 index 000000000..263956cc5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api-2-71c75c.json @@ -0,0 +1,44 @@ +{ + "id": "71c75ce1-402c-4835-8841-f1707d28d88d", + "name": "repos_github-api_github-api", + "request": { + "url": "/repos/github-api/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api-71c75ce1-402c-4835-8841-f1707d28d88d.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:01 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "38", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"f33ae8fda7c258c7081ddff5ca75c272\"", + "Last-Modified": "Thu, 19 Mar 2020 06:29:25 GMT", + "X-GitHub-Media-Type": "unknown, github.v3", + "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": "BDDE:30E5B:FEA2E4:12C845E:5E739BB1" + } + }, + "uuid": "71c75ce1-402c-4835-8841-f1707d28d88d", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-3-6f217f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-3-6f217f.json new file mode 100644 index 000000000..a4da0dd25 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-3-6f217f.json @@ -0,0 +1,47 @@ +{ + "id": "6f217f80-e2fa-4a54-b6ab-b110055d776a", + "name": "repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs", + "request": { + "url": "/repos/github-api/github-api/commits/78b9ff49d47daaa158eb373c4e2e040f739df8b9/check-runs?per_page=2", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.antiope-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6f217f80-e2fa-4a54-b6ab-b110055d776a.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:01 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "37", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"5c7ad916e0537e392ec3722c55925cf1\"", + "X-GitHub-Media-Type": "github.antiope-preview; format=json", + "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": "BDDE:30E5B:FEA319:12C84FD:5E739BB1", + "Link": "; rel=\"next\", ; rel=\"last\"" + } + }, + "uuid": "6f217f80-e2fa-4a54-b6ab-b110055d776a", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-github-api-commits-78b9ff49d47daaa158eb373c4e2e040f739df8b9-check-runs", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-github-api-commits-78b9ff49d47daaa158eb373c4e2e040f739df8b9-check-runs-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-4-f57cb1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-4-f57cb1.json new file mode 100644 index 000000000..6c4c8dbbb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-4-f57cb1.json @@ -0,0 +1,46 @@ +{ + "id": "f57cb1d4-4b6d-4f95-9d39-977d82bbdd6f", + "name": "repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs", + "request": { + "url": "/repos/github-api/github-api/commits/78b9ff49d47daaa158eb373c4e2e040f739df8b9/check-runs?per_page=2", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.antiope-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api_github-api_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-f57cb1d4-4b6d-4f95-9d39-977d82bbdd6f.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:02 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "36", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"5c7ad916e0537e392ec3722c55925cf1\"", + "X-GitHub-Media-Type": "github.antiope-preview; format=json", + "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": "BDDE:30E5B:FEA357:12C854E:5E739BB1", + "Link": "; rel=\"next\", ; rel=\"last\"" + } + }, + "uuid": "f57cb1d4-4b6d-4f95-9d39-977d82bbdd6f", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-github-api-commits-78b9ff49d47daaa158eb373c4e2e040f739df8b9-check-runs", + "requiredScenarioState": "scenario-1-repos-github-api-github-api-commits-78b9ff49d47daaa158eb373c4e2e040f739df8b9-check-runs-2", + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-5-797b1c.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-5-797b1c.json new file mode 100644 index 000000000..ff4eb398c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-5-797b1c.json @@ -0,0 +1,44 @@ +{ + "id": "797b1c78-fa26-490b-84c8-bd33b21dc7f7", + "name": "repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs", + "request": { + "url": "/repositories/617210/commits/78b9ff49d47daaa158eb373c4e2e040f739df8b9/check-runs?per_page=2&page=2", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.antiope-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-797b1c78-fa26-490b-84c8-bd33b21dc7f7.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:02 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "35", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"22040f1bbc4c4aeaee4a1f56379fc6d4\"", + "X-GitHub-Media-Type": "github.antiope-preview; format=json", + "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": "BDDE:30E5B:FEA3E7:12C8610:5E739BB2", + "Link": "; rel=\"prev\", ; rel=\"next\", ; rel=\"last\", ; rel=\"first\"" + } + }, + "uuid": "797b1c78-fa26-490b-84c8-bd33b21dc7f7", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6-1787ee.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6-1787ee.json new file mode 100644 index 000000000..bbfa90adc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-6-1787ee.json @@ -0,0 +1,44 @@ +{ + "id": "1787eed0-2420-4fc6-84b7-7a36b96580b5", + "name": "repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs", + "request": { + "url": "/repositories/617210/commits/78b9ff49d47daaa158eb373c4e2e040f739df8b9/check-runs?per_page=2&page=3", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.antiope-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-1787eed0-2420-4fc6-84b7-7a36b96580b5.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "34", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"a934b2e696c0fe16e8c65304c51fc41e\"", + "X-GitHub-Media-Type": "github.antiope-preview; format=json", + "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": "BDDE:30E5B:FEA459:12C8695:5E739BB2", + "Link": "; rel=\"prev\", ; rel=\"next\", ; rel=\"last\", ; rel=\"first\"" + } + }, + "uuid": "1787eed0-2420-4fc6-84b7-7a36b96580b5", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-7-2c64eb.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-7-2c64eb.json new file mode 100644 index 000000000..0fdb67216 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getCheckRuns/mappings/repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-7-2c64eb.json @@ -0,0 +1,44 @@ +{ + "id": "2c64ebec-78aa-4073-86be-689da8b5914a", + "name": "repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs", + "request": { + "url": "/repositories/617210/commits/78b9ff49d47daaa158eb373c4e2e040f739df8b9/check-runs?per_page=2&page=4", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.antiope-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repositories_617210_commits_78b9ff49d47daaa158eb373c4e2e040f739df8b9_check-runs-2c64ebec-78aa-4073-86be-689da8b5914a.json", + "headers": { + "Date": "Thu, 19 Mar 2020 16:20:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "60", + "X-RateLimit-Remaining": "33", + "X-RateLimit-Reset": "1584637771", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"677a878b33bbf484fdba9c2572e50cbd\"", + "X-GitHub-Media-Type": "github.antiope-preview; format=json", + "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": "BDDE:30E5B:FEA4E9:12C8752:5E739BB3", + "Link": "; rel=\"prev\", ; rel=\"first\"" + } + }, + "uuid": "2c64ebec-78aa-4073-86be-689da8b5914a", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/orgs_github-api-test-org-793c4cc7-7741-4f8e-b96f-bb0626ce2d51.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/orgs_github-api-test-org-793c4cc7-7741-4f8e-b96f-bb0626ce2d51.json new file mode 100644 index 000000000..d4554f3bc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/orgs_github-api-test-org-793c4cc7-7741-4f8e-b96f-bb0626ce2d51.json @@ -0,0 +1,25 @@ +{ + "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": 11, + "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" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/repos_github-api-test-org_github-8051615eff597f4e49f4f47625e6fc2b49f26bfc-975c9dbb-4cd0-4ee0-baa4-a2f092e437b6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/repos_github-api-test-org_github-8051615eff597f4e49f4f47625e6fc2b49f26bfc-975c9dbb-4cd0-4ee0-baa4-a2f092e437b6.json new file mode 100644 index 000000000..4e96c3b77 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/repos_github-api-test-org_github-8051615eff597f4e49f4f47625e6fc2b49f26bfc-975c9dbb-4cd0-4ee0-baa4-a2f092e437b6.json @@ -0,0 +1,98 @@ +[ + { + "url": "https://api.github.com/repos/avano/curly-garbanzo/statuses/7019a73a32cf4162ec1d052756df404b5fa0ebf0", + "avatar_url": "https://avatars2.githubusercontent.com/oa/4808?v=4", + "id": 9027542286, + "node_id": "MDEzOlN0YXR1c0NvbnRleHQ5MDI3NTQyMjg2", + "state": "success", + "description": "Your tests passed on CircleCI!", + "target_url": "https://circleci.com/gh/avano/curly-garbanzo/35?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link", + "context": "ci/circleci: build", + "created_at": "2020-03-07T16:39:49Z", + "updated_at": "2020-03-07T16:39:49Z", + "creator": { + "login": "avano", + "id": 7081216, + "node_id": "MDQ6VXNlcjcwODEyMTY=", + "avatar_url": "https://avatars2.githubusercontent.com/u/7081216?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/avano", + "html_url": "https://github.com/avano", + "followers_url": "https://api.github.com/users/avano/followers", + "following_url": "https://api.github.com/users/avano/following{/other_user}", + "gists_url": "https://api.github.com/users/avano/gists{/gist_id}", + "starred_url": "https://api.github.com/users/avano/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/avano/subscriptions", + "organizations_url": "https://api.github.com/users/avano/orgs", + "repos_url": "https://api.github.com/users/avano/repos", + "events_url": "https://api.github.com/users/avano/events{/privacy}", + "received_events_url": "https://api.github.com/users/avano/received_events", + "type": "User", + "site_admin": false + } + }, + { + "url": "https://api.github.com/repos/avano/curly-garbanzo/statuses/7019a73a32cf4162ec1d052756df404b5fa0ebf0", + "avatar_url": "https://avatars2.githubusercontent.com/oa/4808?v=4", + "id": 9027541768, + "node_id": "MDEzOlN0YXR1c0NvbnRleHQ5MDI3NTQxNzY4", + "state": "pending", + "description": "CircleCI is running your tests", + "target_url": "https://circleci.com/gh/avano/curly-garbanzo/35?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link", + "context": "ci/circleci: build", + "created_at": "2020-03-07T16:39:33Z", + "updated_at": "2020-03-07T16:39:33Z", + "creator": { + "login": "avano", + "id": 7081216, + "node_id": "MDQ6VXNlcjcwODEyMTY=", + "avatar_url": "https://avatars2.githubusercontent.com/u/7081216?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/avano", + "html_url": "https://github.com/avano", + "followers_url": "https://api.github.com/users/avano/followers", + "following_url": "https://api.github.com/users/avano/following{/other_user}", + "gists_url": "https://api.github.com/users/avano/gists{/gist_id}", + "starred_url": "https://api.github.com/users/avano/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/avano/subscriptions", + "organizations_url": "https://api.github.com/users/avano/orgs", + "repos_url": "https://api.github.com/users/avano/repos", + "events_url": "https://api.github.com/users/avano/events{/privacy}", + "received_events_url": "https://api.github.com/users/avano/received_events", + "type": "User", + "site_admin": false + } + }, + { + "url": "https://api.github.com/repos/avano/curly-garbanzo/statuses/7019a73a32cf4162ec1d052756df404b5fa0ebf0", + "avatar_url": "https://avatars2.githubusercontent.com/oa/4808?v=4", + "id": 9027541296, + "node_id": "MDEzOlN0YXR1c0NvbnRleHQ5MDI3NTQxMjk2", + "state": "pending", + "description": "Your tests are queued behind your running builds", + "target_url": "https://circleci.com/gh/avano/curly-garbanzo/35?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link", + "context": "ci/circleci: build", + "created_at": "2020-03-07T16:39:24Z", + "updated_at": "2020-03-07T16:39:24Z", + "creator": { + "login": "avano", + "id": 7081216, + "node_id": "MDQ6VXNlcjcwODEyMTY=", + "avatar_url": "https://avatars2.githubusercontent.com/u/7081216?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/avano", + "html_url": "https://github.com/avano", + "followers_url": "https://api.github.com/users/avano/followers", + "following_url": "https://api.github.com/users/avano/following{/other_user}", + "gists_url": "https://api.github.com/users/avano/gists{/gist_id}", + "starred_url": "https://api.github.com/users/avano/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/avano/subscriptions", + "organizations_url": "https://api.github.com/users/avano/orgs", + "repos_url": "https://api.github.com/users/avano/repos", + "events_url": "https://api.github.com/users/avano/events{/privacy}", + "received_events_url": "https://api.github.com/users/avano/received_events", + "type": "User", + "site_admin": false + } + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/repos_github-api-test-org_github-api-6352b5c2-d793-4c94-ac5f-9607d6b665f4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/repos_github-api-test-org_github-api-6352b5c2-d793-4c94-ac5f-9607d6b665f4.json new file mode 100644 index 000000000..0c10c10cc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/repos_github-api-test-org_github-api-6352b5c2-d793-4c94-ac5f-9607d6b665f4.json @@ -0,0 +1,328 @@ +{ + "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": "Tricky", + "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": "2020-01-16T21:22:56Z", + "pushed_at": "2020-01-18T00:47:43Z", + "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": 11414, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": true, + "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": 3, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 3, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": false, + "push": false, + "pull": true + }, + "temp_clone_token": "", + "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": "2020-03-13T15:06:48Z", + "pushed_at": "2020-03-13T11:24:44Z", + "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": "https://github-api.kohsuke.org/", + "size": 20265, + "stargazers_count": 618, + "watchers_count": 618, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 467, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 65, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 467, + "open_issues": 65, + "watchers": 618, + "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": "2020-03-13T15:06:48Z", + "pushed_at": "2020-03-13T11:24:44Z", + "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": "https://github-api.kohsuke.org/", + "size": 20265, + "stargazers_count": 618, + "watchers_count": 618, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 467, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 65, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 467, + "open_issues": 65, + "watchers": 618, + "default_branch": "master" + }, + "network_count": 467, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/user-d332ba59-878f-47c2-b875-0bb64784cf03.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/user-d332ba59-878f-47c2-b875-0bb64784cf03.json new file mode 100644 index 000000000..12b09a2f6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/__files/user-d332ba59-878f-47c2-b875-0bb64784cf03.json @@ -0,0 +1,45 @@ +{ + "login": "avano", + "id": 7081216, + "node_id": "MDQ6VXNlcjcwODEyMTY=", + "avatar_url": "https://avatars2.githubusercontent.com/u/7081216?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/avano", + "html_url": "https://github.com/avano", + "followers_url": "https://api.github.com/users/avano/followers", + "following_url": "https://api.github.com/users/avano/following{/other_user}", + "gists_url": "https://api.github.com/users/avano/gists{/gist_id}", + "starred_url": "https://api.github.com/users/avano/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/avano/subscriptions", + "organizations_url": "https://api.github.com/users/avano/orgs", + "repos_url": "https://api.github.com/users/avano/repos", + "events_url": "https://api.github.com/users/avano/events{/privacy}", + "received_events_url": "https://api.github.com/users/avano/received_events", + "type": "User", + "site_admin": false, + "name": "Andrej Vaňo", + "company": "Red Hat", + "blog": "", + "location": "Trnava, Slovakia", + "email": null, + "hireable": true, + "bio": null, + "public_repos": 30, + "public_gists": 3, + "followers": 9, + "following": 6, + "created_at": "2014-03-27T12:40:40Z", + "updated_at": "2020-03-14T12:16:56Z", + "private_gists": 19, + "total_private_repos": 5, + "owned_private_repos": 2, + "disk_usage": 13029, + "collaborators": 1, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/orgs_github-api-test-org-2-793c4c.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/orgs_github-api-test-org-2-793c4c.json new file mode 100644 index 000000000..b7efc1bdc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/orgs_github-api-test-org-2-793c4c.json @@ -0,0 +1,48 @@ +{ + "id": "793c4cc7-7741-4f8e-b96f-bb0626ce2d51", + "name": "orgs_github-api-test-org", + "request": { + "url": "/orgs/github-api-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_github-api-test-org-793c4cc7-7741-4f8e-b96f-bb0626ce2d51.json", + "headers": { + "Date": "Sat, 14 Mar 2020 15:07:44 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": "1584201811", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"d3a6d1a77c4b07aae3e9b04a82656ebb\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "repo, user", + "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, Deprecation, Sunset", + "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": "87CC:8D92:62306E8:73BAA7C:5E6CF33E" + } + }, + "uuid": "793c4cc7-7741-4f8e-b96f-bb0626ce2d51", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/repos_github-api-test-org_github-api-3-6352b5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/repos_github-api-test-org_github-api-3-6352b5.json new file mode 100644 index 000000000..31b9974b9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/repos_github-api-test-org_github-api-3-6352b5.json @@ -0,0 +1,48 @@ +{ + "id": "6352b5c2-d793-4c94-ac5f-9607d6b665f4", + "name": "repos_github-api-test-org_github-api", + "request": { + "url": "/repos/github-api-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-api-6352b5c2-d793-4c94-ac5f-9607d6b665f4.json", + "headers": { + "Date": "Sat, 14 Mar 2020 15:07:44 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4991", + "X-RateLimit-Reset": "1584201811", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"8f1b1f15656de4680f896a990a1feaca\"", + "Last-Modified": "Thu, 16 Jan 2020 21:22:56 GMT", + "X-OAuth-Scopes": "repo, user", + "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, Deprecation, Sunset", + "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": "87CC:8D92:6230718:73BACB4:5E6CF340" + } + }, + "uuid": "6352b5c2-d793-4c94-ac5f-9607d6b665f4", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/repos_github-api-test-org_github-api_statuses_8051615eff597f4e49f4f47625e6fc2b49f26bfc-4-a9d176.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/repos_github-api-test-org_github-api_statuses_8051615eff597f4e49f4f47625e6fc2b49f26bfc-4-a9d176.json new file mode 100644 index 000000000..3a50a0f3d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/repos_github-api-test-org_github-api_statuses_8051615eff597f4e49f4f47625e6fc2b49f26bfc-4-a9d176.json @@ -0,0 +1,47 @@ +{ + "id": "a9d176d5-8a1d-452c-932d-1c86182695bc", + "name": "repos_github-api-test-org_github-api_statuses_8051615eff597f4e49f4f47625e6fc2b49f26bfc", + "request": { + "url": "/repos/github-api-test-org/github-api/statuses/8051615eff597f4e49f4f47625e6fc2b49f26bfc", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_github-8051615eff597f4e49f4f47625e6fc2b49f26bfc-975c9dbb-4cd0-4ee0-baa4-a2f092e437b6.json", + "headers": { + "Date": "Sat, 14 Mar 2020 15:07:44 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": "1584201810", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"4f2c1efa0a5363e128144e5c3014b948\"", + "X-OAuth-Scopes": "repo, user", + "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, Deprecation, Sunset", + "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": "87CC:8D92:6230768:73BAD10:5E6CF340" + } + }, + "uuid": "a9d176d5-8a1d-452c-932d-1c86182695bc", + "persistent": true, + "insertionIndex": 4 +} diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/user-1-d332ba.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/user-1-d332ba.json new file mode 100644 index 000000000..dcb61c805 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getLastCommitStatus/mappings/user-1-d332ba.json @@ -0,0 +1,48 @@ +{ + "id": "d332ba59-878f-47c2-b875-0bb64784cf03", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "user-d332ba59-878f-47c2-b875-0bb64784cf03.json", + "headers": { + "Date": "Sat, 14 Mar 2020 15:07:42 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": "1584201810", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"2d7f07ae430e1e01c00f89d0a787b0b5\"", + "Last-Modified": "Sat, 14 Mar 2020 12:16:56 GMT", + "X-OAuth-Scopes": "repo, user", + "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, Deprecation, Sunset", + "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": "87CC:8D92:62304E9:73BAA10:5E6CF33E" + } + }, + "uuid": "d332ba59-878f-47c2-b875-0bb64784cf03", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file