Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/save_origin_webhooks/data/github_webhook_payload.json
- This file was added.
| { | |||||
| "ref": "refs/heads/main", | |||||
| "before": "63c72ea620a8d93aa14f0d60b9320881631c83ca", | |||||
| "after": "366675b3a4017eb3ace4452d8288ae664c4f0af4", | |||||
| "repository": { | |||||
| "id": 557370172, | |||||
| "node_id": "R_kgDOITjLPA", | |||||
| "name": "webhook-test", | |||||
| "full_name": "johndoe/webhook-test", | |||||
| "private": false, | |||||
| "owner": { | |||||
| "name": "johndoe", | |||||
| "email": "john.doe@example.org", | |||||
| "login": "johndoe", | |||||
| "id": 5493543, | |||||
| "node_id": "MDQ6VXNlcjU0OTM1NDM=", | |||||
| "avatar_url": "", | |||||
| "gravatar_id": "", | |||||
| "url": "https://api.github.com/users/johndoe", | |||||
| "html_url": "https://github.com/johndoe", | |||||
| "followers_url": "https://api.github.com/users/johndoe/followers", | |||||
| "following_url": "https://api.github.com/users/johndoe/following{/other_user}", | |||||
| "gists_url": "https://api.github.com/users/johndoe/gists{/gist_id}", | |||||
| "starred_url": "https://api.github.com/users/johndoe/starred{/owner}{/repo}", | |||||
| "subscriptions_url": "https://api.github.com/users/johndoe/subscriptions", | |||||
| "organizations_url": "https://api.github.com/users/johndoe/orgs", | |||||
| "repos_url": "https://api.github.com/users/johndoe/repos", | |||||
| "events_url": "https://api.github.com/users/johndoe/events{/privacy}", | |||||
| "received_events_url": "https://api.github.com/users/johndoe/received_events", | |||||
| "type": "User", | |||||
| "site_admin": false | |||||
| }, | |||||
| "html_url": "https://github.com/johndoe/webhook-test", | |||||
| "description": "Sample repository to test webhooks delivery", | |||||
| "fork": false, | |||||
| "url": "https://github.com/johndoe/webhook-test", | |||||
| "forks_url": "https://api.github.com/repos/johndoe/webhook-test/forks", | |||||
| "keys_url": "https://api.github.com/repos/johndoe/webhook-test/keys{/key_id}", | |||||
| "collaborators_url": "https://api.github.com/repos/johndoe/webhook-test/collaborators{/collaborator}", | |||||
| "teams_url": "https://api.github.com/repos/johndoe/webhook-test/teams", | |||||
| "hooks_url": "https://api.github.com/repos/johndoe/webhook-test/hooks", | |||||
| "issue_events_url": "https://api.github.com/repos/johndoe/webhook-test/issues/events{/number}", | |||||
| "events_url": "https://api.github.com/repos/johndoe/webhook-test/events", | |||||
| "assignees_url": "https://api.github.com/repos/johndoe/webhook-test/assignees{/user}", | |||||
| "branches_url": "https://api.github.com/repos/johndoe/webhook-test/branches{/branch}", | |||||
| "tags_url": "https://api.github.com/repos/johndoe/webhook-test/tags", | |||||
| "blobs_url": "https://api.github.com/repos/johndoe/webhook-test/git/blobs{/sha}", | |||||
| "git_tags_url": "https://api.github.com/repos/johndoe/webhook-test/git/tags{/sha}", | |||||
| "git_refs_url": "https://api.github.com/repos/johndoe/webhook-test/git/refs{/sha}", | |||||
| "trees_url": "https://api.github.com/repos/johndoe/webhook-test/git/trees{/sha}", | |||||
| "statuses_url": "https://api.github.com/repos/johndoe/webhook-test/statuses/{sha}", | |||||
| "languages_url": "https://api.github.com/repos/johndoe/webhook-test/languages", | |||||
| "stargazers_url": "https://api.github.com/repos/johndoe/webhook-test/stargazers", | |||||
| "contributors_url": "https://api.github.com/repos/johndoe/webhook-test/contributors", | |||||
| "subscribers_url": "https://api.github.com/repos/johndoe/webhook-test/subscribers", | |||||
| "subscription_url": "https://api.github.com/repos/johndoe/webhook-test/subscription", | |||||
| "commits_url": "https://api.github.com/repos/johndoe/webhook-test/commits{/sha}", | |||||
| "git_commits_url": "https://api.github.com/repos/johndoe/webhook-test/git/commits{/sha}", | |||||
| "comments_url": "https://api.github.com/repos/johndoe/webhook-test/comments{/number}", | |||||
| "issue_comment_url": "https://api.github.com/repos/johndoe/webhook-test/issues/comments{/number}", | |||||
| "contents_url": "https://api.github.com/repos/johndoe/webhook-test/contents/{+path}", | |||||
| "compare_url": "https://api.github.com/repos/johndoe/webhook-test/compare/{base}...{head}", | |||||
| "merges_url": "https://api.github.com/repos/johndoe/webhook-test/merges", | |||||
| "archive_url": "https://api.github.com/repos/johndoe/webhook-test/{archive_format}{/ref}", | |||||
| "downloads_url": "https://api.github.com/repos/johndoe/webhook-test/downloads", | |||||
| "issues_url": "https://api.github.com/repos/johndoe/webhook-test/issues{/number}", | |||||
| "pulls_url": "https://api.github.com/repos/johndoe/webhook-test/pulls{/number}", | |||||
| "milestones_url": "https://api.github.com/repos/johndoe/webhook-test/milestones{/number}", | |||||
| "notifications_url": "https://api.github.com/repos/johndoe/webhook-test/notifications{?since,all,participating}", | |||||
| "labels_url": "https://api.github.com/repos/johndoe/webhook-test/labels{/name}", | |||||
| "releases_url": "https://api.github.com/repos/johndoe/webhook-test/releases{/id}", | |||||
| "deployments_url": "https://api.github.com/repos/johndoe/webhook-test/deployments", | |||||
| "created_at": 1666710385, | |||||
| "updated_at": "2022-10-25T15:06:25Z", | |||||
| "pushed_at": 1666710739, | |||||
| "git_url": "git://github.com/johndoe/webhook-test.git", | |||||
| "ssh_url": "git@github.com:johndoe/webhook-test.git", | |||||
| "clone_url": "https://github.com/johndoe/webhook-test.git", | |||||
| "svn_url": "https://github.com/johndoe/webhook-test", | |||||
| "homepage": null, | |||||
| "size": 0, | |||||
| "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": 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", | |||||
| "stargazers": 0, | |||||
| "master_branch": "main" | |||||
| }, | |||||
| "pusher": { | |||||
| "name": "johndoe", | |||||
| "email": "john.doe@example.org" | |||||
| }, | |||||
| "sender": { | |||||
| "login": "johndoe", | |||||
| "id": 5493543, | |||||
| "node_id": "MDQ6VXNlcjU0OTM1NDM=", | |||||
| "avatar_url": "", | |||||
| "gravatar_id": "", | |||||
| "url": "https://api.github.com/users/johndoe", | |||||
| "html_url": "https://github.com/johndoe", | |||||
| "followers_url": "https://api.github.com/users/johndoe/followers", | |||||
| "following_url": "https://api.github.com/users/johndoe/following{/other_user}", | |||||
| "gists_url": "https://api.github.com/users/johndoe/gists{/gist_id}", | |||||
| "starred_url": "https://api.github.com/users/johndoe/starred{/owner}{/repo}", | |||||
| "subscriptions_url": "https://api.github.com/users/johndoe/subscriptions", | |||||
| "organizations_url": "https://api.github.com/users/johndoe/orgs", | |||||
| "repos_url": "https://api.github.com/users/johndoe/repos", | |||||
| "events_url": "https://api.github.com/users/johndoe/events{/privacy}", | |||||
| "received_events_url": "https://api.github.com/users/johndoe/received_events", | |||||
| "type": "User", | |||||
| "site_admin": false | |||||
| }, | |||||
| "created": false, | |||||
| "deleted": false, | |||||
| "forced": false, | |||||
| "base_ref": null, | |||||
| "compare": "https://github.com/johndoe/webhook-test/compare/63c72ea620a8...366675b3a401", | |||||
| "commits": [ | |||||
| { | |||||
| "id": "366675b3a4017eb3ace4452d8288ae664c4f0af4", | |||||
| "tree_id": "e824f22f6528dfae5489e6a08888f460eb74f975", | |||||
| "distinct": true, | |||||
| "message": "Add a new line to trigger webhook when pushing commit", | |||||
| "timestamp": "2022-10-25T17:12:09+02:00", | |||||
| "url": "https://github.com/johndoe/webhook-test/commit/366675b3a4017eb3ace4452d8288ae664c4f0af4", | |||||
| "author": { | |||||
| "name": "John Doe", | |||||
| "email": "johndoe@softwareheritage.org", | |||||
| "username": "johndoe" | |||||
| }, | |||||
| "committer": { | |||||
| "name": "John Doe", | |||||
| "email": "johndoe@softwareheritage.org", | |||||
| "username": "johndoe" | |||||
| }, | |||||
| "added": [], | |||||
| "removed": [], | |||||
| "modified": [ | |||||
| "README.md" | |||||
| ] | |||||
| } | |||||
| ], | |||||
| "head_commit": { | |||||
| "id": "366675b3a4017eb3ace4452d8288ae664c4f0af4", | |||||
| "tree_id": "e824f22f6528dfae5489e6a08888f460eb74f975", | |||||
| "distinct": true, | |||||
| "message": "Add a new line to trigger webhook when pushing commit", | |||||
| "timestamp": "2022-10-25T17:12:09+02:00", | |||||
| "url": "https://github.com/johndoe/webhook-test/commit/366675b3a4017eb3ace4452d8288ae664c4f0af4", | |||||
| "author": { | |||||
| "name": "John Doe", | |||||
| "email": "johndoe@softwareheritage.org", | |||||
| "username": "johndoe" | |||||
| }, | |||||
| "committer": { | |||||
| "name": "John Doe", | |||||
| "email": "johndoe@softwareheritage.org", | |||||
| "username": "johndoe" | |||||
| }, | |||||
| "added": [], | |||||
| "removed": [], | |||||
| "modified": [ | |||||
| "README.md" | |||||
| ] | |||||
| } | |||||
| } | |||||
| No newline at end of file | |||||