Skip to content

Instantly share code, notes, and snippets.

@walkingtospace
Created January 5, 2023 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walkingtospace/0dcfe43116ca6481f129cdaa0e112dc4 to your computer and use it in GitHub Desktop.
Save walkingtospace/0dcfe43116ca6481f129cdaa0e112dc4 to your computer and use it in GitHub Desktop.
Github push webhook event payload example
{
"event": "push",
"payload": {
"ref": "refs/heads/master",
"before": "1214900eca16aa54d97d062e7b72261616fd53aa",
"after": "40a717b3644e2ddec52cf6c8bfa436767bf0704e",
"repository": {
"id": 17892893,
"node_id": "MDEwOlJlcG9zaXRvcnkxNzg5Mjg5Mw==",
"name": "codecombat",
"full_name": "walkingtospace/codecombat",
"private": false,
"owner": {
"name": "walkingtospace",
"email": "walkingtospace@gmail.com",
"login": "walkingtospace",
"id": 2024264,
"node_id": "MDQ6VXNlcjIwMjQyNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/2024264?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/walkingtospace",
"html_url": "https://github.com/walkingtospace",
"followers_url": "https://api.github.com/users/walkingtospace/followers",
"following_url": "https://api.github.com/users/walkingtospace/following{/other_user}",
"gists_url": "https://api.github.com/users/walkingtospace/gists{/gist_id}",
"starred_url": "https://api.github.com/users/walkingtospace/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/walkingtospace/subscriptions",
"organizations_url": "https://api.github.com/users/walkingtospace/orgs",
"repos_url": "https://api.github.com/users/walkingtospace/repos",
"events_url": "https://api.github.com/users/walkingtospace/events{/privacy}",
"received_events_url": "https://api.github.com/users/walkingtospace/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/walkingtospace/codecombat",
"description": "Multiplayer programming game for learning how to code.",
"fork": true,
"url": "https://github.com/walkingtospace/codecombat",
"forks_url": "https://api.github.com/repos/walkingtospace/codecombat/forks",
"keys_url": "https://api.github.com/repos/walkingtospace/codecombat/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/walkingtospace/codecombat/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/walkingtospace/codecombat/teams",
"hooks_url": "https://api.github.com/repos/walkingtospace/codecombat/hooks",
"issue_events_url": "https://api.github.com/repos/walkingtospace/codecombat/issues/events{/number}",
"events_url": "https://api.github.com/repos/walkingtospace/codecombat/events",
"assignees_url": "https://api.github.com/repos/walkingtospace/codecombat/assignees{/user}",
"branches_url": "https://api.github.com/repos/walkingtospace/codecombat/branches{/branch}",
"tags_url": "https://api.github.com/repos/walkingtospace/codecombat/tags",
"blobs_url": "https://api.github.com/repos/walkingtospace/codecombat/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/walkingtospace/codecombat/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/walkingtospace/codecombat/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/walkingtospace/codecombat/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/walkingtospace/codecombat/statuses/{sha}",
"languages_url": "https://api.github.com/repos/walkingtospace/codecombat/languages",
"stargazers_url": "https://api.github.com/repos/walkingtospace/codecombat/stargazers",
"contributors_url": "https://api.github.com/repos/walkingtospace/codecombat/contributors",
"subscribers_url": "https://api.github.com/repos/walkingtospace/codecombat/subscribers",
"subscription_url": "https://api.github.com/repos/walkingtospace/codecombat/subscription",
"commits_url": "https://api.github.com/repos/walkingtospace/codecombat/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/walkingtospace/codecombat/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/walkingtospace/codecombat/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/walkingtospace/codecombat/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/walkingtospace/codecombat/contents/{+path}",
"compare_url": "https://api.github.com/repos/walkingtospace/codecombat/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/walkingtospace/codecombat/merges",
"archive_url": "https://api.github.com/repos/walkingtospace/codecombat/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/walkingtospace/codecombat/downloads",
"issues_url": "https://api.github.com/repos/walkingtospace/codecombat/issues{/number}",
"pulls_url": "https://api.github.com/repos/walkingtospace/codecombat/pulls{/number}",
"milestones_url": "https://api.github.com/repos/walkingtospace/codecombat/milestones{/number}",
"notifications_url": "https://api.github.com/repos/walkingtospace/codecombat/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/walkingtospace/codecombat/labels{/name}",
"releases_url": "https://api.github.com/repos/walkingtospace/codecombat/releases{/id}",
"deployments_url": "https://api.github.com/repos/walkingtospace/codecombat/deployments",
"created_at": 1395205813,
"updated_at": "2023-01-04T18:52:34Z",
"pushed_at": 1672895634,
"git_url": "git://github.com/walkingtospace/codecombat.git",
"ssh_url": "git@github.com:walkingtospace/codecombat.git",
"clone_url": "https://github.com/walkingtospace/codecombat.git",
"svn_url": "https://github.com/walkingtospace/codecombat",
"homepage": "http://codecombat.com",
"size": 9586,
"stargazers_count": 0,
"watchers_count": 0,
"language": "CoffeeScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"has_discussions": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 7,
"license": {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit",
"node_id": "MDc6TGljZW5zZTEz"
},
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [],
"visibility": "public",
"forks": 0,
"open_issues": 7,
"watchers": 0,
"default_branch": "master",
"stargazers": 0,
"master_branch": "master"
},
"pusher": {
"name": "walkingtospace",
"email": "walkingtospace@gmail.com"
},
"sender": {
"login": "walkingtospace",
"id": 2024264,
"node_id": "MDQ6VXNlcjIwMjQyNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/2024264?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/walkingtospace",
"html_url": "https://github.com/walkingtospace",
"followers_url": "https://api.github.com/users/walkingtospace/followers",
"following_url": "https://api.github.com/users/walkingtospace/following{/other_user}",
"gists_url": "https://api.github.com/users/walkingtospace/gists{/gist_id}",
"starred_url": "https://api.github.com/users/walkingtospace/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/walkingtospace/subscriptions",
"organizations_url": "https://api.github.com/users/walkingtospace/orgs",
"repos_url": "https://api.github.com/users/walkingtospace/repos",
"events_url": "https://api.github.com/users/walkingtospace/events{/privacy}",
"received_events_url": "https://api.github.com/users/walkingtospace/received_events",
"type": "User",
"site_admin": false
},
"installation": {
"id": 32787291,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzI3ODcyOTE="
},
"created": false,
"deleted": false,
"forced": false,
"base_ref": null,
"compare": "https://github.com/walkingtospace/codecombat/compare/1214900eca16...40a717b3644e",
"commits": [
{
"id": "a0e0971b7c229a51a41bf46e076e1020bf22b04c",
"tree_id": "d50f3e5752588e7ead772e7e7b3e86393b8f5a4c",
"distinct": false,
"message": "Test",
"timestamp": "2023-01-04T21:13:28-08:00",
"url": "https://github.com/walkingtospace/codecombat/commit/a0e0971b7c229a51a41bf46e076e1020bf22b04c",
"author": {
"name": "Honam",
"email": "walkingtospace@gmail.com",
"username": "walkingtospace"
},
"committer": {
"name": "Honam",
"email": "walkingtospace@gmail.com",
"username": "walkingtospace"
},
"added": [],
"removed": [],
"modified": [
"test/app/lib/forms.spec.coffee"
]
},
{
"id": "40a717b3644e2ddec52cf6c8bfa436767bf0704e",
"tree_id": "d50f3e5752588e7ead772e7e7b3e86393b8f5a4c",
"distinct": true,
"message": "Merge pull request #10 from walkingtospace/test5\n\nTest",
"timestamp": "2023-01-04T21:13:54-08:00",
"url": "https://github.com/walkingtospace/codecombat/commit/40a717b3644e2ddec52cf6c8bfa436767bf0704e",
"author": {
"name": "Honam",
"email": "walkingtospace@gmail.com",
"username": "walkingtospace"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"username": "web-flow"
},
"added": [],
"removed": [],
"modified": [
"test/app/lib/forms.spec.coffee"
]
}
],
"head_commit": {
"id": "40a717b3644e2ddec52cf6c8bfa436767bf0704e",
"tree_id": "d50f3e5752588e7ead772e7e7b3e86393b8f5a4c",
"distinct": true,
"message": "Merge pull request #10 from walkingtospace/test5\n\nTest",
"timestamp": "2023-01-04T21:13:54-08:00",
"url": "https://github.com/walkingtospace/codecombat/commit/40a717b3644e2ddec52cf6c8bfa436767bf0704e",
"author": {
"name": "Honam",
"email": "walkingtospace@gmail.com",
"username": "walkingtospace"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"username": "web-flow"
},
"added": [],
"removed": [],
"modified": [
"test/app/lib/forms.spec.coffee"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment