Skip to content

Commit

Permalink
feat: add new DiscussionEvent, DiscussionCommentEvent schemas and…
Browse files Browse the repository at this point in the history
… examples (#426)

Co-authored-by: wolfy1339 <[email protected]>
  • Loading branch information
octokitbot and wolfy1339 authored Apr 1, 2021
1 parent c6e232f commit 4d94d0b
Show file tree
Hide file tree
Showing 29 changed files with 6,909 additions and 419 deletions.
1,438 changes: 1,019 additions & 419 deletions cache/webhook-events-and-payloads.html

Large diffs are not rendered by default.

2,697 changes: 2,697 additions & 0 deletions index.json

Large diffs are not rendered by default.

223 changes: 223 additions & 0 deletions payload-examples/api.github.com/discussion/answered.payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
{
"action": "answered",
"discussion": {
"repository_url": "https://api.github.com/repos/Codertocat/Hello-World",
"category": {
"id": 32809315,
"repository_id": 141753607,
"emoji": ":pray:",
"name": "Q&A",
"description": "Ask the community for help",
"created_at": "2021-03-30T16:09:00.000-04:00",
"updated_at": "2021-03-30T16:09:00.000-04:00",
"slug": "q-a",
"is_answerable": true
},
"answer_html_url": "https://github.com/Codertocat/Hello-World/discussions/4#discussioncomment-550561",
"answer_chosen_at": "2021-03-30T19:17:18.000-04:00",
"answer_chosen_by": {
"login": "Codertocat",
"id": 4595477,
"node_id": "MDQ6VXNlcjQ1OTU0Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/Codertocat/Hello-World/discussions/4",
"id": 3299614,
"node_id": "MDEwOkRpc2N1c3Npb24zMjk5NjE0",
"number": 4,
"title": "TEST edit",
"user": {
"login": "Codertocat",
"id": 4595477,
"node_id": "MDQ6VXNlcjQ1OTU0Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"state": "open",
"locked": false,
"comments": 1,
"created_at": "2021-03-30T20:09:52Z",
"updated_at": "2021-03-30T23:17:18Z",
"author_association": "OWNER",
"active_lock_reason": null,
"body": "TEST edit"
},
"answer": {
"id": 550561,
"node_id": "MDE3OkRpc2N1c3Npb25Db21tZW50NTUwNTYx",
"html_url": "https://github.com/Codertocat/Hello-World/discussions/4#discussioncomment-550561",
"parent_id": null,
"child_comment_count": 0,
"repository_url": "Codertocat/Hello-World",
"discussion_id": 3299614,
"author_association": "NONE",
"user": {
"login": "dan2wik",
"id": 1253226,
"node_id": "MDQ6VXNlcjEyNTMyMjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/1253226?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dan2wik",
"html_url": "https://github.com/dan2wik",
"followers_url": "https://api.github.com/users/dan2wik/followers",
"following_url": "https://api.github.com/users/dan2wik/following{/other_user}",
"gists_url": "https://api.github.com/users/dan2wik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dan2wik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dan2wik/subscriptions",
"organizations_url": "https://api.github.com/users/dan2wik/orgs",
"repos_url": "https://api.github.com/users/dan2wik/repos",
"events_url": "https://api.github.com/users/dan2wik/events{/privacy}",
"received_events_url": "https://api.github.com/users/dan2wik/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2021-03-30T23:16:42Z",
"updated_at": "2021-03-30T23:16:55Z",
"body": "Poggers"
},
"repository": {
"id": 186853002,
"node_id": "MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",
"name": "Hello-World",
"full_name": "Codertocat/Hello-World",
"private": false,
"owner": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/Codertocat/Hello-World",
"description": null,
"fork": true,
"url": "https://api.github.com/repos/Codertocat/Hello-World",
"forks_url": "https://api.github.com/repos/Codertocat/Hello-World/forks",
"keys_url": "https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Codertocat/Hello-World/teams",
"hooks_url": "https://api.github.com/repos/Codertocat/Hello-World/hooks",
"issue_events_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",
"events_url": "https://api.github.com/repos/Codertocat/Hello-World/events",
"assignees_url": "https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",
"branches_url": "https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",
"tags_url": "https://api.github.com/repos/Codertocat/Hello-World/tags",
"blobs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Codertocat/Hello-World/languages",
"stargazers_url": "https://api.github.com/repos/Codertocat/Hello-World/stargazers",
"contributors_url": "https://api.github.com/repos/Codertocat/Hello-World/contributors",
"subscribers_url": "https://api.github.com/repos/Codertocat/Hello-World/subscribers",
"subscription_url": "https://api.github.com/repos/Codertocat/Hello-World/subscription",
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",
"compare_url": "https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Codertocat/Hello-World/merges",
"archive_url": "https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Codertocat/Hello-World/downloads",
"issues_url": "https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",
"pulls_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",
"releases_url": "https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",
"deployments_url": "https://api.github.com/repos/Codertocat/Hello-World/deployments",
"created_at": "2018-07-20T20:11:57Z",
"updated_at": "2021-03-30T20:08:34Z",
"pushed_at": "2020-07-17T00:40:51Z",
"git_url": "git://github.com/Codertocat/Hello-World.git",
"ssh_url": "[email protected]:Codertocat/Hello-World.git",
"clone_url": "https://github.com/Codertocat/Hello-World.git",
"svn_url": "https://github.com/Codertocat/Hello-World",
"homepage": "",
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": "Ruby",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": true,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 1,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
},
"sender": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
}
}
Loading

0 comments on commit 4d94d0b

Please sign in to comment.