Skip to content

Instantly share code, notes, and snippets.

@jcnars
Last active December 14, 2021 04:55
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 jcnars/4d104db7a1960c4eee0bbe6c7fee2a3d to your computer and use it in GitHub Desktop.
Save jcnars/4d104db7a1960c4eee0bbe6c7fee2a3d to your computer and use it in GitHub Desktop.
Github Payload for PR comment
jcnarasimhan@jon2:~$ curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/google/bms-toolkit/events
...
{
"id": "19173721650",
"type": "IssueCommentEvent",
"actor": {
"id": 12689962,
"login": "jcnars",
"display_login": "jcnars",
"gravatar_id": "",
"url": "https://api.github.com/users/jcnars",
"avatar_url": "https://avatars.githubusercontent.com/u/12689962?"
},
"repo": {
"id": 271635682,
"name": "google/bms-toolkit",
"url": "https://api.github.com/repos/google/bms-toolkit"
},
"payload": {
"action": "created",
"issue": {
"url": "https://api.github.com/repos/google/bms-toolkit/issues/90",
"repository_url": "https://api.github.com/repos/google/bms-toolkit",
"labels_url": "https://api.github.com/repos/google/bms-toolkit/issues/90/labels{/name}",
"comments_url": "https://api.github.com/repos/google/bms-toolkit/issues/90/comments",
"events_url": "https://api.github.com/repos/google/bms-toolkit/issues/90/events",
"html_url": "https://github.com/google/bms-toolkit/pull/90",
"id": 1026686273,
"node_id": "PR_kwDOEDDU4s4tNyHz",
"number": 90,
"title": "Testing prowjob after the webhook is configured per https://github.com/GoogleCloudPlatform/oss-test-infra/pull/1195",
"user": {
"login": "jcnars",
"id": 12689962,
"node_id": "MDQ6VXNlcjEyNjg5OTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/12689962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jcnars",
"html_url": "https://github.com/jcnars",
"followers_url": "https://api.github.com/users/jcnars/followers",
"following_url": "https://api.github.com/users/jcnars/following{/other_user}",
"gists_url": "https://api.github.com/users/jcnars/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jcnars/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcnars/subscriptions",
"organizations_url": "https://api.github.com/users/jcnars/orgs",
"repos_url": "https://api.github.com/users/jcnars/repos",
"events_url": "https://api.github.com/users/jcnars/events{/privacy}",
"received_events_url": "https://api.github.com/users/jcnars/received_events",
"type": "User",
"site_admin": false
},
"labels": [
{
"id": 3451743280,
"node_id": "LA_kwDOEDDU4s7NvWww",
"url": "https://api.github.com/repos/google/bms-toolkit/labels/ok-to-test",
"name": "ok-to-test",
"color": "ededed",
"default": false,
"description": null
},
{
"id": 3501585453,
"node_id": "LA_kwDOEDDU4s7QtfQt",
"url": "https://api.github.com/repos/google/bms-toolkit/labels/approved",
"name": "approved",
"color": "ededed",
"default": false,
"description": null
},
{
"id": 3553551324,
"node_id": "LA_kwDOEDDU4s7TzuPc",
"url": "https://api.github.com/repos/google/bms-toolkit/labels/size/M",
"name": "size/M",
"color": "ededed",
"default": false,
"description": null
}
],
"state": "open",
"locked": false,
"assignee": {
"login": "jcnars",
"id": 12689962,
"node_id": "MDQ6VXNlcjEyNjg5OTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/12689962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jcnars",
"html_url": "https://github.com/jcnars",
"followers_url": "https://api.github.com/users/jcnars/followers",
"following_url": "https://api.github.com/users/jcnars/following{/other_user}",
"gists_url": "https://api.github.com/users/jcnars/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jcnars/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcnars/subscriptions",
"organizations_url": "https://api.github.com/users/jcnars/orgs",
"repos_url": "https://api.github.com/users/jcnars/repos",
"events_url": "https://api.github.com/users/jcnars/events{/privacy}",
"received_events_url": "https://api.github.com/users/jcnars/received_events",
"type": "User",
"site_admin": false
},
"assignees": [
{
"login": "jcnars",
"id": 12689962,
"node_id": "MDQ6VXNlcjEyNjg5OTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/12689962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jcnars",
"html_url": "https://github.com/jcnars",
"followers_url": "https://api.github.com/users/jcnars/followers",
"following_url": "https://api.github.com/users/jcnars/following{/other_user}",
"gists_url": "https://api.github.com/users/jcnars/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jcnars/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcnars/subscriptions",
"organizations_url": "https://api.github.com/users/jcnars/orgs",
"repos_url": "https://api.github.com/users/jcnars/repos",
"events_url": "https://api.github.com/users/jcnars/events{/privacy}",
"received_events_url": "https://api.github.com/users/jcnars/received_events",
"type": "User",
"site_admin": false
}
],
"milestone": null,
"comments": 63,
"created_at": "2021-10-14T18:17:54Z",
"updated_at": "2021-12-03T17:32:21Z",
"closed_at": null,
"author_association": "COLLABORATOR",
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/google/bms-toolkit/pulls/90",
"html_url": "https://github.com/google/bms-toolkit/pull/90",
"diff_url": "https://github.com/google/bms-toolkit/pull/90.diff",
"patch_url": "https://github.com/google/bms-toolkit/pull/90.patch",
"merged_at": null
},
"body": "https://github.com/GoogleCloudPlatform/oss-test-infra/pull/1195 was merged.\r\n\r\nEditing a README file as a test change to trigger the prowjob.",
"reactions": {
"url": "https://api.github.com/repos/google/bms-toolkit/issues/90/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/google/bms-toolkit/issues/90/timeline",
"performed_via_github_app": null
},
"comment": {
"url": "https://api.github.com/repos/google/bms-toolkit/issues/comments/985701866",
"html_url": "https://github.com/google/bms-toolkit/pull/90#issuecomment-985701866",
"issue_url": "https://api.github.com/repos/google/bms-toolkit/issues/90",
"id": 985701866,
"node_id": "IC_kwDOEDDU4s46wJ3q",
"user": {
"login": "jcnars",
"id": 12689962,
"node_id": "MDQ6VXNlcjEyNjg5OTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/12689962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jcnars",
"html_url": "https://github.com/jcnars",
"followers_url": "https://api.github.com/users/jcnars/followers",
"following_url": "https://api.github.com/users/jcnars/following{/other_user}",
"gists_url": "https://api.github.com/users/jcnars/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jcnars/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcnars/subscriptions",
"organizations_url": "https://api.github.com/users/jcnars/orgs",
"repos_url": "https://api.github.com/users/jcnars/repos",
"events_url": "https://api.github.com/users/jcnars/events{/privacy}",
"received_events_url": "https://api.github.com/users/jcnars/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2021-12-03T17:32:21Z",
"updated_at": "2021-12-03T17:32:21Z",
"author_association": "COLLABORATOR",
"body": "/test bms-toolkit-install\r\n",
"reactions": {
"url": "https://api.github.com/repos/google/bms-toolkit/issues/comments/985701866/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"performed_via_github_app": null
}
},
"public": true,
"created_at": "2021-12-03T17:32:21Z",
"org": {
"id": 1342004,
"login": "google",
"gravatar_id": "",
"url": "https://api.github.com/orgs/google",
"avatar_url": "https://avatars.githubusercontent.com/u/1342004?"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment