diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRun.java b/src/main/java/org/kohsuke/github/GHWorkflowRun.java index d13bd9dc02..6b2a3ab063 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflowRun.java +++ b/src/main/java/org/kohsuke/github/GHWorkflowRun.java @@ -299,6 +299,16 @@ public void rerun() throws IOException { root().createRequest().method("POST").withUrlPath(getApiRoute(), "rerun").send(); } + /** + * Approve the workflow run. + * + * @throws IOException + * the io exception + */ + public void approve() throws IOException { + root().createRequest().method("POST").withUrlPath(getApiRoute(), "approve").send(); + } + /** * Lists the artifacts attached to this workflow run. * diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java b/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java index 57a482d1bf..444814525a 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java @@ -1,5 +1,6 @@ package org.kohsuke.github; +import org.kohsuke.github.GHWorkflowRun.Conclusion; import org.kohsuke.github.GHWorkflowRun.Status; /** @@ -88,6 +89,20 @@ public GHWorkflowRunQueryBuilder status(Status status) { return this; } + /** + * Conclusion workflow run query builder. + *

+ * The GitHub API is also using the status field to search by conclusion. + * + * @param conclusion + * the conclusion + * @return the gh workflow run query builder + */ + public GHWorkflowRunQueryBuilder conclusion(Conclusion conclusion) { + req.with("status", conclusion.toString()); + return this; + } + @Override public PagedIterable list() { return new GHWorkflowRunsIterable(repo, req.withUrlPath(repo.getApiTailUrl("actions/runs"))); diff --git a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java index 402635c548..1132b23276 100644 --- a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java +++ b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java @@ -3,6 +3,7 @@ import org.awaitility.Awaitility; import org.junit.Before; import org.junit.Test; +import org.kohsuke.github.GHPullRequestQueryBuilder.Sort; import org.kohsuke.github.GHWorkflowJob.Step; import org.kohsuke.github.GHWorkflowRun.Conclusion; import org.kohsuke.github.GHWorkflowRun.Status; @@ -362,18 +363,57 @@ public void testJobs() throws IOException { assertThat(allJobs.size(), greaterThanOrEqualTo(2)); } - private void await(Function condition) throws IOException { + @Test + public void testApproval() throws IOException { + List pullRequests = repo.queryPullRequests() + .base(MAIN_BRANCH) + .sort(Sort.CREATED) + .direction(GHDirection.DESC) + .state(GHIssueState.OPEN) + .list() + .toList(); + + assertThat(pullRequests.size(), greaterThanOrEqualTo(1)); + GHPullRequest pullRequest = pullRequests.get(0); + + await("Waiting for workflow run to be pending", + (nonRecordingRepo) -> getWorkflowRun(nonRecordingRepo, + FAST_WORKFLOW_NAME, + MAIN_BRANCH, + Conclusion.ACTION_REQUIRED).isPresent()); + + GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME, MAIN_BRANCH, Conclusion.ACTION_REQUIRED) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); + + workflowRun.approve(); + + await("Waiting for workflow run to be approved", + (nonRecordingRepo) -> getWorkflowRun(nonRecordingRepo, + FAST_WORKFLOW_NAME, + pullRequest.getHead().getRef(), + Conclusion.SUCCESS).isPresent()); + + workflowRun = repo.getWorkflowRun(workflowRun.getId()); + + assertThat(workflowRun.getConclusion(), is(Conclusion.SUCCESS)); + } + + private void await(String alias, Function condition) throws IOException { if (!mockGitHub.isUseProxy()) { return; } GHRepository nonRecordingRepo = getNonRecordingGitHub().getRepository(REPO_NAME); - Awaitility.await().pollInterval(Duration.ofSeconds(5)).atMost(Duration.ofSeconds(60)).until(() -> { + Awaitility.await(alias).pollInterval(Duration.ofSeconds(5)).atMost(Duration.ofSeconds(60)).until(() -> { return condition.apply(nonRecordingRepo); }); } + private void await(Function condition) throws IOException { + await(null, condition); + } + private long getLatestPreexistingWorkflowRunId() { return repo.queryWorkflowRuns().list().withPageSize(1).iterator().next().getId(); } @@ -407,6 +447,31 @@ private Optional getWorkflowRun(String workflowName, return getWorkflowRun(this.repo, workflowName, branch, status, latestPreexistingWorkflowRunId); } + private static Optional getWorkflowRun(GHRepository repository, + String workflowName, + String branch, + Conclusion conclusion) { + List workflowRuns = repository.queryWorkflowRuns() + .branch(branch) + .conclusion(conclusion) + .event(GHEvent.PULL_REQUEST) + .list() + .withPageSize(20) + .iterator() + .nextPage(); + + for (GHWorkflowRun workflowRun : workflowRuns) { + if (workflowRun.getName().equals(workflowName)) { + return Optional.of(workflowRun); + } + } + return Optional.empty(); + } + + private Optional getWorkflowRun(String workflowName, String branch, Conclusion conclusion) { + return getWorkflowRun(this.repo, workflowName, branch, conclusion); + } + private static Status getWorkflowRunStatus(GHRepository repository, long workflowRunId) { try { return repository.getWorkflowRun(workflowRunId).getStatus(); diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest-1.json new file mode 100644 index 0000000000..4464472190 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest-1.json @@ -0,0 +1,140 @@ +{ + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments", + "created_at": "2021-03-17T10:50:49Z", + "updated_at": "2021-04-05T12:08:00Z", + "pushed_at": "2022-08-17T10:55:33Z", + "git_url": "git://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowRunTest.git", + "clone_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "svn_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "homepage": null, + "size": 7, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 8, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 1, + "subscribers_count": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json new file mode 100644 index 0000000000..d160774ab6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json @@ -0,0 +1,881 @@ +{ + "total_count": 4, + "workflow_runs": [ + { + "id": 2874767916, + "name": "Slow workflow", + "node_id": "WFR_kwLOFMhYrM6rWXos", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/slow-workflow.yml", + "run_number": 21, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 6820849, + "check_suite_id": 7851902990, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIDg", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902990", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820849", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + }, + { + "id": 2874767914, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM6rWXoq", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/artifacts-workflow.yml", + "run_number": 12, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 7433027, + "check_suite_id": 7851902993, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIEQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902993", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + }, + { + "id": 2874767918, + "name": "Fast workflow", + "node_id": "WFR_kwLOFMhYrM6rWXou", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/fast-workflow.yml", + "run_number": 78, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 6820790, + "check_suite_id": 7851902988, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIDA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902988", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + }, + { + "id": 2874767920, + "name": "Failing workflow", + "node_id": "WFR_kwLOFMhYrM6rWXow", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/failing-workflow.yml", + "run_number": 6, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 6820886, + "check_suite_id": 7851902996, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIFA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902996", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820886", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json new file mode 100644 index 0000000000..647b3b5b52 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json @@ -0,0 +1,219 @@ +{ + "id": 2874767918, + "name": "Fast workflow", + "node_id": "WFR_kwLOFMhYrM6rWXou", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/fast-workflow.yml", + "run_number": 78, + "event": "pull_request", + "status": "completed", + "conclusion": "success", + "workflow_id": 6820790, + "check_suite_id": 7851902988, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIDA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T11:47:52Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 2, + "referenced_workflows": [], + "run_started_at": "2022-08-17T11:47:32Z", + "triggering_actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902988", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/rerun", + "previous_attempt_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/attempts/1", + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json new file mode 100644 index 0000000000..809c477fed --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json @@ -0,0 +1,330 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8", + "id": 1028677984, + "node_id": "PR_kwDOFMhYrM49UGFg", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8", + "diff_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8.diff", + "patch_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8", + "number": 8, + "state": "open", + "locked": false, + "title": "Create README.md ", + "user": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "body": "... as a test PR", + "created_at": "2022-08-17T10:55:33Z", + "updated_at": "2022-08-17T10:55:33Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "3c59c50930706a7cde5644f24d59100fab2d07d1", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "draft": false, + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/comments", + "review_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8/comments", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "head": { + "label": "holly-cummins:main", + "ref": "main", + "sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "user": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments", + "created_at": "2022-08-17T10:42:03Z", + "updated_at": "2021-04-05T12:08:00Z", + "pushed_at": "2022-08-17T10:55:13Z", + "git_url": "git://github.com/holly-cummins/GHWorkflowRunTest.git", + "ssh_url": "git@github.com:holly-cummins/GHWorkflowRunTest.git", + "clone_url": "https://github.com/holly-cummins/GHWorkflowRunTest.git", + "svn_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "homepage": null, + "size": 7, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "hub4j-test-org:main", + "ref": "main", + "sha": "c7bd3b8db871bbde8629275631ea645622ae89d7", + "user": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repo": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments", + "created_at": "2021-03-17T10:50:49Z", + "updated_at": "2021-04-05T12:08:00Z", + "pushed_at": "2022-08-17T10:55:33Z", + "git_url": "git://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowRunTest.git", + "clone_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "svn_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "homepage": null, + "size": 7, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 8, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8" + }, + "html": { + "href": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8" + }, + "issue": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8" + }, + "comments": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/b49a973e2a387787b8b3ef1212b848a1ec4f7b9a" + } + }, + "author_association": "FIRST_TIME_CONTRIBUTOR", + "auto_merge": null, + "active_lock_reason": null + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest-1.json new file mode 100644 index 0000000000..08c7fedfb1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest-1.json @@ -0,0 +1,47 @@ +{ + "id": "2fd575fb-448e-411c-90fd-b9d4d1d168df", + "name": "repos_hub4j-test-org_ghworkflowruntest", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:25 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"37b2062877beb4b2cc43337c2d02d1c44ce7a17ae794ebf7c0ae1f510ee0bb24\"", + "Last-Modified": "Mon, 05 Apr 2021 12:08:00 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4954", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "46", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8BBA:93DC:887943:8CDBCF:62FCD54C" + } + }, + "uuid": "2fd575fb-448e-411c-90fd-b9d4d1d168df", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json new file mode 100644 index 0000000000..3f1283ed99 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json @@ -0,0 +1,46 @@ +{ + "id": "f86d49aa-06b3-40c2-a2d4-0b4931507558", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs?branch=main&status=action_required&event=pull_request&per_page=20", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:31 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"666022f8289ae5c2b7a98a0ecb77d141f908f2a97ca2c7d8d0131acd0d6ba0dd\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4950", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "50", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8BC2:ED57:E8651C:EDA047:62FCD553" + } + }, + "uuid": "f86d49aa-06b3-40c2-a2d4-0b4931507558", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json new file mode 100644 index 0000000000..3f6bc81895 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json @@ -0,0 +1,46 @@ +{ + "id": "201d9618-9cdb-47af-9df7-6fa083e8192b", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"b973d789d1f5b02b252da8833fc6edd31353efb4a817e72825d37d0a7fb78d98\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4942", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "58", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8BD4:BC66:15B72:4B0CD:62FCD56E" + } + }, + "uuid": "201d9618-9cdb-47af-9df7-6fa083e8192b", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve-4.json new file mode 100644 index 0000000000..cb885e71e4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve-4.json @@ -0,0 +1,53 @@ +{ + "id": "579dc9e2-fa5c-468d-9b47-eff387065eae", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/approve", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "body": "{}", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:32 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"7dfd5806ff5c2f27d03077f8e5177ad2ffdd76141a8620be11222e0f7d2b3f18\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4949", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "51", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8BC4:68B5:906BFE:94D2A7:62FCD553" + } + }, + "uuid": "579dc9e2-fa5c-468d-9b47-eff387065eae", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json new file mode 100644 index 0000000000..b0478b4e10 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json @@ -0,0 +1,46 @@ +{ + "id": "a276d02f-3ba0-4714-9f51-995f6919942c", + "name": "repos_hub4j-test-org_ghworkflowruntest_pulls", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/pulls?base=main&sort=created&direction=desc&state=open", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.shadow-cat-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest_pulls-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:25 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"761d735213a1e481e1ed464edc3f1ad5cf5fd2e96723f34f7b54f04ca7684bc8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4953", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "47", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8BBC:93DD:11E4A5A:1237FE1:62FCD54D" + } + }, + "uuid": "a276d02f-3ba0-4714-9f51-995f6919942c", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file