Skip to content

Instantly share code, notes, and snippets.

@xoofx
Created October 7, 2014 13:43
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 xoofx/36ee523a1a24f7566bcf to your computer and use it in GitHub Desktop.
Save xoofx/36ee523a1a24f7566bcf to your computer and use it in GitHub Desktop.
github webhook received sample (POST)
{
"action": "reopened",
"number": 3,
"pull_request": {
"url": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/3",
"id": 22243469,
"html_url": "https://github.com/xoofx/SharpCLABot/pull/3",
"diff_url": "https://github.com/xoofx/SharpCLABot/pull/3.diff",
"patch_url": "https://github.com/xoofx/SharpCLABot/pull/3.patch",
"issue_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues/3",
"number": 3,
"state": "open",
"locked": false,
"title": "Create TestFile.md",
"user": {
"login": "xoofxtest",
"id": 9018362,
"avatar_url": "https://avatars.githubusercontent.com/u/9018362?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofxtest",
"html_url": "https://github.com/xoofxtest",
"followers_url": "https://api.github.com/users/xoofxtest/followers",
"following_url": "https://api.github.com/users/xoofxtest/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofxtest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofxtest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofxtest/subscriptions",
"organizations_url": "https://api.github.com/users/xoofxtest/orgs",
"repos_url": "https://api.github.com/users/xoofxtest/repos",
"events_url": "https://api.github.com/users/xoofxtest/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofxtest/received_events",
"type": "User",
"site_admin": false
},
"body": "Test for SharpCLABot",
"created_at": "2014-10-04T13:28:54Z",
"updated_at": "2014-10-04T14:32:19Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "0bf70fb027b620b7a8f7148cb9b5d90c518ffd9b",
"assignee": null,
"milestone": null,
"commits_url": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/3/commits",
"review_comments_url": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/3/comments",
"review_comment_url": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/comments/{number}",
"comments_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues/3/comments",
"statuses_url": "https://api.github.com/repos/xoofx/SharpCLABot/statuses/9c7a7bf7e9ed0d3c7bf0778b797a87d56101e902",
"head": {
"label": "xoofxtest:master",
"ref": "master",
"sha": "9c7a7bf7e9ed0d3c7bf0778b797a87d56101e902",
"user": {
"login": "xoofxtest",
"id": 9018362,
"avatar_url": "https://avatars.githubusercontent.com/u/9018362?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofxtest",
"html_url": "https://github.com/xoofxtest",
"followers_url": "https://api.github.com/users/xoofxtest/followers",
"following_url": "https://api.github.com/users/xoofxtest/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofxtest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofxtest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofxtest/subscriptions",
"organizations_url": "https://api.github.com/users/xoofxtest/orgs",
"repos_url": "https://api.github.com/users/xoofxtest/repos",
"events_url": "https://api.github.com/users/xoofxtest/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofxtest/received_events",
"type": "User",
"site_admin": false
},
"repo": {
"id": 24790256,
"name": "SharpCLABot",
"full_name": "xoofxtest/SharpCLABot",
"owner": {
"login": "xoofxtest",
"id": 9018362,
"avatar_url": "https://avatars.githubusercontent.com/u/9018362?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofxtest",
"html_url": "https://github.com/xoofxtest",
"followers_url": "https://api.github.com/users/xoofxtest/followers",
"following_url": "https://api.github.com/users/xoofxtest/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofxtest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofxtest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofxtest/subscriptions",
"organizations_url": "https://api.github.com/users/xoofxtest/orgs",
"repos_url": "https://api.github.com/users/xoofxtest/repos",
"events_url": "https://api.github.com/users/xoofxtest/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofxtest/received_events",
"type": "User",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/xoofxtest/SharpCLABot",
"description": "Test repository",
"fork": true,
"url": "https://api.github.com/repos/xoofxtest/SharpCLABot",
"forks_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/forks",
"keys_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/teams",
"hooks_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/hooks",
"issue_events_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/issues/events{/number}",
"events_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/events",
"assignees_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/assignees{/user}",
"branches_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/branches{/branch}",
"tags_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/tags",
"blobs_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/statuses/{sha}",
"languages_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/languages",
"stargazers_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/stargazers",
"contributors_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/contributors",
"subscribers_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/subscribers",
"subscription_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/subscription",
"commits_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/issues/comments/{number}",
"contents_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/contents/{+path}",
"compare_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/merges",
"archive_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/downloads",
"issues_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/issues{/number}",
"pulls_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/pulls{/number}",
"milestones_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/milestones{/number}",
"notifications_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/labels{/name}",
"releases_url": "https://api.github.com/repos/xoofxtest/SharpCLABot/releases{/id}",
"created_at": "2014-10-04T13:27:18Z",
"updated_at": "2014-10-04T05:57:29Z",
"pushed_at": "2014-10-04T13:28:30Z",
"git_url": "git://github.com/xoofxtest/SharpCLABot.git",
"ssh_url": "git@github.com:xoofxtest/SharpCLABot.git",
"clone_url": "https://github.com/xoofxtest/SharpCLABot.git",
"svn_url": "https://github.com/xoofxtest/SharpCLABot",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": false,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"open_issues_count": 0,
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
}
},
"base": {
"label": "xoofx:master",
"ref": "master",
"sha": "730039b00ee79113483466be3e0df3c984db453b",
"user": {
"login": "xoofx",
"id": 715038,
"avatar_url": "https://avatars.githubusercontent.com/u/715038?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofx",
"html_url": "https://github.com/xoofx",
"followers_url": "https://api.github.com/users/xoofx/followers",
"following_url": "https://api.github.com/users/xoofx/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofx/subscriptions",
"organizations_url": "https://api.github.com/users/xoofx/orgs",
"repos_url": "https://api.github.com/users/xoofx/repos",
"events_url": "https://api.github.com/users/xoofx/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofx/received_events",
"type": "User",
"site_admin": false
},
"repo": {
"id": 24782950,
"name": "SharpCLABot",
"full_name": "xoofx/SharpCLABot",
"owner": {
"login": "xoofx",
"id": 715038,
"avatar_url": "https://avatars.githubusercontent.com/u/715038?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofx",
"html_url": "https://github.com/xoofx",
"followers_url": "https://api.github.com/users/xoofx/followers",
"following_url": "https://api.github.com/users/xoofx/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofx/subscriptions",
"organizations_url": "https://api.github.com/users/xoofx/orgs",
"repos_url": "https://api.github.com/users/xoofx/repos",
"events_url": "https://api.github.com/users/xoofx/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofx/received_events",
"type": "User",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/xoofx/SharpCLABot",
"description": "Test repository",
"fork": false,
"url": "https://api.github.com/repos/xoofx/SharpCLABot",
"forks_url": "https://api.github.com/repos/xoofx/SharpCLABot/forks",
"keys_url": "https://api.github.com/repos/xoofx/SharpCLABot/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/xoofx/SharpCLABot/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/xoofx/SharpCLABot/teams",
"hooks_url": "https://api.github.com/repos/xoofx/SharpCLABot/hooks",
"issue_events_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues/events{/number}",
"events_url": "https://api.github.com/repos/xoofx/SharpCLABot/events",
"assignees_url": "https://api.github.com/repos/xoofx/SharpCLABot/assignees{/user}",
"branches_url": "https://api.github.com/repos/xoofx/SharpCLABot/branches{/branch}",
"tags_url": "https://api.github.com/repos/xoofx/SharpCLABot/tags",
"blobs_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/xoofx/SharpCLABot/statuses/{sha}",
"languages_url": "https://api.github.com/repos/xoofx/SharpCLABot/languages",
"stargazers_url": "https://api.github.com/repos/xoofx/SharpCLABot/stargazers",
"contributors_url": "https://api.github.com/repos/xoofx/SharpCLABot/contributors",
"subscribers_url": "https://api.github.com/repos/xoofx/SharpCLABot/subscribers",
"subscription_url": "https://api.github.com/repos/xoofx/SharpCLABot/subscription",
"commits_url": "https://api.github.com/repos/xoofx/SharpCLABot/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/xoofx/SharpCLABot/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues/comments/{number}",
"contents_url": "https://api.github.com/repos/xoofx/SharpCLABot/contents/{+path}",
"compare_url": "https://api.github.com/repos/xoofx/SharpCLABot/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/xoofx/SharpCLABot/merges",
"archive_url": "https://api.github.com/repos/xoofx/SharpCLABot/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/xoofx/SharpCLABot/downloads",
"issues_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues{/number}",
"pulls_url": "https://api.github.com/repos/xoofx/SharpCLABot/pulls{/number}",
"milestones_url": "https://api.github.com/repos/xoofx/SharpCLABot/milestones{/number}",
"notifications_url": "https://api.github.com/repos/xoofx/SharpCLABot/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/xoofx/SharpCLABot/labels{/name}",
"releases_url": "https://api.github.com/repos/xoofx/SharpCLABot/releases{/id}",
"created_at": "2014-10-04T05:57:29Z",
"updated_at": "2014-10-04T05:57:29Z",
"pushed_at": "2014-10-04T13:26:34Z",
"git_url": "git://github.com/xoofx/SharpCLABot.git",
"ssh_url": "git@github.com:xoofx/SharpCLABot.git",
"clone_url": "https://github.com/xoofx/SharpCLABot.git",
"svn_url": "https://github.com/xoofx/SharpCLABot",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 1,
"mirror_url": null,
"open_issues_count": 2,
"forks": 1,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/3"
},
"html": {
"href": "https://github.com/xoofx/SharpCLABot/pull/3"
},
"issue": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/issues/3"
},
"comments": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/issues/3/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/3/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/comments/{number}"
},
"commits": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/pulls/3/commits"
},
"statuses": {
"href": "https://api.github.com/repos/xoofx/SharpCLABot/statuses/9c7a7bf7e9ed0d3c7bf0778b797a87d56101e902"
}
},
"merged": false,
"mergeable": null,
"mergeable_state": "unknown",
"merged_by": null,
"comments": 0,
"review_comments": 0,
"commits": 1,
"additions": 1,
"deletions": 0,
"changed_files": 1
},
"repository": {
"id": 24782950,
"name": "SharpCLABot",
"full_name": "xoofx/SharpCLABot",
"owner": {
"login": "xoofx",
"id": 715038,
"avatar_url": "https://avatars.githubusercontent.com/u/715038?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofx",
"html_url": "https://github.com/xoofx",
"followers_url": "https://api.github.com/users/xoofx/followers",
"following_url": "https://api.github.com/users/xoofx/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofx/subscriptions",
"organizations_url": "https://api.github.com/users/xoofx/orgs",
"repos_url": "https://api.github.com/users/xoofx/repos",
"events_url": "https://api.github.com/users/xoofx/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofx/received_events",
"type": "User",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/xoofx/SharpCLABot",
"description": "Test repository",
"fork": false,
"url": "https://api.github.com/repos/xoofx/SharpCLABot",
"forks_url": "https://api.github.com/repos/xoofx/SharpCLABot/forks",
"keys_url": "https://api.github.com/repos/xoofx/SharpCLABot/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/xoofx/SharpCLABot/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/xoofx/SharpCLABot/teams",
"hooks_url": "https://api.github.com/repos/xoofx/SharpCLABot/hooks",
"issue_events_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues/events{/number}",
"events_url": "https://api.github.com/repos/xoofx/SharpCLABot/events",
"assignees_url": "https://api.github.com/repos/xoofx/SharpCLABot/assignees{/user}",
"branches_url": "https://api.github.com/repos/xoofx/SharpCLABot/branches{/branch}",
"tags_url": "https://api.github.com/repos/xoofx/SharpCLABot/tags",
"blobs_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/xoofx/SharpCLABot/statuses/{sha}",
"languages_url": "https://api.github.com/repos/xoofx/SharpCLABot/languages",
"stargazers_url": "https://api.github.com/repos/xoofx/SharpCLABot/stargazers",
"contributors_url": "https://api.github.com/repos/xoofx/SharpCLABot/contributors",
"subscribers_url": "https://api.github.com/repos/xoofx/SharpCLABot/subscribers",
"subscription_url": "https://api.github.com/repos/xoofx/SharpCLABot/subscription",
"commits_url": "https://api.github.com/repos/xoofx/SharpCLABot/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/xoofx/SharpCLABot/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/xoofx/SharpCLABot/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues/comments/{number}",
"contents_url": "https://api.github.com/repos/xoofx/SharpCLABot/contents/{+path}",
"compare_url": "https://api.github.com/repos/xoofx/SharpCLABot/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/xoofx/SharpCLABot/merges",
"archive_url": "https://api.github.com/repos/xoofx/SharpCLABot/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/xoofx/SharpCLABot/downloads",
"issues_url": "https://api.github.com/repos/xoofx/SharpCLABot/issues{/number}",
"pulls_url": "https://api.github.com/repos/xoofx/SharpCLABot/pulls{/number}",
"milestones_url": "https://api.github.com/repos/xoofx/SharpCLABot/milestones{/number}",
"notifications_url": "https://api.github.com/repos/xoofx/SharpCLABot/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/xoofx/SharpCLABot/labels{/name}",
"releases_url": "https://api.github.com/repos/xoofx/SharpCLABot/releases{/id}",
"created_at": "2014-10-04T05:57:29Z",
"updated_at": "2014-10-04T05:57:29Z",
"pushed_at": "2014-10-04T13:26:34Z",
"git_url": "git://github.com/xoofx/SharpCLABot.git",
"ssh_url": "git@github.com:xoofx/SharpCLABot.git",
"clone_url": "https://github.com/xoofx/SharpCLABot.git",
"svn_url": "https://github.com/xoofx/SharpCLABot",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 1,
"mirror_url": null,
"open_issues_count": 2,
"forks": 1,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
},
"sender": {
"login": "xoofxtest",
"id": 9018362,
"avatar_url": "https://avatars.githubusercontent.com/u/9018362?v=2",
"gravatar_id": "",
"url": "https://api.github.com/users/xoofxtest",
"html_url": "https://github.com/xoofxtest",
"followers_url": "https://api.github.com/users/xoofxtest/followers",
"following_url": "https://api.github.com/users/xoofxtest/following{/other_user}",
"gists_url": "https://api.github.com/users/xoofxtest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xoofxtest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xoofxtest/subscriptions",
"organizations_url": "https://api.github.com/users/xoofxtest/orgs",
"repos_url": "https://api.github.com/users/xoofxtest/repos",
"events_url": "https://api.github.com/users/xoofxtest/events{/privacy}",
"received_events_url": "https://api.github.com/users/xoofxtest/received_events",
"type": "User",
"site_admin": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment