Files
zulip/zerver/webhooks/github/fixtures/discussion__edited_body.json
Niloth P 14173b757f github webhook: Support all actions on discussion events.
Previously, only the action value `created` was supported.
Now, all 16 are supported.

Fixes: #26064.
2025-04-22 13:20:14 -07:00

198 lines
11 KiB
JSON

{
"action": "edited",
"discussion": {
"repository_url": "https://api.github.com/repos/Niloth-p/webhook-tester",
"category": {
"id": 43224168,
"node_id": "DIC_kwDONEtUIs4Ck4xo",
"repository_id": 877351970,
"emoji": ":bulb:",
"name": "Ideas",
"description": "Share ideas for new features",
"created_at": "2024-12-04T15:45:23.000+05:30",
"updated_at": "2024-12-04T15:45:23.000+05:30",
"slug": "ideas",
"is_answerable": false
},
"answer_html_url": null,
"answer_chosen_at": null,
"answer_chosen_by": null,
"html_url": "https://github.com/Niloth-p/webhook-tester/discussions/3",
"id": 7609509,
"node_id": "D_kwDONEtUIs4AdByl",
"number": 3,
"title": "Tips for Writing Clear and Concise Commit Messages",
"user": {
"login": "Niloth-p",
"id": 20315308,
"node_id": "MDQ6VXNlcjIwMzE1MzA4",
"avatar_url": "https://avatars.githubusercontent.com/u/20315308?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Niloth-p",
"html_url": "https://github.com/Niloth-p",
"followers_url": "https://api.github.com/users/Niloth-p/followers",
"following_url": "https://api.github.com/users/Niloth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/Niloth-p/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Niloth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Niloth-p/subscriptions",
"organizations_url": "https://api.github.com/users/Niloth-p/orgs",
"repos_url": "https://api.github.com/users/Niloth-p/repos",
"events_url": "https://api.github.com/users/Niloth-p/events{/privacy}",
"received_events_url": "https://api.github.com/users/Niloth-p/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"labels": [],
"state": "open",
"state_reason": "reopened",
"locked": false,
"comments": 2,
"created_at": "2024-12-04T10:36:57Z",
"updated_at": "2024-12-04T11:03:23Z",
"author_association": "OWNER",
"active_lock_reason": null,
"body": "Writing good commit messages is an art, but it's also an important part of maintaining a clear and understandable project history. What are some tips and tricks you've learned for writing clear and concise commit messages? Do you have any favorite templates or formats?\r\nAny advice would be greatly appreciated!",
"reactions": {
"url": "https://api.github.com/repos/Niloth-p/webhook-tester/discussions/3/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 2,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/Niloth-p/webhook-tester/discussions/3/timeline"
},
"changes": {
"body": {
"from": "Writing good commit messages is an art, but it's also an important part of maintaining a clear and understandable project history. What are some tips and tricks you've learned for writing clear and concise commit messages? Do you have any favorite templates or formats?"
}
},
"repository": {
"id": 877351970,
"node_id": "R_kgDONEtUIg",
"name": "webhook-tester",
"full_name": "Niloth-p/webhook-tester",
"private": true,
"owner": {
"login": "Niloth-p",
"id": 20315308,
"node_id": "MDQ6VXNlcjIwMzE1MzA4",
"avatar_url": "https://avatars.githubusercontent.com/u/20315308?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Niloth-p",
"html_url": "https://github.com/Niloth-p",
"followers_url": "https://api.github.com/users/Niloth-p/followers",
"following_url": "https://api.github.com/users/Niloth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/Niloth-p/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Niloth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Niloth-p/subscriptions",
"organizations_url": "https://api.github.com/users/Niloth-p/orgs",
"repos_url": "https://api.github.com/users/Niloth-p/repos",
"events_url": "https://api.github.com/users/Niloth-p/events{/privacy}",
"received_events_url": "https://api.github.com/users/Niloth-p/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"html_url": "https://github.com/Niloth-p/webhook-tester",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/Niloth-p/webhook-tester",
"forks_url": "https://api.github.com/repos/Niloth-p/webhook-tester/forks",
"keys_url": "https://api.github.com/repos/Niloth-p/webhook-tester/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Niloth-p/webhook-tester/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Niloth-p/webhook-tester/teams",
"hooks_url": "https://api.github.com/repos/Niloth-p/webhook-tester/hooks",
"issue_events_url": "https://api.github.com/repos/Niloth-p/webhook-tester/issues/events{/number}",
"events_url": "https://api.github.com/repos/Niloth-p/webhook-tester/events",
"assignees_url": "https://api.github.com/repos/Niloth-p/webhook-tester/assignees{/user}",
"branches_url": "https://api.github.com/repos/Niloth-p/webhook-tester/branches{/branch}",
"tags_url": "https://api.github.com/repos/Niloth-p/webhook-tester/tags",
"blobs_url": "https://api.github.com/repos/Niloth-p/webhook-tester/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Niloth-p/webhook-tester/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Niloth-p/webhook-tester/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Niloth-p/webhook-tester/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Niloth-p/webhook-tester/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Niloth-p/webhook-tester/languages",
"stargazers_url": "https://api.github.com/repos/Niloth-p/webhook-tester/stargazers",
"contributors_url": "https://api.github.com/repos/Niloth-p/webhook-tester/contributors",
"subscribers_url": "https://api.github.com/repos/Niloth-p/webhook-tester/subscribers",
"subscription_url": "https://api.github.com/repos/Niloth-p/webhook-tester/subscription",
"commits_url": "https://api.github.com/repos/Niloth-p/webhook-tester/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Niloth-p/webhook-tester/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Niloth-p/webhook-tester/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Niloth-p/webhook-tester/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Niloth-p/webhook-tester/contents/{+path}",
"compare_url": "https://api.github.com/repos/Niloth-p/webhook-tester/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Niloth-p/webhook-tester/merges",
"archive_url": "https://api.github.com/repos/Niloth-p/webhook-tester/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Niloth-p/webhook-tester/downloads",
"issues_url": "https://api.github.com/repos/Niloth-p/webhook-tester/issues{/number}",
"pulls_url": "https://api.github.com/repos/Niloth-p/webhook-tester/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Niloth-p/webhook-tester/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Niloth-p/webhook-tester/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Niloth-p/webhook-tester/labels{/name}",
"releases_url": "https://api.github.com/repos/Niloth-p/webhook-tester/releases{/id}",
"deployments_url": "https://api.github.com/repos/Niloth-p/webhook-tester/deployments",
"created_at": "2024-10-23T14:00:56Z",
"updated_at": "2024-10-23T15:20:20Z",
"pushed_at": "2024-10-23T14:30:45Z",
"git_url": "git://github.com/Niloth-p/webhook-tester.git",
"ssh_url": "git@github.com:Niloth-p/webhook-tester.git",
"clone_url": "https://github.com/Niloth-p/webhook-tester.git",
"svn_url": "https://github.com/Niloth-p/webhook-tester",
"homepage": null,
"size": 1,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"has_discussions": true,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [],
"visibility": "private",
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "main"
},
"sender": {
"login": "Niloth-p",
"id": 20315308,
"node_id": "MDQ6VXNlcjIwMzE1MzA4",
"avatar_url": "https://avatars.githubusercontent.com/u/20315308?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Niloth-p",
"html_url": "https://github.com/Niloth-p",
"followers_url": "https://api.github.com/users/Niloth-p/followers",
"following_url": "https://api.github.com/users/Niloth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/Niloth-p/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Niloth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Niloth-p/subscriptions",
"organizations_url": "https://api.github.com/users/Niloth-p/orgs",
"repos_url": "https://api.github.com/users/Niloth-p/repos",
"events_url": "https://api.github.com/users/Niloth-p/events{/privacy}",
"received_events_url": "https://api.github.com/users/Niloth-p/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
}