Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for workflow_job event payload
Fixes #1331
- Loading branch information
Showing
4 changed files
with
283 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
190 changes: 190 additions & 0 deletions
190
src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_job.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"action": "completed", | ||
"workflow_job": { | ||
"id": 6653410527, | ||
"run_id": 2408553341, | ||
"run_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/runs/2408553341", | ||
"run_attempt": 1, | ||
"node_id": "CR_kwDOEq3cwc8AAAABjJL83w", | ||
"head_sha": "5dd2dadfbdc2a722c08a8ad42ae4e26e3e731042", | ||
"url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/jobs/6653410527", | ||
"html_url": "https://github.com/gsmet/quarkus-bot-java-playground/runs/6653410527?check_suite_focus=true", | ||
"status": "completed", | ||
"conclusion": "failure", | ||
"started_at": "2022-05-30T10:55:25Z", | ||
"completed_at": "2022-05-30T10:55:57Z", | ||
"name": "JVM Tests - JDK JDK16", | ||
"steps": [ | ||
{ | ||
"name": "Set up job", | ||
"status": "completed", | ||
"conclusion": "success", | ||
"number": 1, | ||
"started_at": "2022-05-30T10:55:25.000Z", | ||
"completed_at": "2022-05-30T10:55:27.000Z" | ||
}, | ||
{ | ||
"name": "Run actions/checkout@v2", | ||
"status": "completed", | ||
"conclusion": "success", | ||
"number": 2, | ||
"started_at": "2022-05-30T10:55:27.000Z", | ||
"completed_at": "2022-05-30T10:55:27.000Z" | ||
}, | ||
{ | ||
"name": "Build with Maven", | ||
"status": "completed", | ||
"conclusion": "failure", | ||
"number": 4, | ||
"started_at": "2022-05-30T10:55:35.000Z", | ||
"completed_at": "2022-05-30T10:55:55.000Z" | ||
}, | ||
{ | ||
"name": "Post Run actions/checkout@v2", | ||
"status": "completed", | ||
"conclusion": "success", | ||
"number": 10, | ||
"started_at": "2022-05-30T10:55:55.000Z", | ||
"completed_at": "2022-05-30T10:55:56.000Z" | ||
}, | ||
{ | ||
"name": "Complete job", | ||
"status": "completed", | ||
"conclusion": "success", | ||
"number": 11, | ||
"started_at": "2022-05-30T10:55:56.000Z", | ||
"completed_at": "2022-05-30T10:55:56.000Z" | ||
} | ||
], | ||
"check_run_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/check-runs/6653410527", | ||
"labels": [ | ||
"ubuntu-latest" | ||
], | ||
"runner_id": 10, | ||
"runner_name": "GitHub Actions 10", | ||
"runner_group_id": 2, | ||
"runner_group_name": "GitHub Actions" | ||
}, | ||
"repository": { | ||
"id": 313384129, | ||
"node_id": "MDEwOlJlcG9zaXRvcnkzMTMzODQxMjk=", | ||
"name": "quarkus-bot-java-playground", | ||
"full_name": "gsmet/quarkus-bot-java-playground", | ||
"private": false, | ||
"owner": { | ||
"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 | ||
}, | ||
"html_url": "https://github.com/gsmet/quarkus-bot-java-playground", | ||
"description": null, | ||
"fork": false, | ||
"url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground", | ||
"forks_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/forks", | ||
"keys_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/keys{/key_id}", | ||
"collaborators_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/collaborators{/collaborator}", | ||
"teams_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/teams", | ||
"hooks_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/hooks", | ||
"issue_events_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues/events{/number}", | ||
"events_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/events", | ||
"assignees_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/assignees{/user}", | ||
"branches_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/branches{/branch}", | ||
"tags_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/tags", | ||
"blobs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/blobs{/sha}", | ||
"git_tags_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/tags{/sha}", | ||
"git_refs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/refs{/sha}", | ||
"trees_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/trees{/sha}", | ||
"statuses_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/statuses/{sha}", | ||
"languages_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/languages", | ||
"stargazers_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/stargazers", | ||
"contributors_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/contributors", | ||
"subscribers_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/subscribers", | ||
"subscription_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/subscription", | ||
"commits_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/commits{/sha}", | ||
"git_commits_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/commits{/sha}", | ||
"comments_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/comments{/number}", | ||
"issue_comment_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues/comments{/number}", | ||
"contents_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/contents/{+path}", | ||
"compare_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/compare/{base}...{head}", | ||
"merges_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/merges", | ||
"archive_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/{archive_format}{/ref}", | ||
"downloads_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/downloads", | ||
"issues_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues{/number}", | ||
"pulls_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/pulls{/number}", | ||
"milestones_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/milestones{/number}", | ||
"notifications_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/notifications{?since,all,participating}", | ||
"labels_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/labels{/name}", | ||
"releases_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/releases{/id}", | ||
"deployments_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/deployments", | ||
"created_at": "2020-11-16T17:55:53Z", | ||
"updated_at": "2021-12-22T17:20:52Z", | ||
"pushed_at": "2022-05-30T10:55:11Z", | ||
"git_url": "git://github.com/gsmet/quarkus-bot-java-playground.git", | ||
"ssh_url": "git@github.com:gsmet/quarkus-bot-java-playground.git", | ||
"clone_url": "https://github.com/gsmet/quarkus-bot-java-playground.git", | ||
"svn_url": "https://github.com/gsmet/quarkus-bot-java-playground", | ||
"homepage": null, | ||
"size": 88, | ||
"stargazers_count": 0, | ||
"watchers_count": 0, | ||
"language": "Java", | ||
"has_issues": true, | ||
"has_projects": true, | ||
"has_downloads": true, | ||
"has_wiki": true, | ||
"has_pages": false, | ||
"forks_count": 2, | ||
"mirror_url": null, | ||
"archived": false, | ||
"disabled": false, | ||
"open_issues_count": 36, | ||
"license": null, | ||
"allow_forking": true, | ||
"is_template": false, | ||
"topics": [], | ||
"visibility": "public", | ||
"forks": 2, | ||
"open_issues": 36, | ||
"watchers": 0, | ||
"default_branch": "main" | ||
}, | ||
"sender": { | ||
"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 | ||
}, | ||
"installation": { | ||
"id": 13005535, | ||
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTMwMDU1MzU=" | ||
} | ||
} |