Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(payload–examples): add "installation" field to pull_request-* payload examples #137

Merged
merged 3 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -14537,6 +14537,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -14983,6 +14987,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -15522,6 +15530,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -15968,6 +15980,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -16414,6 +16430,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -16944,6 +16964,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -17398,6 +17422,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down Expand Up @@ -17844,6 +17872,10 @@
"watchers": 0,
"default_branch": "master"
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
},
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"build": "node bin/octokit-webhooks.js check --cached",
"pretest": "npm run -s lint",
"test": "npm run build && node test.js",
"lint": "prettier --check '{bin,lib}/*.js' '*.{js,md}' package.json index.json",
"lint:fix": "prettier --write '{bin,lib}/*.js' '*.{js,md}' package.json index.json"
"lint": "prettier --check '{bin,lib}/*.js' '*.{js,md}' 'payload-examples/**/*.json' *.md package.json index.json",
"lint:fix": "prettier --write '{bin,lib}/*.js' '*.{js,md}' 'payload-examples/**/*.json' *.md package.json index.json"
},
"repository": "https://github.com/octokit/webhooks",
"keywords": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"created_at": "2019-05-15T15:20:31Z",
"updated_at": "2019-05-15T15:21:14Z"
Expand Down Expand Up @@ -162,9 +160,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"pull_requests": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"created_at": "2019-05-15T15:20:31Z",
"updated_at": "2019-05-15T15:20:31Z"
Expand Down Expand Up @@ -162,9 +160,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"pull_requests": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
"url": "https://api.github.com/repos/github/hello-world/check-suites/5",
"before": "146e867f55c26428e5f9fade55a9bbf5e95a7912",
"after": "d6fde92930d4715a2b49857d24b940956b26d2d3",
"pull_requests": [

],
"pull_requests": [],
"app": {
"id": 2,
"node_id": "MDExOkludGVncmF0aW9uMQ==",
Expand Down Expand Up @@ -93,9 +91,7 @@
"created_at": "2018-04-25 20:42:10",
"updated_at": "2018-04-25 20:42:10"
},
"pull_requests": [

]
"pull_requests": []
},
"repository": {
"id": 526,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"created_at": "2019-05-15T15:20:31Z",
"updated_at": "2019-05-15T15:21:14Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
"url": "https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578174",
"before": "6113728f27ae82c7b1a177c8d03f9e96e0adf246",
"after": "f95f852bd8fca8fcc58a9a2d6c842781e32a215e",
"pull_requests": [

],
"pull_requests": [],
"app": {
"id": 29310,
"node_id": "MDM6QXBwMjkzMTA=",
Expand Down Expand Up @@ -63,9 +61,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"created_at": "2019-05-15T15:20:33Z",
"updated_at": "2019-05-15T15:20:33Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@
"team_discussions": "write",
"vulnerability_alerts": "read"
},
"events": [

]
"events": []
},
"created_at": "2019-05-15T15:20:31Z",
"updated_at": "2019-05-15T15:21:14Z",
Expand Down
3 changes: 1 addition & 2 deletions payload-examples/api.github.com/deployment.payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"sha": "f95f852bd8fca8fcc58a9a2d6c842781e32a215e",
"ref": "master",
"task": "deploy",
"payload": {
},
"payload": {},
"original_environment": "production",
"environment": "production",
"description": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"sha": "f95f852bd8fca8fcc58a9a2d6c842781e32a215e",
"ref": "master",
"task": "deploy",
"payload": {
},
"payload": {},
"original_environment": "production",
"environment": "production",
"description": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"metadata": "read",
"vulnerability_alerts": "read"
},
"events": [

],
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
"contents": "read",
"issues": "write"
},
"events": [
"push",
"pull_request"
],
"events": ["push", "pull_request"],
"created_at": 1525109898,
"updated_at": 1525109899,
"single_file_name": "config.yml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"metadata": "read",
"vulnerability_alerts": "read"
},
"events": [

],
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
Expand All @@ -60,9 +58,7 @@
"private": false
}
],
"repositories_removed": [

],
"repositories_removed": [],
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,13 @@
"contents": "read",
"issues": "write"
},
"events": [
"push",
"pull_request"
],
"events": ["push", "pull_request"],
"created_at": 1525109898,
"updated_at": 1525109899,
"single_file_name": "config.yml"
},
"repository_selection": "selected",
"repositories_added": [

],
"repositories_added": [],
"repositories_removed": [
{
"id": 1296269,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"metadata": "read",
"vulnerability_alerts": "read"
},
"events": [

],
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"metadata": "read",
"vulnerability_alerts": "read"
},
"events": [

],
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
Expand All @@ -60,9 +58,7 @@
"private": false
}
],
"repositories_removed": [

],
"repositories_removed": [],
"sender": {
"login": "Codertocat",
"id": 21031067,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
"type": "User",
"site_admin": false
},
"labels": [

],
"labels": [],
"state": "open",
"locked": false,
"assignee": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
"state": "open",
"locked": false,
"assignee": null,
"assignees": [

],
"assignees": [],
"milestone": null,
"comments": 0,
"created_at": "2019-05-15T15:20:33Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@
"author_association": "OWNER",
"body": "It looks like you accidently spelled 'commit' with two 't's."
},
"changes": {
},
"changes": {},
"repository": {
"id": 186853002,
"node_id": "MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@
"type": "User",
"site_admin": false
},
"labels": [

],
"labels": [],
"state": "open",
"locked": true,
"assignee": null,
"assignees": [

],
"assignees": [],
"milestone": null,
"comments": 0,
"created_at": "2019-05-15T15:20:18Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
"type": "User",
"site_admin": false
},
"labels": [

],
"labels": [],
"state": "open",
"locked": false,
"assignee": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
"type": "User",
"site_admin": false
},
"labels": [

],
"labels": [],
"state": "open",
"locked": false,
"assignee": {
Expand Down
Loading