-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Do not populate repo list in case of installation:deleted event (#1690)
* Do not populate repo list in case of installation:deleted event * Implement discussed way to handle the situation * Fix codestyle * Fix build (I hope?) * Update GHEventPayload.java * Update GHEventPayload.java * Fix missing import * Update src/test/java/org/kohsuke/github/GHEventPayloadTest.java * Update src/test/java/org/kohsuke/github/GHEventPayloadTest.java * Apply suggestions from code review * Update test data --------- Co-authored-by: Liam Newman <[email protected]>
1 parent
0fac2a9
commit eb269bd
Showing
12 changed files
with
766 additions
and
22 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
98 changes: 98 additions & 0 deletions
98
src/test/resources/org/kohsuke/github/GHEventPayloadTest/installation_created.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,98 @@ | ||
{ | ||
"action": "created", | ||
"installation": { | ||
"id": 43898337, | ||
"account": { | ||
"login": "CronFire", | ||
"id": 68755481, | ||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4NzU1NDgx", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/68755481?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/CronFire", | ||
"html_url": "https://github.com/CronFire", | ||
"followers_url": "https://api.github.com/users/CronFire/followers", | ||
"following_url": "https://api.github.com/users/CronFire/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/CronFire/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/CronFire/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/CronFire/subscriptions", | ||
"organizations_url": "https://api.github.com/users/CronFire/orgs", | ||
"repos_url": "https://api.github.com/users/CronFire/repos", | ||
"events_url": "https://api.github.com/users/CronFire/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/CronFire/received_events", | ||
"type": "Organization", | ||
"site_admin": false | ||
}, | ||
"repository_selection": "selected", | ||
"access_tokens_url": "https://api.github.com/app/installations/43898337/access_tokens", | ||
"repositories_url": "https://api.github.com/installation/repositories", | ||
"html_url": "https://github.com/organizations/CronFire/settings/installations/43898337", | ||
"app_id": 421464, | ||
"app_slug": "kapybro-dev", | ||
"target_id": 68755481, | ||
"target_type": "Organization", | ||
"permissions": { | ||
"checks": "write", | ||
"issues": "write", | ||
"actions": "read", | ||
"members": "read", | ||
"contents": "write", | ||
"metadata": "read", | ||
"statuses": "write", | ||
"single_file": "read", | ||
"pull_requests": "write", | ||
"administration": "read" | ||
}, | ||
"events": [ | ||
"issues", | ||
"issue_comment", | ||
"organization", | ||
"public", | ||
"pull_request", | ||
"pull_request_review", | ||
"pull_request_review_comment", | ||
"push", | ||
"repository", | ||
"status" | ||
], | ||
"created_at": "2023-11-11T10:55:06.000+08:00", | ||
"updated_at": "2023-11-11T10:55:06.000+08:00", | ||
"single_file_name": ".github/kapybro/config.yml", | ||
"has_multiple_single_files": true, | ||
"single_file_paths": [ | ||
".github/kapybro/config.yml", | ||
".github/kapybro/rules.yml" | ||
], | ||
"suspended_by": null, | ||
"suspended_at": null | ||
}, | ||
"repositories": [ | ||
{ | ||
"id": 1296269, | ||
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", | ||
"name": "Hello-World", | ||
"full_name": "octocat/Hello-World", | ||
"private": false | ||
} | ||
], | ||
"requester": null, | ||
"sender": { | ||
"login": "Haarolean", | ||
"id": 1494347, | ||
"node_id": "MDQ6VXNlcjE0OTQzNDc=", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/1494347?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/Haarolean", | ||
"html_url": "https://github.com/Haarolean", | ||
"followers_url": "https://api.github.com/users/Haarolean/followers", | ||
"following_url": "https://api.github.com/users/Haarolean/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/Haarolean/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/Haarolean/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/Haarolean/subscriptions", | ||
"organizations_url": "https://api.github.com/users/Haarolean/orgs", | ||
"repos_url": "https://api.github.com/users/Haarolean/repos", | ||
"events_url": "https://api.github.com/users/Haarolean/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/Haarolean/received_events", | ||
"type": "User", | ||
"site_admin": false | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.