summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGerry Agbobada <10496163+gagbo@users.noreply.github.com>2023-07-19 14:43:01 +0200
committerGitHub <noreply@github.com>2023-07-19 14:43:01 +0200
commit01e8024a228ed98daac41bfd93715c3914d09ad2 (patch)
tree78790998f38f6bdc52e04720c843db6963c13dfa /tests
parentcb585d8ee3cf6c023dbe1469db85268b577da075 (diff)
Add installation related webhook app events (#420)v0.28.0
Breaking: the installation stored in WrappedEventPayload now contains 2 variants, depending on whether the event comes from an installation_ related webhook event, or something else.
Diffstat (limited to 'tests')
-rw-r--r--tests/resources/installation_event.json100
1 files changed, 100 insertions, 0 deletions
diff --git a/tests/resources/installation_event.json b/tests/resources/installation_event.json
new file mode 100644
index 0000000..0032073
--- /dev/null
+++ b/tests/resources/installation_event.json
@@ -0,0 +1,100 @@
+{
+ "action": "created",
+ "installation": {
+ "id": 7777777,
+ "account": {
+ "login": "gagbo",
+ "id": 88888,
+ "node_id": "PLACEHOLDER_NODE_ID",
+ "avatar_url": "https://avatars.githubusercontent.com/u/88888?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/gagbo",
+ "html_url": "https://github.com/gagbo",
+ "followers_url": "https://api.github.com/users/gagbo/followers",
+ "following_url": "https://api.github.com/users/gagbo/following{/other_user}",
+ "gists_url": "https://api.github.com/users/gagbo/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/gagbo/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/gagbo/subscriptions",
+ "organizations_url": "https://api.github.com/users/gagbo/orgs",
+ "repos_url": "https://api.github.com/users/gagbo/repos",
+ "events_url": "https://api.github.com/users/gagbo/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/gagbo/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repository_selection": "all",
+ "access_tokens_url": "https://api.github.com/app/installations/39593520/access_tokens",
+ "repositories_url": "https://api.github.com/installation/repositories",
+ "html_url": "https://github.com/settings/installations/39593520",
+ "app_id": 360617,
+ "app_slug": "gagbo-test-app",
+ "target_id": 88888,
+ "target_type": "User",
+ "permissions": {
+ "issues": "write",
+ "actions": "write",
+ "metadata": "read",
+ "pull_requests": "write"
+ },
+ "events": [
+ "issues",
+ "issue_comment",
+ "pull_request",
+ "pull_request_review",
+ "pull_request_review_comment",
+ "pull_request_review_thread",
+ "repository"
+ ],
+ "created_at": "2023-07-13T11:35:31.000+02:00",
+ "updated_at": "2023-07-13T11:35:32.000+02:00",
+ "single_file_name": null,
+ "has_multiple_single_files": false,
+ "single_file_paths": [],
+ "suspended_by": null,
+ "suspended_at": null
+ },
+ "repositories": [
+ {
+ "id": 29128586,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyOTEyODU4Ng==",
+ "name": "ViscoElRebound",
+ "full_name": "gagbo/ViscoElRebound",
+ "private": false
+ },
+ {
+ "id": 109778911,
+ "node_id": "MDEwOlJlcG9zaXRvcnkxMDk3Nzg5MTE=",
+ "name": "OSSU",
+ "full_name": "gagbo/OSSU",
+ "private": true
+ },
+ {
+ "id": 665086759,
+ "node_id": "R_kgDOJ6RrJw",
+ "name": "octocrab",
+ "full_name": "gagbo/octocrab",
+ "private": false
+ }
+ ],
+ "requester": null,
+ "sender": {
+ "login": "gagbo",
+ "id": 88888,
+ "node_id": "PLACEHOLDER_NODE_ID",
+ "avatar_url": "https://avatars.githubusercontent.com/u/88888?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/gagbo",
+ "html_url": "https://github.com/gagbo",
+ "followers_url": "https://api.github.com/users/gagbo/followers",
+ "following_url": "https://api.github.com/users/gagbo/following{/other_user}",
+ "gists_url": "https://api.github.com/users/gagbo/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/gagbo/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/gagbo/subscriptions",
+ "organizations_url": "https://api.github.com/users/gagbo/orgs",
+ "repos_url": "https://api.github.com/users/gagbo/repos",
+ "events_url": "https://api.github.com/users/gagbo/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/gagbo/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+}