From 116e613cd8c2c7b4a02cc8ad07140e0300627178 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Tue, 17 Nov 2020 16:41:26 -0500 Subject: [PATCH 1/4] chore: Add json formatting with Prettier --- .prettierrc.json | 10 +++++++++- package.json | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.prettierrc.json b/.prettierrc.json index ed3defe7094f..3acbca48673c 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,7 +1,15 @@ { "overrides": [ { - "files":[ + "files": [ + "**/*.json" + ], + "options": { + "parser": "json-stringify" + } + }, + { + "files": [ "**/*.{yml,yaml}" ], "options": { diff --git a/package.json b/package.json index f776a7f9d33a..ebfcf43fea1a 100644 --- a/package.json +++ b/package.json @@ -137,8 +137,8 @@ "rest-dev": "script/rest/update-files.js && npm run dev", "build": "cross-env NODE_ENV=production npx webpack --mode production", "start-all-languages": "cross-env NODE_ENV=development nodemon server.js", - "lint": "eslint --fix . && prettier -w \"**/*.{yml,yaml}\"", - "test": "jest && eslint . && prettier -c \"**/*.{yml,yaml}\" && npm run check-deps", + "lint": "eslint --fix . && prettier -w \"**/*.{yml,yaml,json}\"", + "test": "jest && eslint . && prettier -c \"**/*.{yml,yaml,json}\" && npm run check-deps", "prebrowser-test": "npm run build", "browser-test": "start-server-and-test browser-test-server 4001 browser-test-tests", "browser-test-server": "cross-env NODE_ENV=production ENABLED_LANGUAGES='en,ja' PORT=4001 node server.js", From 3ed22199958cbeb45969c993ff32fdec41396814 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Tue, 17 Nov 2020 16:46:26 -0500 Subject: [PATCH 2/4] chore: Run the formatting on JSON files Removed comments from .devcontainer.json --- .devcontainer.json | 30 +- .vscode/settings.json | 2 +- app.json | 4 +- lib/algolia/cached-index-names.json | 2 +- lib/enterprise-dates.json | 2 +- lib/graphql/static/changelog.json | 2 +- lib/graphql/static/prerendered-objects.json | 2 +- lib/graphql/static/previews.json | 2 +- lib/graphql/static/schema-dotcom.json | 2 +- lib/graphql/static/schema-ghae.json | 2 +- lib/graphql/static/schema-ghes-2.19.json | 2 +- lib/graphql/static/schema-ghes-2.20.json | 2 +- lib/graphql/static/schema-ghes-2.21.json | 2 +- lib/graphql/static/schema-ghes-2.22.json | 2 +- lib/graphql/static/upcoming-changes.json | 2 +- lib/graphql/types.json | 32 +- .../archived-routes-from-213-to-217.json | 2 +- lib/rest/static/decorated/api.github.com.json | 2 +- lib/rest/static/decorated/ghes-2.18.json | 2 +- lib/rest/static/decorated/ghes-2.19.json | 2 +- lib/rest/static/decorated/ghes-2.20.json | 2 +- lib/rest/static/decorated/ghes-2.21.json | 2 +- lib/rest/static/decorated/ghes-2.22.json | 2 +- lib/rest/static/decorated/github.ae.json | 2 +- .../dereferenced/api.github.com.deref.json | 2 +- .../static/dereferenced/ghes-2.18.deref.json | 2 +- .../static/dereferenced/ghes-2.19.deref.json | 2 +- .../static/dereferenced/ghes-2.20.deref.json | 2 +- .../static/dereferenced/ghes-2.21.deref.json | 2 +- .../static/dereferenced/ghes-2.22.deref.json | 2 +- .../static/dereferenced/github.ae.deref.json | 2 +- .../dotcom/check_run.completed.payload.json | 8 +- .../dotcom/check_run.created.payload.json | 8 +- .../dotcom/check_run.rerequested.payload.json | 8 +- .../dotcom/check_suite.completed.payload.json | 4 +- .../dotcom/check_suite.requested.payload.json | 8 +- .../check_suite.rerequested.payload.json | 4 +- .../static/dotcom/deployment.payload.json | 3 +- .../dotcom/deployment_status.payload.json | 3 +- .../dotcom/installation.created.payload.json | 4 +- ...stallation_repositories.added.payload.json | 8 +- ...allation_repositories.removed.payload.json | 4 +- ...egration_installation.created.payload.json | 4 +- ...stallation_repositories.added.payload.json | 8 +- .../dotcom/issues.assigned.payload.json | 4 +- .../dotcom/issues.demilestoned.payload.json | 4 +- .../static/dotcom/issues.edited.payload.json | 3 +- .../static/dotcom/issues.locked.payload.json | 8 +- .../dotcom/issues.milestoned.payload.json | 4 +- .../static/dotcom/issues.opened.payload.json | 4 +- .../dotcom/issues.unlabeled.payload.json | 8 +- .../dotcom/issues.unlocked.payload.json | 8 +- ...arketplace_purchase.cancelled.payload.json | 98 ++-- .../marketplace_purchase.changed.payload.json | 150 +++--- ...arketplace_purchase.purchased.payload.json | 98 ++-- .../dotcom/package.published.payload.json | 432 +++++++++--------- .../dotcom/pull_request.assigned.payload.json | 12 +- .../dotcom/pull_request.closed.payload.json | 16 +- .../dotcom/pull_request.labeled.payload.json | 8 +- .../dotcom/pull_request.locked.payload.json | 16 +- .../dotcom/pull_request.opened.payload.json | 16 +- .../pull_request.unassigned.payload.json | 12 +- .../pull_request.unlabeled.payload.json | 16 +- .../dotcom/pull_request.unlocked.payload.json | 16 +- ...pull_request_review.submitted.payload.json | 16 +- ...equest_review_comment.created.payload.json | 16 +- lib/webhooks/static/dotcom/push.payload.json | 4 +- .../dotcom/release.created.payload.json | 4 +- .../dotcom/release.published.payload.json | 4 +- .../dotcom/repository_dispatch.payload.json | 2 +- ...y_vulnerability_alert.dismiss.payload.json | 34 +- .../dotcom/sponsorship.created.payload.json | 144 +++--- .../sponsorship.downgraded.payload.json | 168 +++---- .../static/dotcom/status.payload.json | 4 +- .../static/dotcom/team.edited.payload.json | 3 +- .../dotcom/workflow_dispatch.payload.json | 2 +- .../static/dotcom/workflow_run.payload.json | 2 +- .../ghae/check_suite.requested.payload.json | 4 +- .../static/ghae/deployment.payload.json | 3 +- .../ghae/deployment_status.payload.json | 3 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- .../static/ghae/issues.assigned.payload.json | 4 +- .../ghae/issues.demilestoned.payload.json | 8 +- .../static/ghae/issues.edited.payload.json | 3 +- .../static/ghae/issues.opened.payload.json | 4 +- .../ghae/issues.unassigned.payload.json | 4 +- .../static/ghae/issues.unlabeled.payload.json | 8 +- .../ghae/pull_request.assigned.payload.json | 12 +- .../ghae/pull_request.closed.payload.json | 16 +- .../ghae/pull_request.labeled.payload.json | 12 +- .../ghae/pull_request.opened.payload.json | 16 +- .../ghae/pull_request.unassigned.payload.json | 16 +- .../ghae/pull_request.unlabeled.payload.json | 16 +- ...pull_request_review.submitted.payload.json | 16 +- ...equest_review_comment.created.payload.json | 16 +- lib/webhooks/static/ghae/push.payload.json | 4 +- .../ghae/release.published.payload.json | 4 +- lib/webhooks/static/ghae/status.payload.json | 4 +- .../static/ghae/team.edited.payload.json | 3 +- .../check_suite.requested.payload.json | 4 +- .../static/ghes-2.19/deployment.payload.json | 3 +- .../ghes-2.19/deployment_status.payload.json | 3 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- .../ghes-2.19/issues.assigned.payload.json | 4 +- .../issues.demilestoned.payload.json | 8 +- .../ghes-2.19/issues.edited.payload.json | 3 +- .../ghes-2.19/issues.opened.payload.json | 4 +- .../ghes-2.19/issues.unassigned.payload.json | 4 +- .../ghes-2.19/issues.unlabeled.payload.json | 8 +- .../pull_request.assigned.payload.json | 12 +- .../pull_request.closed.payload.json | 16 +- .../pull_request.labeled.payload.json | 12 +- .../pull_request.opened.payload.json | 16 +- .../pull_request.unassigned.payload.json | 16 +- .../pull_request.unlabeled.payload.json | 16 +- ...pull_request_review.submitted.payload.json | 16 +- ...equest_review_comment.created.payload.json | 16 +- .../static/ghes-2.19/push.payload.json | 4 +- .../ghes-2.19/release.published.payload.json | 4 +- .../static/ghes-2.19/status.payload.json | 4 +- .../static/ghes-2.19/team.edited.payload.json | 3 +- .../check_suite.requested.payload.json | 4 +- .../static/ghes-2.20/deployment.payload.json | 3 +- .../ghes-2.20/deployment_status.payload.json | 3 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- .../ghes-2.20/issues.assigned.payload.json | 4 +- .../issues.demilestoned.payload.json | 8 +- .../ghes-2.20/issues.edited.payload.json | 3 +- .../ghes-2.20/issues.opened.payload.json | 4 +- .../ghes-2.20/issues.unassigned.payload.json | 4 +- .../ghes-2.20/issues.unlabeled.payload.json | 8 +- .../pull_request.assigned.payload.json | 12 +- .../pull_request.closed.payload.json | 16 +- .../pull_request.labeled.payload.json | 12 +- .../pull_request.opened.payload.json | 16 +- .../pull_request.unassigned.payload.json | 16 +- .../pull_request.unlabeled.payload.json | 16 +- ...pull_request_review.submitted.payload.json | 16 +- ...equest_review_comment.created.payload.json | 16 +- .../static/ghes-2.20/push.payload.json | 4 +- .../ghes-2.20/release.published.payload.json | 4 +- .../static/ghes-2.20/status.payload.json | 4 +- .../static/ghes-2.20/team.edited.payload.json | 3 +- .../check_suite.requested.payload.json | 4 +- .../static/ghes-2.21/deployment.payload.json | 3 +- .../ghes-2.21/deployment_status.payload.json | 3 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- .../ghes-2.21/issues.assigned.payload.json | 4 +- .../issues.demilestoned.payload.json | 8 +- .../ghes-2.21/issues.edited.payload.json | 3 +- .../ghes-2.21/issues.opened.payload.json | 4 +- .../ghes-2.21/issues.unassigned.payload.json | 4 +- .../ghes-2.21/issues.unlabeled.payload.json | 8 +- .../pull_request.assigned.payload.json | 12 +- .../pull_request.closed.payload.json | 16 +- .../pull_request.labeled.payload.json | 12 +- .../pull_request.opened.payload.json | 16 +- .../pull_request.unassigned.payload.json | 16 +- .../pull_request.unlabeled.payload.json | 16 +- ...pull_request_review.submitted.payload.json | 16 +- ...equest_review_comment.created.payload.json | 16 +- .../static/ghes-2.21/push.payload.json | 4 +- .../ghes-2.21/release.published.payload.json | 4 +- .../static/ghes-2.21/status.payload.json | 4 +- .../static/ghes-2.21/team.edited.payload.json | 3 +- .../check_suite.requested.payload.json | 4 +- .../static/ghes-2.22/deployment.payload.json | 3 +- .../ghes-2.22/deployment_status.payload.json | 3 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- ...stallation_repositories.added.payload.json | 4 +- ...allation_repositories.removed.payload.json | 4 +- .../ghes-2.22/issues.assigned.payload.json | 4 +- .../issues.demilestoned.payload.json | 8 +- .../ghes-2.22/issues.edited.payload.json | 3 +- .../ghes-2.22/issues.opened.payload.json | 4 +- .../ghes-2.22/issues.unassigned.payload.json | 4 +- .../ghes-2.22/issues.unlabeled.payload.json | 8 +- .../pull_request.assigned.payload.json | 12 +- .../pull_request.closed.payload.json | 16 +- .../pull_request.labeled.payload.json | 12 +- .../pull_request.opened.payload.json | 16 +- .../pull_request.unassigned.payload.json | 16 +- .../pull_request.unlabeled.payload.json | 16 +- ...pull_request_review.submitted.payload.json | 16 +- ...equest_review_comment.created.payload.json | 16 +- .../static/ghes-2.22/push.payload.json | 4 +- .../ghes-2.22/release.published.payload.json | 4 +- .../static/ghes-2.22/status.payload.json | 4 +- .../static/ghes-2.22/team.edited.payload.json | 3 +- tests/fixtures/rest-redirects.json | 2 +- 203 files changed, 942 insertions(+), 1552 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 10a610b4e7f3..913675da15f2 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,18 +1,16 @@ -// Codespaces environment for docs.github.com -// For format details, see https://aka.ms/vscode-remote/devcontainer.json { - "name": "docs.github.com", - "service": "container-doc", - "settings": { - "terminal.integrated.shell.linux": "/bin/bash", - "cSpell.language": ",en" - }, - // Install pre-requisites, and start to serve docs.github.com locally - "postCreateCommand": "npm install && npm start", - "forwardPorts": [4000], - // Visual Studio Code extensions which help authoring for docs.github.com. - "extensions": [ - "yzhang.markdown-all-in-one", - "streetsidesoftware.code-spell-checker" - ] + "name": "docs.github.com", + "service": "container-doc", + "settings": { + "terminal.integrated.shell.linux": "/bin/bash", + "cSpell.language": ",en" + }, + "postCreateCommand": "npm install && npm start", + "forwardPorts": [ + 4000 + ], + "extensions": [ + "yzhang.markdown-all-in-one", + "streetsidesoftware.code-spell-checker" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index edaab6e623e6..aeeab76e8234 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,4 +2,4 @@ "files.exclude": { "**/translations": true } -} \ No newline at end of file +} diff --git a/app.json b/app.json index 576dcda241ec..6240fb82b1fb 100644 --- a/app.json +++ b/app.json @@ -5,7 +5,9 @@ "NPM_CONFIG_PRODUCTION": "true" }, "buildpacks": [ - { "url": "heroku/nodejs" } + { + "url": "heroku/nodejs" + } ], "formation": { "web": { diff --git a/lib/algolia/cached-index-names.json b/lib/algolia/cached-index-names.json index 1a4006b74386..54031fdfd3d6 100644 --- a/lib/algolia/cached-index-names.json +++ b/lib/algolia/cached-index-names.json @@ -71,4 +71,4 @@ "github-docs-dotcom-es", "github-docs-dotcom-ja", "github-docs-dotcom-pt" -] \ No newline at end of file +] diff --git a/lib/enterprise-dates.json b/lib/enterprise-dates.json index d5724da99564..e7b9d1be388c 100644 --- a/lib/enterprise-dates.json +++ b/lib/enterprise-dates.json @@ -95,4 +95,4 @@ "releaseDate": "2020-12-08", "deprecationDate": "2021-12-08" } -} \ No newline at end of file +} diff --git a/lib/graphql/static/changelog.json b/lib/graphql/static/changelog.json index b1628efe1d04..2631980be786 100644 --- a/lib/graphql/static/changelog.json +++ b/lib/graphql/static/changelog.json @@ -6748,4 +6748,4 @@ "previewChanges": [], "upcomingChanges": [] } -] \ No newline at end of file +] diff --git a/lib/graphql/static/prerendered-objects.json b/lib/graphql/static/prerendered-objects.json index acb630625d3a..e83ef83ae086 100644 --- a/lib/graphql/static/prerendered-objects.json +++ b/lib/graphql/static/prerendered-objects.json @@ -12919,4 +12919,4 @@ } ] } -} \ No newline at end of file +} diff --git a/lib/graphql/static/previews.json b/lib/graphql/static/previews.json index 35b892d8bc2f..f3738d684338 100644 --- a/lib/graphql/static/previews.json +++ b/lib/graphql/static/previews.json @@ -1324,4 +1324,4 @@ "href": "/graphql/overview/schema-previews#team-review-assignments-preview" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/schema-dotcom.json b/lib/graphql/static/schema-dotcom.json index 9ce856849055..1d827d634365 100644 --- a/lib/graphql/static/schema-dotcom.json +++ b/lib/graphql/static/schema-dotcom.json @@ -69330,4 +69330,4 @@ "description": "

A valid x509 certificate string.

" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/schema-ghae.json b/lib/graphql/static/schema-ghae.json index e0f0835b047f..d2562ba8c4c6 100644 --- a/lib/graphql/static/schema-ghae.json +++ b/lib/graphql/static/schema-ghae.json @@ -64910,4 +64910,4 @@ "description": "

A valid x509 certificate string.

" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/schema-ghes-2.19.json b/lib/graphql/static/schema-ghes-2.19.json index aae3e5b9a4c2..fe98dc7602ef 100644 --- a/lib/graphql/static/schema-ghes-2.19.json +++ b/lib/graphql/static/schema-ghes-2.19.json @@ -65566,4 +65566,4 @@ "description": "

A valid x509 certificate string.

" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/schema-ghes-2.20.json b/lib/graphql/static/schema-ghes-2.20.json index 79257cefcdd9..15ad63a68999 100644 --- a/lib/graphql/static/schema-ghes-2.20.json +++ b/lib/graphql/static/schema-ghes-2.20.json @@ -68512,4 +68512,4 @@ "description": "

A valid x509 certificate string.

" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/schema-ghes-2.21.json b/lib/graphql/static/schema-ghes-2.21.json index 9413ac0072a3..83b44199a70f 100644 --- a/lib/graphql/static/schema-ghes-2.21.json +++ b/lib/graphql/static/schema-ghes-2.21.json @@ -69609,4 +69609,4 @@ "description": "

A valid x509 certificate string.

" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/schema-ghes-2.22.json b/lib/graphql/static/schema-ghes-2.22.json index ca246acf120c..00a73b32f628 100644 --- a/lib/graphql/static/schema-ghes-2.22.json +++ b/lib/graphql/static/schema-ghes-2.22.json @@ -66008,4 +66008,4 @@ "description": "

A valid x509 certificate string.

" } ] -} \ No newline at end of file +} diff --git a/lib/graphql/static/upcoming-changes.json b/lib/graphql/static/upcoming-changes.json index 56ff262987e7..1dcc91564d2f 100644 --- a/lib/graphql/static/upcoming-changes.json +++ b/lib/graphql/static/upcoming-changes.json @@ -1839,4 +1839,4 @@ } ] } -} \ No newline at end of file +} diff --git a/lib/graphql/types.json b/lib/graphql/types.json index 2d418f53173a..4525cb7016af 100644 --- a/lib/graphql/types.json +++ b/lib/graphql/types.json @@ -1,34 +1,34 @@ [ { - "kind":"queries", - "type":"QueryTypeDefinition" + "kind": "queries", + "type": "QueryTypeDefinition" }, { - "kind":"mutations", - "type":"Mutation" + "kind": "mutations", + "type": "Mutation" }, { - "kind":"objects", - "type":"ObjectTypeDefinition" + "kind": "objects", + "type": "ObjectTypeDefinition" }, { - "kind":"interfaces", - "type":"InterfaceTypeDefinition" + "kind": "interfaces", + "type": "InterfaceTypeDefinition" }, { - "kind":"enums", - "type":"EnumTypeDefinition" + "kind": "enums", + "type": "EnumTypeDefinition" }, { - "kind":"unions", - "type":"UnionTypeDefinition" + "kind": "unions", + "type": "UnionTypeDefinition" }, { - "kind":"inputObjects", - "type":"InputObjectTypeDefinition" + "kind": "inputObjects", + "type": "InputObjectTypeDefinition" }, { - "kind":"scalars", - "type":"ScalarTypeDefinition" + "kind": "scalars", + "type": "ScalarTypeDefinition" } ] diff --git a/lib/redirects/static/archived-routes-from-213-to-217.json b/lib/redirects/static/archived-routes-from-213-to-217.json index c3681051e284..ef9a662fd1f9 100644 --- a/lib/redirects/static/archived-routes-from-213-to-217.json +++ b/lib/redirects/static/archived-routes-from-213-to-217.json @@ -16244,4 +16244,4 @@ "/pt/enterprise/2.17/user/rest/reference/search", "/pt/enterprise/2.17/user/rest/reference/teams", "/pt/enterprise/2.17/user/rest/reference/users" -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/api.github.com.json b/lib/rest/static/decorated/api.github.com.json index 850a68dd3440..76ea5049f194 100644 --- a/lib/rest/static/decorated/api.github.com.json +++ b/lib/rest/static/decorated/api.github.com.json @@ -86098,4 +86098,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/ghes-2.18.json b/lib/rest/static/decorated/ghes-2.18.json index 4e64e951b9de..db0f1592a8c7 100644 --- a/lib/rest/static/decorated/ghes-2.18.json +++ b/lib/rest/static/decorated/ghes-2.18.json @@ -64159,4 +64159,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/ghes-2.19.json b/lib/rest/static/decorated/ghes-2.19.json index 41ae5965da95..d83e7826c81a 100644 --- a/lib/rest/static/decorated/ghes-2.19.json +++ b/lib/rest/static/decorated/ghes-2.19.json @@ -64757,4 +64757,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/ghes-2.20.json b/lib/rest/static/decorated/ghes-2.20.json index 8aa3ac40fb2d..a0f791761fdd 100644 --- a/lib/rest/static/decorated/ghes-2.20.json +++ b/lib/rest/static/decorated/ghes-2.20.json @@ -65315,4 +65315,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/ghes-2.21.json b/lib/rest/static/decorated/ghes-2.21.json index 9c77dadb88b6..46796a6500dc 100644 --- a/lib/rest/static/decorated/ghes-2.21.json +++ b/lib/rest/static/decorated/ghes-2.21.json @@ -69469,4 +69469,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/ghes-2.22.json b/lib/rest/static/decorated/ghes-2.22.json index 2172ab77d661..6d70e92175d4 100644 --- a/lib/rest/static/decorated/ghes-2.22.json +++ b/lib/rest/static/decorated/ghes-2.22.json @@ -76896,4 +76896,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json index 4789b085350a..69d690c5c224 100644 --- a/lib/rest/static/decorated/github.ae.json +++ b/lib/rest/static/decorated/github.ae.json @@ -65718,4 +65718,4 @@ "bodyParameters": [], "descriptionHTML": "

Get a random sentence from the Zen of GitHub

" } -] \ No newline at end of file +] diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json index cb65bf9dc55b..83afeda3fe90 100644 --- a/lib/rest/static/dereferenced/api.github.com.deref.json +++ b/lib/rest/static/dereferenced/api.github.com.deref.json @@ -304787,4 +304787,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/rest/static/dereferenced/ghes-2.18.deref.json b/lib/rest/static/dereferenced/ghes-2.18.deref.json index ee90286d5faf..0b6457eaabab 100644 --- a/lib/rest/static/dereferenced/ghes-2.18.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.18.deref.json @@ -247037,4 +247037,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/rest/static/dereferenced/ghes-2.19.deref.json b/lib/rest/static/dereferenced/ghes-2.19.deref.json index af16f89def9b..a826873577d5 100644 --- a/lib/rest/static/dereferenced/ghes-2.19.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.19.deref.json @@ -250276,4 +250276,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/rest/static/dereferenced/ghes-2.20.deref.json b/lib/rest/static/dereferenced/ghes-2.20.deref.json index 763df6e37f77..a706ec3ae88c 100644 --- a/lib/rest/static/dereferenced/ghes-2.20.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.20.deref.json @@ -252363,4 +252363,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/rest/static/dereferenced/ghes-2.21.deref.json b/lib/rest/static/dereferenced/ghes-2.21.deref.json index 999e7b7bbf8a..5a33d0b5b91a 100644 --- a/lib/rest/static/dereferenced/ghes-2.21.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.21.deref.json @@ -259700,4 +259700,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/rest/static/dereferenced/ghes-2.22.deref.json b/lib/rest/static/dereferenced/ghes-2.22.deref.json index 7246c2e7f80d..84890c54c645 100644 --- a/lib/rest/static/dereferenced/ghes-2.22.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.22.deref.json @@ -280713,4 +280713,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json index f3583ef0714c..d966dcbb4359 100644 --- a/lib/rest/static/dereferenced/github.ae.deref.json +++ b/lib/rest/static/dereferenced/github.ae.deref.json @@ -251656,4 +251656,4 @@ } } } -} \ No newline at end of file +} diff --git a/lib/webhooks/static/dotcom/check_run.completed.payload.json b/lib/webhooks/static/dotcom/check_run.completed.payload.json index 099dd6872589..bf9adb89bce3 100644 --- a/lib/webhooks/static/dotcom/check_run.completed.payload.json +++ b/lib/webhooks/static/dotcom/check_run.completed.payload.json @@ -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" @@ -162,9 +160,7 @@ "team_discussions": "write", "vulnerability_alerts": "read" }, - "events": [ - - ] + "events": [] }, "pull_requests": [ { diff --git a/lib/webhooks/static/dotcom/check_run.created.payload.json b/lib/webhooks/static/dotcom/check_run.created.payload.json index bcc454ce89ce..46e2bef04690 100644 --- a/lib/webhooks/static/dotcom/check_run.created.payload.json +++ b/lib/webhooks/static/dotcom/check_run.created.payload.json @@ -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" @@ -162,9 +160,7 @@ "team_discussions": "write", "vulnerability_alerts": "read" }, - "events": [ - - ] + "events": [] }, "pull_requests": [ { diff --git a/lib/webhooks/static/dotcom/check_run.rerequested.payload.json b/lib/webhooks/static/dotcom/check_run.rerequested.payload.json index 5d05c30c68da..7284c0f014bb 100644 --- a/lib/webhooks/static/dotcom/check_run.rerequested.payload.json +++ b/lib/webhooks/static/dotcom/check_run.rerequested.payload.json @@ -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==", @@ -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, diff --git a/lib/webhooks/static/dotcom/check_suite.completed.payload.json b/lib/webhooks/static/dotcom/check_suite.completed.payload.json index af42306a75ec..f2e3c5636676 100644 --- a/lib/webhooks/static/dotcom/check_suite.completed.payload.json +++ b/lib/webhooks/static/dotcom/check_suite.completed.payload.json @@ -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", diff --git a/lib/webhooks/static/dotcom/check_suite.requested.payload.json b/lib/webhooks/static/dotcom/check_suite.requested.payload.json index 153dbdd89f80..88ad08deaa69 100644 --- a/lib/webhooks/static/dotcom/check_suite.requested.payload.json +++ b/lib/webhooks/static/dotcom/check_suite.requested.payload.json @@ -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=", @@ -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", diff --git a/lib/webhooks/static/dotcom/check_suite.rerequested.payload.json b/lib/webhooks/static/dotcom/check_suite.rerequested.payload.json index ab99f4ee182e..ecd7f8182950 100644 --- a/lib/webhooks/static/dotcom/check_suite.rerequested.payload.json +++ b/lib/webhooks/static/dotcom/check_suite.rerequested.payload.json @@ -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", diff --git a/lib/webhooks/static/dotcom/deployment.payload.json b/lib/webhooks/static/dotcom/deployment.payload.json index d8be3b9430b5..ffb37cee9eee 100644 --- a/lib/webhooks/static/dotcom/deployment.payload.json +++ b/lib/webhooks/static/dotcom/deployment.payload.json @@ -7,8 +7,7 @@ "sha": "f95f852bd8fca8fcc58a9a2d6c842781e32a215e", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/dotcom/deployment_status.payload.json b/lib/webhooks/static/dotcom/deployment_status.payload.json index b1a67d35a577..9bf07ae85e58 100644 --- a/lib/webhooks/static/dotcom/deployment_status.payload.json +++ b/lib/webhooks/static/dotcom/deployment_status.payload.json @@ -40,8 +40,7 @@ "sha": "f95f852bd8fca8fcc58a9a2d6c842781e32a215e", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/dotcom/installation.created.payload.json b/lib/webhooks/static/dotcom/installation.created.payload.json index 51820c4a566b..c9330e7ea1d2 100644 --- a/lib/webhooks/static/dotcom/installation.created.payload.json +++ b/lib/webhooks/static/dotcom/installation.created.payload.json @@ -43,9 +43,7 @@ "metadata": "read", "vulnerability_alerts": "read" }, - "events": [ - - ], + "events": [], "created_at": 1557933591, "updated_at": 1557933591, "single_file_name": null diff --git a/lib/webhooks/static/dotcom/installation_repositories.added.payload.json b/lib/webhooks/static/dotcom/installation_repositories.added.payload.json index 164d6655e5f0..3fc6f9a90186 100644 --- a/lib/webhooks/static/dotcom/installation_repositories.added.payload.json +++ b/lib/webhooks/static/dotcom/installation_repositories.added.payload.json @@ -43,9 +43,7 @@ "metadata": "read", "vulnerability_alerts": "read" }, - "events": [ - - ], + "events": [], "created_at": 1557933591, "updated_at": 1557933591, "single_file_name": null @@ -60,9 +58,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "sender": { "login": "Codertocat", "id": 21031067, diff --git a/lib/webhooks/static/dotcom/installation_repositories.removed.payload.json b/lib/webhooks/static/dotcom/installation_repositories.removed.payload.json index 33e58eff7763..afae8028feda 100644 --- a/lib/webhooks/static/dotcom/installation_repositories.removed.payload.json +++ b/lib/webhooks/static/dotcom/installation_repositories.removed.payload.json @@ -43,9 +43,7 @@ "single_file_name": "config.yml" }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 1296269, diff --git a/lib/webhooks/static/dotcom/integration_installation.created.payload.json b/lib/webhooks/static/dotcom/integration_installation.created.payload.json index 51820c4a566b..c9330e7ea1d2 100644 --- a/lib/webhooks/static/dotcom/integration_installation.created.payload.json +++ b/lib/webhooks/static/dotcom/integration_installation.created.payload.json @@ -43,9 +43,7 @@ "metadata": "read", "vulnerability_alerts": "read" }, - "events": [ - - ], + "events": [], "created_at": 1557933591, "updated_at": 1557933591, "single_file_name": null diff --git a/lib/webhooks/static/dotcom/integration_installation_repositories.added.payload.json b/lib/webhooks/static/dotcom/integration_installation_repositories.added.payload.json index 164d6655e5f0..3fc6f9a90186 100644 --- a/lib/webhooks/static/dotcom/integration_installation_repositories.added.payload.json +++ b/lib/webhooks/static/dotcom/integration_installation_repositories.added.payload.json @@ -43,9 +43,7 @@ "metadata": "read", "vulnerability_alerts": "read" }, - "events": [ - - ], + "events": [], "created_at": 1557933591, "updated_at": 1557933591, "single_file_name": null @@ -60,9 +58,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "sender": { "login": "Codertocat", "id": 21031067, diff --git a/lib/webhooks/static/dotcom/issues.assigned.payload.json b/lib/webhooks/static/dotcom/issues.assigned.payload.json index 39fdd8c764fb..70788ed25816 100644 --- a/lib/webhooks/static/dotcom/issues.assigned.payload.json +++ b/lib/webhooks/static/dotcom/issues.assigned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/dotcom/issues.demilestoned.payload.json b/lib/webhooks/static/dotcom/issues.demilestoned.payload.json index 1ad88e31cfce..70f653aea777 100644 --- a/lib/webhooks/static/dotcom/issues.demilestoned.payload.json +++ b/lib/webhooks/static/dotcom/issues.demilestoned.payload.json @@ -44,9 +44,7 @@ "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T15:20:33Z", diff --git a/lib/webhooks/static/dotcom/issues.edited.payload.json b/lib/webhooks/static/dotcom/issues.edited.payload.json index 10c607125178..b4cdc81b1e67 100644 --- a/lib/webhooks/static/dotcom/issues.edited.payload.json +++ b/lib/webhooks/static/dotcom/issues.edited.payload.json @@ -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=", diff --git a/lib/webhooks/static/dotcom/issues.locked.payload.json b/lib/webhooks/static/dotcom/issues.locked.payload.json index 180dd17205de..653a1f3993eb 100644 --- a/lib/webhooks/static/dotcom/issues.locked.payload.json +++ b/lib/webhooks/static/dotcom/issues.locked.payload.json @@ -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", diff --git a/lib/webhooks/static/dotcom/issues.milestoned.payload.json b/lib/webhooks/static/dotcom/issues.milestoned.payload.json index 87ca37da6f2f..f6738ce0aa9c 100644 --- a/lib/webhooks/static/dotcom/issues.milestoned.payload.json +++ b/lib/webhooks/static/dotcom/issues.milestoned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/dotcom/issues.opened.payload.json b/lib/webhooks/static/dotcom/issues.opened.payload.json index b544d2fd4477..edfae2a8e544 100644 --- a/lib/webhooks/static/dotcom/issues.opened.payload.json +++ b/lib/webhooks/static/dotcom/issues.opened.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/dotcom/issues.unlabeled.payload.json b/lib/webhooks/static/dotcom/issues.unlabeled.payload.json index d67bc292c35b..828362c0c3cf 100644 --- a/lib/webhooks/static/dotcom/issues.unlabeled.payload.json +++ b/lib/webhooks/static/dotcom/issues.unlabeled.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T15:20:18Z", diff --git a/lib/webhooks/static/dotcom/issues.unlocked.payload.json b/lib/webhooks/static/dotcom/issues.unlocked.payload.json index d49955ecb6ed..28984d5eeb57 100644 --- a/lib/webhooks/static/dotcom/issues.unlocked.payload.json +++ b/lib/webhooks/static/dotcom/issues.unlocked.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T15:20:18Z", diff --git a/lib/webhooks/static/dotcom/marketplace_purchase.cancelled.payload.json b/lib/webhooks/static/dotcom/marketplace_purchase.cancelled.payload.json index 3d035805ed43..70cdb7b6b76b 100644 --- a/lib/webhooks/static/dotcom/marketplace_purchase.cancelled.payload.json +++ b/lib/webhooks/static/dotcom/marketplace_purchase.cancelled.payload.json @@ -1,51 +1,51 @@ { - "action":"cancelled", - "effective_date":"2017-10-25T00:00:00+00:00", - "sender":{ - "login":"username", - "id":3877742, - "avatar_url":"https://avatars2.githubusercontent.com/u/3877742?v=4", - "gravatar_id":"", - "url":"https://api.github.com/users/username", - "html_url":"https://github.com/username", - "followers_url":"https://api.github.com/users/username/followers", - "following_url":"https://api.github.com/users/username/following{/other_user}", - "gists_url":"https://api.github.com/users/username/gists{/gist_id}", - "starred_url":"https://api.github.com/users/username/starred{/owner}{/repo}", - "subscriptions_url":"https://api.github.com/users/username/subscriptions", - "organizations_url":"https://api.github.com/users/username/orgs", - "repos_url":"https://api.github.com/users/username/repos", - "events_url":"https://api.github.com/users/username/events{/privacy}", - "received_events_url":"https://api.github.com/users/username/received_events", - "type":"User", - "site_admin":true, - "email":"username@email.com" - }, - "marketplace_purchase":{ - "account":{ - "type":"Organization", - "id":28536653, - "login":"organizationUsername", - "organization_billing_email":"organizationusername@gmail.com" - }, - "billing_cycle":"monthly", - "unit_count":0, - "on_free_trial":false, - "free_trial_ends_on":null, - "next_billing_date":"2017-11-08T00:00:00+00:00", - "plan":{ - "id":686, - "name":"Premium Plan", - "description":"Premium Plan", - "monthly_price_in_cents":10000, - "yearly_price_in_cents":100000, - "price_model":"flat-rate", - "has_free_trial":true, - "unit_name":null, - "bullets":[ - "Is Expensive", - "And Flat Rate" - ] - } - } + "action": "cancelled", + "effective_date": "2017-10-25T00:00:00+00:00", + "sender": { + "login": "username", + "id": 3877742, + "avatar_url": "https://avatars2.githubusercontent.com/u/3877742?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/username", + "html_url": "https://github.com/username", + "followers_url": "https://api.github.com/users/username/followers", + "following_url": "https://api.github.com/users/username/following{/other_user}", + "gists_url": "https://api.github.com/users/username/gists{/gist_id}", + "starred_url": "https://api.github.com/users/username/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/username/subscriptions", + "organizations_url": "https://api.github.com/users/username/orgs", + "repos_url": "https://api.github.com/users/username/repos", + "events_url": "https://api.github.com/users/username/events{/privacy}", + "received_events_url": "https://api.github.com/users/username/received_events", + "type": "User", + "site_admin": true, + "email": "username@email.com" + }, + "marketplace_purchase": { + "account": { + "type": "Organization", + "id": 28536653, + "login": "organizationUsername", + "organization_billing_email": "organizationusername@gmail.com" + }, + "billing_cycle": "monthly", + "unit_count": 0, + "on_free_trial": false, + "free_trial_ends_on": null, + "next_billing_date": "2017-11-08T00:00:00+00:00", + "plan": { + "id": 686, + "name": "Premium Plan", + "description": "Premium Plan", + "monthly_price_in_cents": 10000, + "yearly_price_in_cents": 100000, + "price_model": "flat-rate", + "has_free_trial": true, + "unit_name": null, + "bullets": [ + "Is Expensive", + "And Flat Rate" + ] + } + } } diff --git a/lib/webhooks/static/dotcom/marketplace_purchase.changed.payload.json b/lib/webhooks/static/dotcom/marketplace_purchase.changed.payload.json index f2cedfacb2b2..80c1029250f8 100644 --- a/lib/webhooks/static/dotcom/marketplace_purchase.changed.payload.json +++ b/lib/webhooks/static/dotcom/marketplace_purchase.changed.payload.json @@ -1,77 +1,77 @@ { - "action":"changed", - "effective_date":"2017-10-25T00:00:00+00:00", - "sender":{ - "login":"username", - "id":3877742, - "avatar_url":"https://avatars2.githubusercontent.com/u/3877742?v=4", - "gravatar_id":"", - "url":"https://api.github.com/users/username", - "html_url":"https://github.com/username", - "followers_url":"https://api.github.com/users/username/followers", - "following_url":"https://api.github.com/users/username/following{/other_user}", - "gists_url":"https://api.github.com/users/username/gists{/gist_id}", - "starred_url":"https://api.github.com/users/username/starred{/owner}{/repo}", - "subscriptions_url":"https://api.github.com/users/username/subscriptions", - "organizations_url":"https://api.github.com/users/username/orgs", - "repos_url":"https://api.github.com/users/username/repos", - "events_url":"https://api.github.com/users/username/events{/privacy}", - "received_events_url":"https://api.github.com/users/username/received_events", - "type":"User", - "site_admin":true, - "email":"username@email.com" - }, - "marketplace_purchase":{ - "account":{ - "type":"Organization", - "id":18404719, - "login":"username", - "organization_billing_email":"username@email.com" - }, - "billing_cycle":"monthly", - "unit_count":10, - "on_free_trial":false, - "free_trial_ends_on":null, - "next_billing_date":"2017-11-05T00:00:00+00:00", - "plan":{ - "id":435, - "name":"Basic Plan", - "description":"Basic Plan", - "monthly_price_in_cents":1000, - "yearly_price_in_cents":10000, - "price_model":"per-unit", - "has_free_trial":true, - "unit_name":"seat", - "bullets":[ - "Is Basic", - "Because Basic " - ] - } - }, - "previous_marketplace_purchase":{ - "account":{ - "type":"Organization", - "id":18404719, - "login":"username", - "organization_billing_email":"username@email.com" - }, - "billing_cycle":"monthly", - "on_free_trial":false, - "free_trial_ends_on":null, - "unit_count":1, - "plan":{ - "id":435, - "name":"Basic Plan", - "description":"Basic Plan", - "monthly_price_in_cents":1000, - "yearly_price_in_cents":10000, - "price_model":"per-unit", - "has_free_trial":true, - "unit_name":"seat", - "bullets":[ - "Is Basic", - "Because Basic " - ] - } - } + "action": "changed", + "effective_date": "2017-10-25T00:00:00+00:00", + "sender": { + "login": "username", + "id": 3877742, + "avatar_url": "https://avatars2.githubusercontent.com/u/3877742?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/username", + "html_url": "https://github.com/username", + "followers_url": "https://api.github.com/users/username/followers", + "following_url": "https://api.github.com/users/username/following{/other_user}", + "gists_url": "https://api.github.com/users/username/gists{/gist_id}", + "starred_url": "https://api.github.com/users/username/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/username/subscriptions", + "organizations_url": "https://api.github.com/users/username/orgs", + "repos_url": "https://api.github.com/users/username/repos", + "events_url": "https://api.github.com/users/username/events{/privacy}", + "received_events_url": "https://api.github.com/users/username/received_events", + "type": "User", + "site_admin": true, + "email": "username@email.com" + }, + "marketplace_purchase": { + "account": { + "type": "Organization", + "id": 18404719, + "login": "username", + "organization_billing_email": "username@email.com" + }, + "billing_cycle": "monthly", + "unit_count": 10, + "on_free_trial": false, + "free_trial_ends_on": null, + "next_billing_date": "2017-11-05T00:00:00+00:00", + "plan": { + "id": 435, + "name": "Basic Plan", + "description": "Basic Plan", + "monthly_price_in_cents": 1000, + "yearly_price_in_cents": 10000, + "price_model": "per-unit", + "has_free_trial": true, + "unit_name": "seat", + "bullets": [ + "Is Basic", + "Because Basic " + ] + } + }, + "previous_marketplace_purchase": { + "account": { + "type": "Organization", + "id": 18404719, + "login": "username", + "organization_billing_email": "username@email.com" + }, + "billing_cycle": "monthly", + "on_free_trial": false, + "free_trial_ends_on": null, + "unit_count": 1, + "plan": { + "id": 435, + "name": "Basic Plan", + "description": "Basic Plan", + "monthly_price_in_cents": 1000, + "yearly_price_in_cents": 10000, + "price_model": "per-unit", + "has_free_trial": true, + "unit_name": "seat", + "bullets": [ + "Is Basic", + "Because Basic " + ] + } + } } diff --git a/lib/webhooks/static/dotcom/marketplace_purchase.purchased.payload.json b/lib/webhooks/static/dotcom/marketplace_purchase.purchased.payload.json index 2a167c8c9d26..52689a502f7b 100644 --- a/lib/webhooks/static/dotcom/marketplace_purchase.purchased.payload.json +++ b/lib/webhooks/static/dotcom/marketplace_purchase.purchased.payload.json @@ -1,51 +1,51 @@ { - "action":"purchased", - "effective_date":"2017-10-25T00:00:00+00:00", - "sender":{ - "login":"username", - "id":3877742, - "avatar_url":"https://avatars2.githubusercontent.com/u/3877742?v=4", - "gravatar_id":"", - "url":"https://api.github.com/users/username", - "html_url":"https://github.com/username", - "followers_url":"https://api.github.com/users/username/followers", - "following_url":"https://api.github.com/users/username/following{/other_user}", - "gists_url":"https://api.github.com/users/username/gists{/gist_id}", - "starred_url":"https://api.github.com/users/username/starred{/owner}{/repo}", - "subscriptions_url":"https://api.github.com/users/username/subscriptions", - "organizations_url":"https://api.github.com/users/username/orgs", - "repos_url":"https://api.github.com/users/username/repos", - "events_url":"https://api.github.com/users/username/events{/privacy}", - "received_events_url":"https://api.github.com/users/username/received_events", - "type":"User", - "site_admin":true, - "email":"username@email.com" - }, - "marketplace_purchase":{ - "account":{ - "type":"Organization", - "id":18404719, - "login":"username", - "organization_billing_email":"username@email.com" - }, - "billing_cycle":"monthly", - "unit_count":1, - "on_free_trial":false, - "free_trial_ends_on":null, - "next_billing_date":"2017-11-05T00:00:00+00:00", - "plan":{ - "id":435, - "name":"Basic Plan", - "description":"Basic Plan", - "monthly_price_in_cents":1000, - "yearly_price_in_cents":10000, - "price_model":"per-unit", - "has_free_trial":true, - "unit_name":"seat", - "bullets":[ - "Is Basic", - "Because Basic " - ] - } - } + "action": "purchased", + "effective_date": "2017-10-25T00:00:00+00:00", + "sender": { + "login": "username", + "id": 3877742, + "avatar_url": "https://avatars2.githubusercontent.com/u/3877742?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/username", + "html_url": "https://github.com/username", + "followers_url": "https://api.github.com/users/username/followers", + "following_url": "https://api.github.com/users/username/following{/other_user}", + "gists_url": "https://api.github.com/users/username/gists{/gist_id}", + "starred_url": "https://api.github.com/users/username/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/username/subscriptions", + "organizations_url": "https://api.github.com/users/username/orgs", + "repos_url": "https://api.github.com/users/username/repos", + "events_url": "https://api.github.com/users/username/events{/privacy}", + "received_events_url": "https://api.github.com/users/username/received_events", + "type": "User", + "site_admin": true, + "email": "username@email.com" + }, + "marketplace_purchase": { + "account": { + "type": "Organization", + "id": 18404719, + "login": "username", + "organization_billing_email": "username@email.com" + }, + "billing_cycle": "monthly", + "unit_count": 1, + "on_free_trial": false, + "free_trial_ends_on": null, + "next_billing_date": "2017-11-05T00:00:00+00:00", + "plan": { + "id": 435, + "name": "Basic Plan", + "description": "Basic Plan", + "monthly_price_in_cents": 1000, + "yearly_price_in_cents": 10000, + "price_model": "per-unit", + "has_free_trial": true, + "unit_name": "seat", + "bullets": [ + "Is Basic", + "Because Basic " + ] + } + } } diff --git a/lib/webhooks/static/dotcom/package.published.payload.json b/lib/webhooks/static/dotcom/package.published.payload.json index f310484f15a3..8d1559cb282c 100644 --- a/lib/webhooks/static/dotcom/package.published.payload.json +++ b/lib/webhooks/static/dotcom/package.published.payload.json @@ -1,222 +1,132 @@ { - "action":"published", - "package":{ - "id":10696, - "name":"hello-world-npm", - "package_type":"npm", - "html_url":"https://github.com/Codertocat/hello-world-npm/packages/10696", - "created_at":"2019-05-09T23:28:29Z", - "updated_at":"2019-05-09T23:28:29Z", - "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 - }, - "package_version":{ - "id":24147, - "version":"1.0.0", - "summary":"A simple npm package to demonstrate GitHub Packages", - "body":"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n", - "body_html":"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
", - "release":{ - "url":"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286", - "html_url":"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0", - "id":17264286, - "tag_name":"1.0.0", - "target_commitish":"master", - "name":"1.0.0", - "draft":false, - "author":{ - "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 - }, - "prerelease":false, - "created_at":"2019-05-09T23:24:40Z", - "published_at":"2019-05-09T23:26:59Z" - }, - "manifest":"{\"_from\":\"\",\"_id\":\"@codertocat/hello-world-npm@1.0.0\",\"_nodeVersion\":\"10.0.0\",\"_npmUser\":{},\"_npmVersion\":\"5.6.0\",\"_shasum\":\"\",\"author\":{\"name\":\"Codertocat\"},\"bugs\":{\"url\":\"https://github.com/Codertocat/hello-world-npm/issues\"},\"description\":\"A simple npm package to demonstrate GitHub Package Registry\",\"dependencies\":null,\"devDependencies\":null,\"peerDependencies\":null,\"dist\":{\"integrity\":\"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==\",\"shasum\":\"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb\",\"tarball\":\"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz\"},\"gitHead\":\"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b\",\"homepage\":\"https://github.com/Codertocat/hello-world-npm#readme\",\"license\":\"ISC\",\"main\":\"index.js\",\"name\":\"@codertocat/hello-world-npm\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/Codertocat/hello-world-npm.git\"},\"scripts\":{\"test\":\"echo \\\"Error: no test specified\\\" \\u0026\\u0026 exit 1\"},\"version\":\"1.0.0\"}", - "html_url":"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0", - "tag_name":"1.0.0", - "target_commitish":"master", - "target_oid":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b", - "draft":false, - "prerelease":false, - "created_at":"2019-05-09T23:28:29Z", - "updated_at":"2019-05-09T23:28:30Z", - "metadata":[ - - ], - "package_files":[ - { - "download_url":"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream", - "id":92167, - "name":"hello-world-npm-1.0.0-npm.tgz", - "sha256":"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8", - "sha1":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb", - "md5":"56ebbd5a5a03367f62d0c732bafd3c66", - "content_type":"application/octet-stream", - "state":"uploaded", - "size":654, - "created_at":"2019-05-09T23:28:30Z", - "updated_at":"2019-05-09T23:28:30Z" - } - ], - "author":{ - "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_command":"npm install @Codertocat/@1.0.0" - }, - "registry":{ - "about_url":"https://help.github.com/about-github-packages", - "name":"GitHub npm registry", - "type":"npm", - "url":"https://npm.pkg.github.com/@Codertocat", - "vendor":"GitHub Inc" - } + "action": "published", + "package": { + "id": 10696, + "name": "hello-world-npm", + "package_type": "npm", + "html_url": "https://github.com/Codertocat/hello-world-npm/packages/10696", + "created_at": "2019-05-09T23:28:29Z", + "updated_at": "2019-05-09T23:28:29Z", + "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 }, - "repository":{ - "id":185882436, - "node_id":"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=", - "name":"hello-world-npm", - "full_name":"Codertocat/hello-world-npm", - "private":true, - "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-npm", - "description":null, - "fork":false, - "url":"https://api.github.com/repos/Codertocat/hello-world-npm", - "forks_url":"https://api.github.com/repos/Codertocat/hello-world-npm/forks", - "keys_url":"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}", - "collaborators_url":"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}", - "teams_url":"https://api.github.com/repos/Codertocat/hello-world-npm/teams", - "hooks_url":"https://api.github.com/repos/Codertocat/hello-world-npm/hooks", - "issue_events_url":"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}", - "events_url":"https://api.github.com/repos/Codertocat/hello-world-npm/events", - "assignees_url":"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}", - "branches_url":"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}", - "tags_url":"https://api.github.com/repos/Codertocat/hello-world-npm/tags", - "blobs_url":"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}", - "git_tags_url":"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}", - "git_refs_url":"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}", - "trees_url":"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}", - "statuses_url":"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}", - "languages_url":"https://api.github.com/repos/Codertocat/hello-world-npm/languages", - "stargazers_url":"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers", - "contributors_url":"https://api.github.com/repos/Codertocat/hello-world-npm/contributors", - "subscribers_url":"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers", - "subscription_url":"https://api.github.com/repos/Codertocat/hello-world-npm/subscription", - "commits_url":"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}", - "git_commits_url":"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}", - "comments_url":"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}", - "issue_comment_url":"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}", - "contents_url":"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}", - "compare_url":"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}", - "merges_url":"https://api.github.com/repos/Codertocat/hello-world-npm/merges", - "archive_url":"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}", - "downloads_url":"https://api.github.com/repos/Codertocat/hello-world-npm/downloads", - "issues_url":"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}", - "pulls_url":"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}", - "milestones_url":"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}", - "notifications_url":"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}", - "labels_url":"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}", - "releases_url":"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}", - "deployments_url":"https://api.github.com/repos/Codertocat/hello-world-npm/deployments", - "created_at":"2019-05-09T22:53:26Z", - "updated_at":"2019-05-09T23:24:42Z", - "pushed_at":"2019-05-09T23:27:00Z", - "git_url":"git://github.com/Codertocat/hello-world-npm.git", - "ssh_url":"git@github.com:Codertocat/hello-world-npm.git", - "clone_url":"https://github.com/Codertocat/hello-world-npm.git", - "svn_url":"https://github.com/Codertocat/hello-world-npm", - "homepage":null, - "size":0, - "stargazers_count":0, - "watchers_count":0, - "language":"JavaScript", - "has_issues":true, - "has_projects":true, - "has_downloads":true, - "has_wiki":true, - "has_pages":false, - "forks_count":0, - "mirror_url":null, - "archived":false, - "disabled":false, - "open_issues_count":0, - "license":null, - "forks":0, - "open_issues":0, - "watchers":0, - "default_branch":"master" + "package_version": { + "id": 24147, + "version": "1.0.0", + "summary": "A simple npm package to demonstrate GitHub Packages", + "body": "# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n", + "body_html": "

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
", + "release": { + "url": "https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286", + "html_url": "https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0", + "id": 17264286, + "tag_name": "1.0.0", + "target_commitish": "master", + "name": "1.0.0", + "draft": false, + "author": { + "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 + }, + "prerelease": false, + "created_at": "2019-05-09T23:24:40Z", + "published_at": "2019-05-09T23:26:59Z" + }, + "manifest": "{\"_from\":\"\",\"_id\":\"@codertocat/hello-world-npm@1.0.0\",\"_nodeVersion\":\"10.0.0\",\"_npmUser\":{},\"_npmVersion\":\"5.6.0\",\"_shasum\":\"\",\"author\":{\"name\":\"Codertocat\"},\"bugs\":{\"url\":\"https://github.com/Codertocat/hello-world-npm/issues\"},\"description\":\"A simple npm package to demonstrate GitHub Package Registry\",\"dependencies\":null,\"devDependencies\":null,\"peerDependencies\":null,\"dist\":{\"integrity\":\"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==\",\"shasum\":\"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb\",\"tarball\":\"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz\"},\"gitHead\":\"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b\",\"homepage\":\"https://github.com/Codertocat/hello-world-npm#readme\",\"license\":\"ISC\",\"main\":\"index.js\",\"name\":\"@codertocat/hello-world-npm\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/Codertocat/hello-world-npm.git\"},\"scripts\":{\"test\":\"echo \\\"Error: no test specified\\\" \\u0026\\u0026 exit 1\"},\"version\":\"1.0.0\"}", + "html_url": "https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0", + "tag_name": "1.0.0", + "target_commitish": "master", + "target_oid": "6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b", + "draft": false, + "prerelease": false, + "created_at": "2019-05-09T23:28:29Z", + "updated_at": "2019-05-09T23:28:30Z", + "metadata": [], + "package_files": [ + { + "download_url": "https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream", + "id": 92167, + "name": "hello-world-npm-1.0.0-npm.tgz", + "sha256": "ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8", + "sha1": "a413c56a12997ca1b56715ebe81d8c6e0ffe6abb", + "md5": "56ebbd5a5a03367f62d0c732bafd3c66", + "content_type": "application/octet-stream", + "state": "uploaded", + "size": 654, + "created_at": "2019-05-09T23:28:30Z", + "updated_at": "2019-05-09T23:28:30Z" + } + ], + "author": { + "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_command": "npm install @Codertocat/@1.0.0" }, - "sender": { + "registry": { + "about_url": "https://help.github.com/about-github-packages", + "name": "GitHub npm registry", + "type": "npm", + "url": "https://npm.pkg.github.com/@Codertocat", + "vendor": "GitHub Inc" + } + }, + "repository": { + "id": 185882436, + "node_id": "MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=", + "name": "hello-world-npm", + "full_name": "Codertocat/hello-world-npm", + "private": true, + "owner": { "login": "Codertocat", "id": 21031067, "node_id": "MDQ6VXNlcjIxMDMxMDY3", @@ -235,5 +145,93 @@ "received_events_url": "https://api.github.com/users/Codertocat/received_events", "type": "User", "site_admin": false - } + }, + "html_url": "https://github.com/Codertocat/hello-world-npm", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/Codertocat/hello-world-npm", + "forks_url": "https://api.github.com/repos/Codertocat/hello-world-npm/forks", + "keys_url": "https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Codertocat/hello-world-npm/teams", + "hooks_url": "https://api.github.com/repos/Codertocat/hello-world-npm/hooks", + "issue_events_url": "https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}", + "events_url": "https://api.github.com/repos/Codertocat/hello-world-npm/events", + "assignees_url": "https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}", + "branches_url": "https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}", + "tags_url": "https://api.github.com/repos/Codertocat/hello-world-npm/tags", + "blobs_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Codertocat/hello-world-npm/languages", + "stargazers_url": "https://api.github.com/repos/Codertocat/hello-world-npm/stargazers", + "contributors_url": "https://api.github.com/repos/Codertocat/hello-world-npm/contributors", + "subscribers_url": "https://api.github.com/repos/Codertocat/hello-world-npm/subscribers", + "subscription_url": "https://api.github.com/repos/Codertocat/hello-world-npm/subscription", + "commits_url": "https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}", + "compare_url": "https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Codertocat/hello-world-npm/merges", + "archive_url": "https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Codertocat/hello-world-npm/downloads", + "issues_url": "https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}", + "pulls_url": "https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}", + "releases_url": "https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}", + "deployments_url": "https://api.github.com/repos/Codertocat/hello-world-npm/deployments", + "created_at": "2019-05-09T22:53:26Z", + "updated_at": "2019-05-09T23:24:42Z", + "pushed_at": "2019-05-09T23:27:00Z", + "git_url": "git://github.com/Codertocat/hello-world-npm.git", + "ssh_url": "git@github.com:Codertocat/hello-world-npm.git", + "clone_url": "https://github.com/Codertocat/hello-world-npm.git", + "svn_url": "https://github.com/Codertocat/hello-world-npm", + "homepage": null, + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": "JavaScript", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "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 + } } diff --git a/lib/webhooks/static/dotcom/pull_request.assigned.payload.json b/lib/webhooks/static/dotcom/pull_request.assigned.payload.json index 3ffe2f540119..35658293e7d6 100644 --- a/lib/webhooks/static/dotcom/pull_request.assigned.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.assigned.payload.json @@ -62,15 +62,9 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request.closed.payload.json b/lib/webhooks/static/dotcom/pull_request.closed.payload.json index 42e1a0f25750..a8e0b7bde2d6 100644 --- a/lib/webhooks/static/dotcom/pull_request.closed.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.closed.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "c4295bd74fb0f4fda03689c3df3f2803b658fd85", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request.labeled.payload.json b/lib/webhooks/static/dotcom/pull_request.labeled.payload.json index 4844f392a906..2dcd59379fb7 100644 --- a/lib/webhooks/static/dotcom/pull_request.labeled.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.labeled.payload.json @@ -81,12 +81,8 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 1362934389, diff --git a/lib/webhooks/static/dotcom/pull_request.locked.payload.json b/lib/webhooks/static/dotcom/pull_request.locked.payload.json index d5569df3a6c3..69b1e866fb5c 100644 --- a/lib/webhooks/static/dotcom/pull_request.locked.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.locked.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "c4295bd74fb0f4fda03689c3df3f2803b658fd85", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request.opened.payload.json b/lib/webhooks/static/dotcom/pull_request.opened.payload.json index 7db8809b6105..a8efb69cc697 100644 --- a/lib/webhooks/static/dotcom/pull_request.opened.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.opened.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": null, "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request.unassigned.payload.json b/lib/webhooks/static/dotcom/pull_request.unassigned.payload.json index 8b34efdbee3c..3d4946d7d17e 100644 --- a/lib/webhooks/static/dotcom/pull_request.unassigned.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.unassigned.payload.json @@ -59,15 +59,9 @@ "type": "User", "site_admin": false }, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 1362934389, diff --git a/lib/webhooks/static/dotcom/pull_request.unlabeled.payload.json b/lib/webhooks/static/dotcom/pull_request.unlabeled.payload.json index 20e8e498815b..edbd62d98650 100644 --- a/lib/webhooks/static/dotcom/pull_request.unlabeled.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.unlabeled.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "c4295bd74fb0f4fda03689c3df3f2803b658fd85", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request.unlocked.payload.json b/lib/webhooks/static/dotcom/pull_request.unlocked.payload.json index 4d6daf63ca05..eed76a08022d 100644 --- a/lib/webhooks/static/dotcom/pull_request.unlocked.payload.json +++ b/lib/webhooks/static/dotcom/pull_request.unlocked.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "c4295bd74fb0f4fda03689c3df3f2803b658fd85", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request_review.submitted.payload.json b/lib/webhooks/static/dotcom/pull_request_review.submitted.payload.json index f059f89af3a9..ea08c2477795 100644 --- a/lib/webhooks/static/dotcom/pull_request_review.submitted.payload.json +++ b/lib/webhooks/static/dotcom/pull_request_review.submitted.payload.json @@ -78,18 +78,10 @@ "merged_at": null, "merge_commit_sha": "c4295bd74fb0f4fda03689c3df3f2803b658fd85", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/pull_request_review_comment.created.payload.json b/lib/webhooks/static/dotcom/pull_request_review_comment.created.payload.json index a89c446f2545..432ab6f50795 100644 --- a/lib/webhooks/static/dotcom/pull_request_review_comment.created.payload.json +++ b/lib/webhooks/static/dotcom/pull_request_review_comment.created.payload.json @@ -88,18 +88,10 @@ "merged_at": null, "merge_commit_sha": "c4295bd74fb0f4fda03689c3df3f2803b658fd85", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/dotcom/push.payload.json b/lib/webhooks/static/dotcom/push.payload.json index 720a5eca6548..b9f7ca2c4b30 100644 --- a/lib/webhooks/static/dotcom/push.payload.json +++ b/lib/webhooks/static/dotcom/push.payload.json @@ -7,9 +7,7 @@ "forced": false, "base_ref": null, "compare": "https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000", - "commits": [ - - ], + "commits": [], "head_commit": null, "repository": { "id": 186853002, diff --git a/lib/webhooks/static/dotcom/release.created.payload.json b/lib/webhooks/static/dotcom/release.created.payload.json index 4548ab7c2293..2da0bc18e113 100644 --- a/lib/webhooks/static/dotcom/release.created.payload.json +++ b/lib/webhooks/static/dotcom/release.created.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T15:19:25Z", "published_at": "2019-05-15T15:20:53Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/dotcom/release.published.payload.json b/lib/webhooks/static/dotcom/release.published.payload.json index c19446cbb6f2..867099f86b59 100644 --- a/lib/webhooks/static/dotcom/release.published.payload.json +++ b/lib/webhooks/static/dotcom/release.published.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T15:19:25Z", "published_at": "2019-05-15T15:20:53Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/dotcom/repository_dispatch.payload.json b/lib/webhooks/static/dotcom/repository_dispatch.payload.json index b44b8ae2c4d1..fd32d52c76ee 100644 --- a/lib/webhooks/static/dotcom/repository_dispatch.payload.json +++ b/lib/webhooks/static/dotcom/repository_dispatch.payload.json @@ -4,7 +4,7 @@ "client_payload": { "unit": false, "integration": true - }, + }, "repository": { "id": 17273051, "node_id": "MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==", diff --git a/lib/webhooks/static/dotcom/repository_vulnerability_alert.dismiss.payload.json b/lib/webhooks/static/dotcom/repository_vulnerability_alert.dismiss.payload.json index 6f47df008a9c..ec0063a1ded6 100644 --- a/lib/webhooks/static/dotcom/repository_vulnerability_alert.dismiss.payload.json +++ b/lib/webhooks/static/dotcom/repository_vulnerability_alert.dismiss.payload.json @@ -8,24 +8,24 @@ "external_identifier": "CVE-2018-3728", "fixed_in": "0.2.5", "dismisser": { - "login":"octocat", - "id":1, + "login": "octocat", + "id": 1, "node_id": "MDQ6VXNlcjIxMDMxMDY3", - "avatar_url":"https://github.com/images/error/octocat_happy.gif", - "gravatar_id":"", - "url":"https://api.github.com/users/octocat", - "html_url":"https://github.com/octocat", - "followers_url":"https://api.github.com/users/octocat/followers", - "following_url":"https://api.github.com/users/octocat/following{/other_user}", - "gists_url":"https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url":"https://api.github.com/users/octocat/subscriptions", - "organizations_url":"https://api.github.com/users/octocat/orgs", - "repos_url":"https://api.github.com/users/octocat/repos", - "events_url":"https://api.github.com/users/octocat/events{/privacy}", - "received_events_url":"https://api.github.com/users/octocat/received_events", - "type":"User", - "site_admin":true + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true }, "dismiss_reason": "No bandwidth to fix this", "dismissed_at": "2017-10-25T00:00:00+00:00" diff --git a/lib/webhooks/static/dotcom/sponsorship.created.payload.json b/lib/webhooks/static/dotcom/sponsorship.created.payload.json index f3b58ad8f994..b9a7db756a7f 100644 --- a/lib/webhooks/static/dotcom/sponsorship.created.payload.json +++ b/lib/webhooks/static/dotcom/sponsorship.created.payload.json @@ -1,76 +1,76 @@ { - "action": "created", - "sponsorship": { - "node_id": "MDExOlNwb25zb3JzaGlwMQ==", - "created_at": "2019-12-20T19:24:46+00:00", - "sponsorable": { - "login": "octocat", - "id": 5, - "node_id": "MDQ6VXNlcjU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/5?", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "sponsor": { - "login": "monalisa", - "id": 2, - "node_id": "MDQ6VXNlcjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/2?", - "gravatar_id": "", - "url": "https://api.github.com/users/monalisa", - "html_url": "https://github.com/monalisa", - "followers_url": "https://api.github.com/users/monalisa/followers", - "following_url": "https://api.github.com/users/monalisa/following{/other_user}", - "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", - "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", - "organizations_url": "https://api.github.com/users/monalisa/orgs", - "repos_url": "https://api.github.com/users/monalisa/repos", - "events_url": "https://api.github.com/users/monalisa/events{/privacy}", - "received_events_url": "https://api.github.com/users/monalisa/received_events", - "type": "User", - "site_admin": true - }, - "privacy_level": "public", - "tier": { - "node_id": "MDEyOlNwb25zb3JzVGllcjE=", - "created_at": "2019-12-20T19:17:05Z", - "description": "foo", - "monthly_price_in_cents": 500, - "monthly_price_in_dollars": 5, - "name": "$5 a month" - } + "action": "created", + "sponsorship": { + "node_id": "MDExOlNwb25zb3JzaGlwMQ==", + "created_at": "2019-12-20T19:24:46+00:00", + "sponsorable": { + "login": "octocat", + "id": 5, + "node_id": "MDQ6VXNlcjU=", + "avatar_url": "https://avatars2.githubusercontent.com/u/5?", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false }, - "sender": { - "login": "monalisa", - "id": 2, - "node_id": "MDQ6VXNlcjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/2?", - "gravatar_id": "", - "url": "https://api.github.com/users/monalisa", - "html_url": "https://github.com/monalisa", - "followers_url": "https://api.github.com/users/monalisa/followers", - "following_url": "https://api.github.com/users/monalisa/following{/other_user}", - "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", - "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", - "organizations_url": "https://api.github.com/users/monalisa/orgs", - "repos_url": "https://api.github.com/users/monalisa/repos", - "events_url": "https://api.github.com/users/monalisa/events{/privacy}", - "received_events_url": "https://api.github.com/users/monalisa/received_events", - "type": "User", - "site_admin": true + "sponsor": { + "login": "monalisa", + "id": 2, + "node_id": "MDQ6VXNlcjI=", + "avatar_url": "https://avatars2.githubusercontent.com/u/2?", + "gravatar_id": "", + "url": "https://api.github.com/users/monalisa", + "html_url": "https://github.com/monalisa", + "followers_url": "https://api.github.com/users/monalisa/followers", + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", + "organizations_url": "https://api.github.com/users/monalisa/orgs", + "repos_url": "https://api.github.com/users/monalisa/repos", + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", + "received_events_url": "https://api.github.com/users/monalisa/received_events", + "type": "User", + "site_admin": true + }, + "privacy_level": "public", + "tier": { + "node_id": "MDEyOlNwb25zb3JzVGllcjE=", + "created_at": "2019-12-20T19:17:05Z", + "description": "foo", + "monthly_price_in_cents": 500, + "monthly_price_in_dollars": 5, + "name": "$5 a month" } + }, + "sender": { + "login": "monalisa", + "id": 2, + "node_id": "MDQ6VXNlcjI=", + "avatar_url": "https://avatars2.githubusercontent.com/u/2?", + "gravatar_id": "", + "url": "https://api.github.com/users/monalisa", + "html_url": "https://github.com/monalisa", + "followers_url": "https://api.github.com/users/monalisa/followers", + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", + "organizations_url": "https://api.github.com/users/monalisa/orgs", + "repos_url": "https://api.github.com/users/monalisa/repos", + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", + "received_events_url": "https://api.github.com/users/monalisa/received_events", + "type": "User", + "site_admin": true + } } diff --git a/lib/webhooks/static/dotcom/sponsorship.downgraded.payload.json b/lib/webhooks/static/dotcom/sponsorship.downgraded.payload.json index 6a1149ac0012..2cbe4b925320 100644 --- a/lib/webhooks/static/dotcom/sponsorship.downgraded.payload.json +++ b/lib/webhooks/static/dotcom/sponsorship.downgraded.payload.json @@ -1,89 +1,89 @@ { - "action": "pending_tier_change", - "sponsorship": { - "node_id": "MDExOlNwb25zb3JzaGlwMQ==", - "created_at": "2019-12-20T19:24:46+00:00", - "sponsorable": { - "login": "octocat", - "id": 5, - "node_id": "MDQ6VXNlcjU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/5?", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "sponsor": { - "login": "monalisa", - "id": 2, - "node_id": "MDQ6VXNlcjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/2?", - "gravatar_id": "", - "url": "https://api.github.com/users/monalisa", - "html_url": "https://github.com/monalisa", - "followers_url": "https://api.github.com/users/monalisa/followers", - "following_url": "https://api.github.com/users/monalisa/following{/other_user}", - "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", - "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", - "organizations_url": "https://api.github.com/users/monalisa/orgs", - "repos_url": "https://api.github.com/users/monalisa/repos", - "events_url": "https://api.github.com/users/monalisa/events{/privacy}", - "received_events_url": "https://api.github.com/users/monalisa/received_events", - "type": "User", - "site_admin": true - }, - "privacy_level": "private", - "tier": { - "node_id": "MDEyOlNwb25zb3JzVGllcjE=", - "created_at": "2019-12-20T19:17:05Z", - "description": "foo", - "monthly_price_in_cents": 500, - "monthly_price_in_dollars": 5, - "name": "$5 a month" - } + "action": "pending_tier_change", + "sponsorship": { + "node_id": "MDExOlNwb25zb3JzaGlwMQ==", + "created_at": "2019-12-20T19:24:46+00:00", + "sponsorable": { + "login": "octocat", + "id": 5, + "node_id": "MDQ6VXNlcjU=", + "avatar_url": "https://avatars2.githubusercontent.com/u/5?", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false }, - "changes": { - "tier": { - "from": { - "node_id": "MDEyOlNwb25zb3JzVGllcjI=", - "created_at": "2019-12-20T19:26:26Z", - "description": "bar", - "monthly_price_in_cents": 1000, - "monthly_price_in_dollars": 10, - "name": "$10 a month" - } - } + "sponsor": { + "login": "monalisa", + "id": 2, + "node_id": "MDQ6VXNlcjI=", + "avatar_url": "https://avatars2.githubusercontent.com/u/2?", + "gravatar_id": "", + "url": "https://api.github.com/users/monalisa", + "html_url": "https://github.com/monalisa", + "followers_url": "https://api.github.com/users/monalisa/followers", + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", + "organizations_url": "https://api.github.com/users/monalisa/orgs", + "repos_url": "https://api.github.com/users/monalisa/repos", + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", + "received_events_url": "https://api.github.com/users/monalisa/received_events", + "type": "User", + "site_admin": true }, - "effective_date": "2019-12-30T00:00:00+00:00", - "sender": { - "login": "monalisa", - "id": 2, - "node_id": "MDQ6VXNlcjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/2?", - "gravatar_id": "", - "url": "https://api.github.com/users/monalisa", - "html_url": "https://github.com/monalisa", - "followers_url": "https://api.github.com/users/monalisa/followers", - "following_url": "https://api.github.com/users/monalisa/following{/other_user}", - "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", - "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", - "organizations_url": "https://api.github.com/users/monalisa/orgs", - "repos_url": "https://api.github.com/users/monalisa/repos", - "events_url": "https://api.github.com/users/monalisa/events{/privacy}", - "received_events_url": "https://api.github.com/users/monalisa/received_events", - "type": "User", - "site_admin": true + "privacy_level": "private", + "tier": { + "node_id": "MDEyOlNwb25zb3JzVGllcjE=", + "created_at": "2019-12-20T19:17:05Z", + "description": "foo", + "monthly_price_in_cents": 500, + "monthly_price_in_dollars": 5, + "name": "$5 a month" } + }, + "changes": { + "tier": { + "from": { + "node_id": "MDEyOlNwb25zb3JzVGllcjI=", + "created_at": "2019-12-20T19:26:26Z", + "description": "bar", + "monthly_price_in_cents": 1000, + "monthly_price_in_dollars": 10, + "name": "$10 a month" + } + } + }, + "effective_date": "2019-12-30T00:00:00+00:00", + "sender": { + "login": "monalisa", + "id": 2, + "node_id": "MDQ6VXNlcjI=", + "avatar_url": "https://avatars2.githubusercontent.com/u/2?", + "gravatar_id": "", + "url": "https://api.github.com/users/monalisa", + "html_url": "https://github.com/monalisa", + "followers_url": "https://api.github.com/users/monalisa/followers", + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", + "organizations_url": "https://api.github.com/users/monalisa/orgs", + "repos_url": "https://api.github.com/users/monalisa/repos", + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", + "received_events_url": "https://api.github.com/users/monalisa/received_events", + "type": "User", + "site_admin": true + } } diff --git a/lib/webhooks/static/dotcom/status.payload.json b/lib/webhooks/static/dotcom/status.payload.json index 557eec8cc897..659719ab548d 100644 --- a/lib/webhooks/static/dotcom/status.payload.json +++ b/lib/webhooks/static/dotcom/status.payload.json @@ -77,9 +77,7 @@ "type": "User", "site_admin": false }, - "parents": [ - - ] + "parents": [] }, "branches": [ { diff --git a/lib/webhooks/static/dotcom/team.edited.payload.json b/lib/webhooks/static/dotcom/team.edited.payload.json index a59625ce1e4a..ee8536bfa21d 100644 --- a/lib/webhooks/static/dotcom/team.edited.payload.json +++ b/lib/webhooks/static/dotcom/team.edited.payload.json @@ -1,6 +1,5 @@ { - "changes": { - }, + "changes": {}, "action": "edited", "team": { "name": "github", diff --git a/lib/webhooks/static/dotcom/workflow_dispatch.payload.json b/lib/webhooks/static/dotcom/workflow_dispatch.payload.json index 0b4f17741f0b..b5bf1e9e3a32 100644 --- a/lib/webhooks/static/dotcom/workflow_dispatch.payload.json +++ b/lib/webhooks/static/dotcom/workflow_dispatch.payload.json @@ -131,4 +131,4 @@ "site_admin": false }, "workflow": ".github/workflows/hello-world-workflow.yml" -} \ No newline at end of file +} diff --git a/lib/webhooks/static/dotcom/workflow_run.payload.json b/lib/webhooks/static/dotcom/workflow_run.payload.json index 0151f44ce57a..5a789ab866e5 100644 --- a/lib/webhooks/static/dotcom/workflow_run.payload.json +++ b/lib/webhooks/static/dotcom/workflow_run.payload.json @@ -128,4 +128,4 @@ "type": "User", "url": "https://api.github.com/users/Codertocat" } -} \ No newline at end of file +} diff --git a/lib/webhooks/static/ghae/check_suite.requested.payload.json b/lib/webhooks/static/ghae/check_suite.requested.payload.json index 53289fdad02e..43f0a042fdc8 100644 --- a/lib/webhooks/static/ghae/check_suite.requested.payload.json +++ b/lib/webhooks/static/ghae/check_suite.requested.payload.json @@ -10,9 +10,7 @@ "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/check-suites/10", "before": "4544205a385319fd846d5df4ed2e3b8173529d78", "after": "78a96099c3f442d7f6e8d1a7d07090091993e65a", - "pull_requests": [ - - ], + "pull_requests": [], "app": { "id": 2, "node_id": "MDM6QXBwMg==", diff --git a/lib/webhooks/static/ghae/deployment.payload.json b/lib/webhooks/static/ghae/deployment.payload.json index cc255184ab4a..5b188c77f7eb 100644 --- a/lib/webhooks/static/ghae/deployment.payload.json +++ b/lib/webhooks/static/ghae/deployment.payload.json @@ -6,8 +6,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghae/deployment_status.payload.json b/lib/webhooks/static/ghae/deployment_status.payload.json index 870cf78669d9..537f0f915d2c 100644 --- a/lib/webhooks/static/ghae/deployment_status.payload.json +++ b/lib/webhooks/static/ghae/deployment_status.payload.json @@ -39,8 +39,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghae/installation_repositories.added.payload.json b/lib/webhooks/static/ghae/installation_repositories.added.payload.json index 23baf171a23d..54a5e368686b 100644 --- a/lib/webhooks/static/ghae/installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghae/installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghae/installation_repositories.removed.payload.json b/lib/webhooks/static/ghae/installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghae/installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghae/installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghae/integration_installation_repositories.added.payload.json b/lib/webhooks/static/ghae/integration_installation_repositories.added.payload.json index 6f45241d5136..c520b8124bdd 100644 --- a/lib/webhooks/static/ghae/integration_installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghae/integration_installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghae/integration_installation_repositories.removed.payload.json b/lib/webhooks/static/ghae/integration_installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghae/integration_installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghae/integration_installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghae/issues.assigned.payload.json b/lib/webhooks/static/ghae/issues.assigned.payload.json index a01a62ef0e73..d03ef5dbf726 100644 --- a/lib/webhooks/static/ghae/issues.assigned.payload.json +++ b/lib/webhooks/static/ghae/issues.assigned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghae/issues.demilestoned.payload.json b/lib/webhooks/static/ghae/issues.demilestoned.payload.json index 3e54c4c38566..6d7ba38aba48 100644 --- a/lib/webhooks/static/ghae/issues.demilestoned.payload.json +++ b/lib/webhooks/static/ghae/issues.demilestoned.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:38:02Z", diff --git a/lib/webhooks/static/ghae/issues.edited.payload.json b/lib/webhooks/static/ghae/issues.edited.payload.json index 9b3cebdd7ccb..b42ffed88df2 100644 --- a/lib/webhooks/static/ghae/issues.edited.payload.json +++ b/lib/webhooks/static/ghae/issues.edited.payload.json @@ -129,8 +129,7 @@ "author_association": "OWNER", "body": "It looks like you accidently spelled 'commit' with two 't's." }, - "changes": { - }, + "changes": {}, "repository": { "id": 118, "node_id": "MDEwOlJlcG9zaXRvcnkxMTg=", diff --git a/lib/webhooks/static/ghae/issues.opened.payload.json b/lib/webhooks/static/ghae/issues.opened.payload.json index 2705f84a4a70..d8063d9992e2 100644 --- a/lib/webhooks/static/ghae/issues.opened.payload.json +++ b/lib/webhooks/static/ghae/issues.opened.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghae/issues.unassigned.payload.json b/lib/webhooks/static/ghae/issues.unassigned.payload.json index d196eb127a76..6eba906f8dde 100644 --- a/lib/webhooks/static/ghae/issues.unassigned.payload.json +++ b/lib/webhooks/static/ghae/issues.unassigned.payload.json @@ -63,9 +63,7 @@ "type": "User", "site_admin": false }, - "assignees": [ - - ], + "assignees": [], "milestone": { "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/milestones/1", "html_url": "https://octocoders.github.io/Codertocat/Hello-World/milestone/1", diff --git a/lib/webhooks/static/ghae/issues.unlabeled.payload.json b/lib/webhooks/static/ghae/issues.unlabeled.payload.json index 239d64c256e3..63e8d64bbbc3 100644 --- a/lib/webhooks/static/ghae/issues.unlabeled.payload.json +++ b/lib/webhooks/static/ghae/issues.unlabeled.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:37:53Z", diff --git a/lib/webhooks/static/ghae/pull_request.assigned.payload.json b/lib/webhooks/static/ghae/pull_request.assigned.payload.json index 75f1791d0b4c..bf9c049e5164 100644 --- a/lib/webhooks/static/ghae/pull_request.assigned.payload.json +++ b/lib/webhooks/static/ghae/pull_request.assigned.payload.json @@ -62,15 +62,9 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/pull_request.closed.payload.json b/lib/webhooks/static/ghae/pull_request.closed.payload.json index c546f8edface..124f9e7b906e 100644 --- a/lib/webhooks/static/ghae/pull_request.closed.payload.json +++ b/lib/webhooks/static/ghae/pull_request.closed.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/pull_request.labeled.payload.json b/lib/webhooks/static/ghae/pull_request.labeled.payload.json index ce88f54b3cb5..e7a522b6fb5f 100644 --- a/lib/webhooks/static/ghae/pull_request.labeled.payload.json +++ b/lib/webhooks/static/ghae/pull_request.labeled.payload.json @@ -40,15 +40,9 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 941, diff --git a/lib/webhooks/static/ghae/pull_request.opened.payload.json b/lib/webhooks/static/ghae/pull_request.opened.payload.json index 16467c18329a..d49af9fc2ce4 100644 --- a/lib/webhooks/static/ghae/pull_request.opened.payload.json +++ b/lib/webhooks/static/ghae/pull_request.opened.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": null, "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/pull_request.unassigned.payload.json b/lib/webhooks/static/ghae/pull_request.unassigned.payload.json index 7fff3ba2cd12..e0a71aa1480c 100644 --- a/lib/webhooks/static/ghae/pull_request.unassigned.payload.json +++ b/lib/webhooks/static/ghae/pull_request.unassigned.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/pull_request.unlabeled.payload.json b/lib/webhooks/static/ghae/pull_request.unlabeled.payload.json index 9a8d4de84152..589712c74d6c 100644 --- a/lib/webhooks/static/ghae/pull_request.unlabeled.payload.json +++ b/lib/webhooks/static/ghae/pull_request.unlabeled.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/pull_request_review.submitted.payload.json b/lib/webhooks/static/ghae/pull_request_review.submitted.payload.json index f011fe4369ae..baa76ad18e83 100644 --- a/lib/webhooks/static/ghae/pull_request_review.submitted.payload.json +++ b/lib/webhooks/static/ghae/pull_request_review.submitted.payload.json @@ -78,18 +78,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/pull_request_review_comment.created.payload.json b/lib/webhooks/static/ghae/pull_request_review_comment.created.payload.json index bf53ee986d19..d341a497d18f 100644 --- a/lib/webhooks/static/ghae/pull_request_review_comment.created.payload.json +++ b/lib/webhooks/static/ghae/pull_request_review_comment.created.payload.json @@ -88,18 +88,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghae/push.payload.json b/lib/webhooks/static/ghae/push.payload.json index 204b46c270db..3f4b13ee1976 100644 --- a/lib/webhooks/static/ghae/push.payload.json +++ b/lib/webhooks/static/ghae/push.payload.json @@ -7,9 +7,7 @@ "forced": false, "base_ref": null, "compare": "https://octocoders.github.io/Codertocat/Hello-World/compare/4544205a3853...000000000000", - "commits": [ - - ], + "commits": [], "head_commit": null, "repository": { "id": 118, diff --git a/lib/webhooks/static/ghae/release.published.payload.json b/lib/webhooks/static/ghae/release.published.payload.json index 3e052bd11830..125185f66641 100644 --- a/lib/webhooks/static/ghae/release.published.payload.json +++ b/lib/webhooks/static/ghae/release.published.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T19:37:08Z", "published_at": "2019-05-15T19:38:20Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/ghae/status.payload.json b/lib/webhooks/static/ghae/status.payload.json index 57aba22e1107..29f4bfdacbb4 100644 --- a/lib/webhooks/static/ghae/status.payload.json +++ b/lib/webhooks/static/ghae/status.payload.json @@ -58,9 +58,7 @@ "site_admin": false }, "committer": null, - "parents": [ - - ] + "parents": [] }, "branches": [ { diff --git a/lib/webhooks/static/ghae/team.edited.payload.json b/lib/webhooks/static/ghae/team.edited.payload.json index f2b994a3896d..ba588cab134c 100644 --- a/lib/webhooks/static/ghae/team.edited.payload.json +++ b/lib/webhooks/static/ghae/team.edited.payload.json @@ -1,6 +1,5 @@ { - "changes": { - }, + "changes": {}, "action": "edited", "team": { "name": "github", diff --git a/lib/webhooks/static/ghes-2.19/check_suite.requested.payload.json b/lib/webhooks/static/ghes-2.19/check_suite.requested.payload.json index 53289fdad02e..43f0a042fdc8 100644 --- a/lib/webhooks/static/ghes-2.19/check_suite.requested.payload.json +++ b/lib/webhooks/static/ghes-2.19/check_suite.requested.payload.json @@ -10,9 +10,7 @@ "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/check-suites/10", "before": "4544205a385319fd846d5df4ed2e3b8173529d78", "after": "78a96099c3f442d7f6e8d1a7d07090091993e65a", - "pull_requests": [ - - ], + "pull_requests": [], "app": { "id": 2, "node_id": "MDM6QXBwMg==", diff --git a/lib/webhooks/static/ghes-2.19/deployment.payload.json b/lib/webhooks/static/ghes-2.19/deployment.payload.json index cc255184ab4a..5b188c77f7eb 100644 --- a/lib/webhooks/static/ghes-2.19/deployment.payload.json +++ b/lib/webhooks/static/ghes-2.19/deployment.payload.json @@ -6,8 +6,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.19/deployment_status.payload.json b/lib/webhooks/static/ghes-2.19/deployment_status.payload.json index 870cf78669d9..537f0f915d2c 100644 --- a/lib/webhooks/static/ghes-2.19/deployment_status.payload.json +++ b/lib/webhooks/static/ghes-2.19/deployment_status.payload.json @@ -39,8 +39,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.19/installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.19/installation_repositories.added.payload.json index 23baf171a23d..54a5e368686b 100644 --- a/lib/webhooks/static/ghes-2.19/installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.19/installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.19/installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.19/installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.19/installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.19/installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.19/integration_installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.19/integration_installation_repositories.added.payload.json index 6f45241d5136..c520b8124bdd 100644 --- a/lib/webhooks/static/ghes-2.19/integration_installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.19/integration_installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.19/integration_installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.19/integration_installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.19/integration_installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.19/integration_installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.19/issues.assigned.payload.json b/lib/webhooks/static/ghes-2.19/issues.assigned.payload.json index a01a62ef0e73..d03ef5dbf726 100644 --- a/lib/webhooks/static/ghes-2.19/issues.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.19/issues.assigned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.19/issues.demilestoned.payload.json b/lib/webhooks/static/ghes-2.19/issues.demilestoned.payload.json index 3e54c4c38566..6d7ba38aba48 100644 --- a/lib/webhooks/static/ghes-2.19/issues.demilestoned.payload.json +++ b/lib/webhooks/static/ghes-2.19/issues.demilestoned.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:38:02Z", diff --git a/lib/webhooks/static/ghes-2.19/issues.edited.payload.json b/lib/webhooks/static/ghes-2.19/issues.edited.payload.json index 9b3cebdd7ccb..b42ffed88df2 100644 --- a/lib/webhooks/static/ghes-2.19/issues.edited.payload.json +++ b/lib/webhooks/static/ghes-2.19/issues.edited.payload.json @@ -129,8 +129,7 @@ "author_association": "OWNER", "body": "It looks like you accidently spelled 'commit' with two 't's." }, - "changes": { - }, + "changes": {}, "repository": { "id": 118, "node_id": "MDEwOlJlcG9zaXRvcnkxMTg=", diff --git a/lib/webhooks/static/ghes-2.19/issues.opened.payload.json b/lib/webhooks/static/ghes-2.19/issues.opened.payload.json index 2705f84a4a70..d8063d9992e2 100644 --- a/lib/webhooks/static/ghes-2.19/issues.opened.payload.json +++ b/lib/webhooks/static/ghes-2.19/issues.opened.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.19/issues.unassigned.payload.json b/lib/webhooks/static/ghes-2.19/issues.unassigned.payload.json index d196eb127a76..6eba906f8dde 100644 --- a/lib/webhooks/static/ghes-2.19/issues.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.19/issues.unassigned.payload.json @@ -63,9 +63,7 @@ "type": "User", "site_admin": false }, - "assignees": [ - - ], + "assignees": [], "milestone": { "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/milestones/1", "html_url": "https://octocoders.github.io/Codertocat/Hello-World/milestone/1", diff --git a/lib/webhooks/static/ghes-2.19/issues.unlabeled.payload.json b/lib/webhooks/static/ghes-2.19/issues.unlabeled.payload.json index 239d64c256e3..63e8d64bbbc3 100644 --- a/lib/webhooks/static/ghes-2.19/issues.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.19/issues.unlabeled.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:37:53Z", diff --git a/lib/webhooks/static/ghes-2.19/pull_request.assigned.payload.json b/lib/webhooks/static/ghes-2.19/pull_request.assigned.payload.json index 75f1791d0b4c..bf9c049e5164 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request.assigned.payload.json @@ -62,15 +62,9 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/pull_request.closed.payload.json b/lib/webhooks/static/ghes-2.19/pull_request.closed.payload.json index c546f8edface..124f9e7b906e 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request.closed.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request.closed.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/pull_request.labeled.payload.json b/lib/webhooks/static/ghes-2.19/pull_request.labeled.payload.json index ce88f54b3cb5..e7a522b6fb5f 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request.labeled.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request.labeled.payload.json @@ -40,15 +40,9 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 941, diff --git a/lib/webhooks/static/ghes-2.19/pull_request.opened.payload.json b/lib/webhooks/static/ghes-2.19/pull_request.opened.payload.json index 16467c18329a..d49af9fc2ce4 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request.opened.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request.opened.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": null, "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/pull_request.unassigned.payload.json b/lib/webhooks/static/ghes-2.19/pull_request.unassigned.payload.json index 7fff3ba2cd12..e0a71aa1480c 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request.unassigned.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/pull_request.unlabeled.payload.json b/lib/webhooks/static/ghes-2.19/pull_request.unlabeled.payload.json index 9a8d4de84152..589712c74d6c 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request.unlabeled.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/pull_request_review.submitted.payload.json b/lib/webhooks/static/ghes-2.19/pull_request_review.submitted.payload.json index f011fe4369ae..baa76ad18e83 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request_review.submitted.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request_review.submitted.payload.json @@ -78,18 +78,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/pull_request_review_comment.created.payload.json b/lib/webhooks/static/ghes-2.19/pull_request_review_comment.created.payload.json index bf53ee986d19..d341a497d18f 100644 --- a/lib/webhooks/static/ghes-2.19/pull_request_review_comment.created.payload.json +++ b/lib/webhooks/static/ghes-2.19/pull_request_review_comment.created.payload.json @@ -88,18 +88,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.19/push.payload.json b/lib/webhooks/static/ghes-2.19/push.payload.json index 204b46c270db..3f4b13ee1976 100644 --- a/lib/webhooks/static/ghes-2.19/push.payload.json +++ b/lib/webhooks/static/ghes-2.19/push.payload.json @@ -7,9 +7,7 @@ "forced": false, "base_ref": null, "compare": "https://octocoders.github.io/Codertocat/Hello-World/compare/4544205a3853...000000000000", - "commits": [ - - ], + "commits": [], "head_commit": null, "repository": { "id": 118, diff --git a/lib/webhooks/static/ghes-2.19/release.published.payload.json b/lib/webhooks/static/ghes-2.19/release.published.payload.json index 3e052bd11830..125185f66641 100644 --- a/lib/webhooks/static/ghes-2.19/release.published.payload.json +++ b/lib/webhooks/static/ghes-2.19/release.published.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T19:37:08Z", "published_at": "2019-05-15T19:38:20Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/ghes-2.19/status.payload.json b/lib/webhooks/static/ghes-2.19/status.payload.json index 57aba22e1107..29f4bfdacbb4 100644 --- a/lib/webhooks/static/ghes-2.19/status.payload.json +++ b/lib/webhooks/static/ghes-2.19/status.payload.json @@ -58,9 +58,7 @@ "site_admin": false }, "committer": null, - "parents": [ - - ] + "parents": [] }, "branches": [ { diff --git a/lib/webhooks/static/ghes-2.19/team.edited.payload.json b/lib/webhooks/static/ghes-2.19/team.edited.payload.json index f2b994a3896d..ba588cab134c 100644 --- a/lib/webhooks/static/ghes-2.19/team.edited.payload.json +++ b/lib/webhooks/static/ghes-2.19/team.edited.payload.json @@ -1,6 +1,5 @@ { - "changes": { - }, + "changes": {}, "action": "edited", "team": { "name": "github", diff --git a/lib/webhooks/static/ghes-2.20/check_suite.requested.payload.json b/lib/webhooks/static/ghes-2.20/check_suite.requested.payload.json index 53289fdad02e..43f0a042fdc8 100644 --- a/lib/webhooks/static/ghes-2.20/check_suite.requested.payload.json +++ b/lib/webhooks/static/ghes-2.20/check_suite.requested.payload.json @@ -10,9 +10,7 @@ "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/check-suites/10", "before": "4544205a385319fd846d5df4ed2e3b8173529d78", "after": "78a96099c3f442d7f6e8d1a7d07090091993e65a", - "pull_requests": [ - - ], + "pull_requests": [], "app": { "id": 2, "node_id": "MDM6QXBwMg==", diff --git a/lib/webhooks/static/ghes-2.20/deployment.payload.json b/lib/webhooks/static/ghes-2.20/deployment.payload.json index cc255184ab4a..5b188c77f7eb 100644 --- a/lib/webhooks/static/ghes-2.20/deployment.payload.json +++ b/lib/webhooks/static/ghes-2.20/deployment.payload.json @@ -6,8 +6,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.20/deployment_status.payload.json b/lib/webhooks/static/ghes-2.20/deployment_status.payload.json index 870cf78669d9..537f0f915d2c 100644 --- a/lib/webhooks/static/ghes-2.20/deployment_status.payload.json +++ b/lib/webhooks/static/ghes-2.20/deployment_status.payload.json @@ -39,8 +39,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.20/installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.20/installation_repositories.added.payload.json index 23baf171a23d..54a5e368686b 100644 --- a/lib/webhooks/static/ghes-2.20/installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.20/installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.20/installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.20/installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.20/installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.20/installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.20/integration_installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.20/integration_installation_repositories.added.payload.json index 6f45241d5136..c520b8124bdd 100644 --- a/lib/webhooks/static/ghes-2.20/integration_installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.20/integration_installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.20/integration_installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.20/integration_installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.20/integration_installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.20/integration_installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.20/issues.assigned.payload.json b/lib/webhooks/static/ghes-2.20/issues.assigned.payload.json index a01a62ef0e73..d03ef5dbf726 100644 --- a/lib/webhooks/static/ghes-2.20/issues.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.20/issues.assigned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.20/issues.demilestoned.payload.json b/lib/webhooks/static/ghes-2.20/issues.demilestoned.payload.json index 3e54c4c38566..6d7ba38aba48 100644 --- a/lib/webhooks/static/ghes-2.20/issues.demilestoned.payload.json +++ b/lib/webhooks/static/ghes-2.20/issues.demilestoned.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:38:02Z", diff --git a/lib/webhooks/static/ghes-2.20/issues.edited.payload.json b/lib/webhooks/static/ghes-2.20/issues.edited.payload.json index 9b3cebdd7ccb..b42ffed88df2 100644 --- a/lib/webhooks/static/ghes-2.20/issues.edited.payload.json +++ b/lib/webhooks/static/ghes-2.20/issues.edited.payload.json @@ -129,8 +129,7 @@ "author_association": "OWNER", "body": "It looks like you accidently spelled 'commit' with two 't's." }, - "changes": { - }, + "changes": {}, "repository": { "id": 118, "node_id": "MDEwOlJlcG9zaXRvcnkxMTg=", diff --git a/lib/webhooks/static/ghes-2.20/issues.opened.payload.json b/lib/webhooks/static/ghes-2.20/issues.opened.payload.json index 2705f84a4a70..d8063d9992e2 100644 --- a/lib/webhooks/static/ghes-2.20/issues.opened.payload.json +++ b/lib/webhooks/static/ghes-2.20/issues.opened.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.20/issues.unassigned.payload.json b/lib/webhooks/static/ghes-2.20/issues.unassigned.payload.json index d196eb127a76..6eba906f8dde 100644 --- a/lib/webhooks/static/ghes-2.20/issues.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.20/issues.unassigned.payload.json @@ -63,9 +63,7 @@ "type": "User", "site_admin": false }, - "assignees": [ - - ], + "assignees": [], "milestone": { "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/milestones/1", "html_url": "https://octocoders.github.io/Codertocat/Hello-World/milestone/1", diff --git a/lib/webhooks/static/ghes-2.20/issues.unlabeled.payload.json b/lib/webhooks/static/ghes-2.20/issues.unlabeled.payload.json index 239d64c256e3..63e8d64bbbc3 100644 --- a/lib/webhooks/static/ghes-2.20/issues.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.20/issues.unlabeled.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:37:53Z", diff --git a/lib/webhooks/static/ghes-2.20/pull_request.assigned.payload.json b/lib/webhooks/static/ghes-2.20/pull_request.assigned.payload.json index 75f1791d0b4c..bf9c049e5164 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request.assigned.payload.json @@ -62,15 +62,9 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/pull_request.closed.payload.json b/lib/webhooks/static/ghes-2.20/pull_request.closed.payload.json index c546f8edface..124f9e7b906e 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request.closed.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request.closed.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/pull_request.labeled.payload.json b/lib/webhooks/static/ghes-2.20/pull_request.labeled.payload.json index ce88f54b3cb5..e7a522b6fb5f 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request.labeled.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request.labeled.payload.json @@ -40,15 +40,9 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 941, diff --git a/lib/webhooks/static/ghes-2.20/pull_request.opened.payload.json b/lib/webhooks/static/ghes-2.20/pull_request.opened.payload.json index 16467c18329a..d49af9fc2ce4 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request.opened.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request.opened.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": null, "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/pull_request.unassigned.payload.json b/lib/webhooks/static/ghes-2.20/pull_request.unassigned.payload.json index 7fff3ba2cd12..e0a71aa1480c 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request.unassigned.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/pull_request.unlabeled.payload.json b/lib/webhooks/static/ghes-2.20/pull_request.unlabeled.payload.json index 9a8d4de84152..589712c74d6c 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request.unlabeled.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/pull_request_review.submitted.payload.json b/lib/webhooks/static/ghes-2.20/pull_request_review.submitted.payload.json index f011fe4369ae..baa76ad18e83 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request_review.submitted.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request_review.submitted.payload.json @@ -78,18 +78,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/pull_request_review_comment.created.payload.json b/lib/webhooks/static/ghes-2.20/pull_request_review_comment.created.payload.json index bf53ee986d19..d341a497d18f 100644 --- a/lib/webhooks/static/ghes-2.20/pull_request_review_comment.created.payload.json +++ b/lib/webhooks/static/ghes-2.20/pull_request_review_comment.created.payload.json @@ -88,18 +88,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.20/push.payload.json b/lib/webhooks/static/ghes-2.20/push.payload.json index 204b46c270db..3f4b13ee1976 100644 --- a/lib/webhooks/static/ghes-2.20/push.payload.json +++ b/lib/webhooks/static/ghes-2.20/push.payload.json @@ -7,9 +7,7 @@ "forced": false, "base_ref": null, "compare": "https://octocoders.github.io/Codertocat/Hello-World/compare/4544205a3853...000000000000", - "commits": [ - - ], + "commits": [], "head_commit": null, "repository": { "id": 118, diff --git a/lib/webhooks/static/ghes-2.20/release.published.payload.json b/lib/webhooks/static/ghes-2.20/release.published.payload.json index 3e052bd11830..125185f66641 100644 --- a/lib/webhooks/static/ghes-2.20/release.published.payload.json +++ b/lib/webhooks/static/ghes-2.20/release.published.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T19:37:08Z", "published_at": "2019-05-15T19:38:20Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/ghes-2.20/status.payload.json b/lib/webhooks/static/ghes-2.20/status.payload.json index 57aba22e1107..29f4bfdacbb4 100644 --- a/lib/webhooks/static/ghes-2.20/status.payload.json +++ b/lib/webhooks/static/ghes-2.20/status.payload.json @@ -58,9 +58,7 @@ "site_admin": false }, "committer": null, - "parents": [ - - ] + "parents": [] }, "branches": [ { diff --git a/lib/webhooks/static/ghes-2.20/team.edited.payload.json b/lib/webhooks/static/ghes-2.20/team.edited.payload.json index f2b994a3896d..ba588cab134c 100644 --- a/lib/webhooks/static/ghes-2.20/team.edited.payload.json +++ b/lib/webhooks/static/ghes-2.20/team.edited.payload.json @@ -1,6 +1,5 @@ { - "changes": { - }, + "changes": {}, "action": "edited", "team": { "name": "github", diff --git a/lib/webhooks/static/ghes-2.21/check_suite.requested.payload.json b/lib/webhooks/static/ghes-2.21/check_suite.requested.payload.json index 53289fdad02e..43f0a042fdc8 100644 --- a/lib/webhooks/static/ghes-2.21/check_suite.requested.payload.json +++ b/lib/webhooks/static/ghes-2.21/check_suite.requested.payload.json @@ -10,9 +10,7 @@ "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/check-suites/10", "before": "4544205a385319fd846d5df4ed2e3b8173529d78", "after": "78a96099c3f442d7f6e8d1a7d07090091993e65a", - "pull_requests": [ - - ], + "pull_requests": [], "app": { "id": 2, "node_id": "MDM6QXBwMg==", diff --git a/lib/webhooks/static/ghes-2.21/deployment.payload.json b/lib/webhooks/static/ghes-2.21/deployment.payload.json index cc255184ab4a..5b188c77f7eb 100644 --- a/lib/webhooks/static/ghes-2.21/deployment.payload.json +++ b/lib/webhooks/static/ghes-2.21/deployment.payload.json @@ -6,8 +6,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.21/deployment_status.payload.json b/lib/webhooks/static/ghes-2.21/deployment_status.payload.json index 870cf78669d9..537f0f915d2c 100644 --- a/lib/webhooks/static/ghes-2.21/deployment_status.payload.json +++ b/lib/webhooks/static/ghes-2.21/deployment_status.payload.json @@ -39,8 +39,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.21/installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.21/installation_repositories.added.payload.json index 23baf171a23d..54a5e368686b 100644 --- a/lib/webhooks/static/ghes-2.21/installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.21/installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.21/installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.21/installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.21/installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.21/installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.21/integration_installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.21/integration_installation_repositories.added.payload.json index 6f45241d5136..c520b8124bdd 100644 --- a/lib/webhooks/static/ghes-2.21/integration_installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.21/integration_installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.21/integration_installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.21/integration_installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.21/integration_installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.21/integration_installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.21/issues.assigned.payload.json b/lib/webhooks/static/ghes-2.21/issues.assigned.payload.json index a01a62ef0e73..d03ef5dbf726 100644 --- a/lib/webhooks/static/ghes-2.21/issues.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.21/issues.assigned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.21/issues.demilestoned.payload.json b/lib/webhooks/static/ghes-2.21/issues.demilestoned.payload.json index 3e54c4c38566..6d7ba38aba48 100644 --- a/lib/webhooks/static/ghes-2.21/issues.demilestoned.payload.json +++ b/lib/webhooks/static/ghes-2.21/issues.demilestoned.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:38:02Z", diff --git a/lib/webhooks/static/ghes-2.21/issues.edited.payload.json b/lib/webhooks/static/ghes-2.21/issues.edited.payload.json index 9b3cebdd7ccb..b42ffed88df2 100644 --- a/lib/webhooks/static/ghes-2.21/issues.edited.payload.json +++ b/lib/webhooks/static/ghes-2.21/issues.edited.payload.json @@ -129,8 +129,7 @@ "author_association": "OWNER", "body": "It looks like you accidently spelled 'commit' with two 't's." }, - "changes": { - }, + "changes": {}, "repository": { "id": 118, "node_id": "MDEwOlJlcG9zaXRvcnkxMTg=", diff --git a/lib/webhooks/static/ghes-2.21/issues.opened.payload.json b/lib/webhooks/static/ghes-2.21/issues.opened.payload.json index 2705f84a4a70..d8063d9992e2 100644 --- a/lib/webhooks/static/ghes-2.21/issues.opened.payload.json +++ b/lib/webhooks/static/ghes-2.21/issues.opened.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.21/issues.unassigned.payload.json b/lib/webhooks/static/ghes-2.21/issues.unassigned.payload.json index d196eb127a76..6eba906f8dde 100644 --- a/lib/webhooks/static/ghes-2.21/issues.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.21/issues.unassigned.payload.json @@ -63,9 +63,7 @@ "type": "User", "site_admin": false }, - "assignees": [ - - ], + "assignees": [], "milestone": { "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/milestones/1", "html_url": "https://octocoders.github.io/Codertocat/Hello-World/milestone/1", diff --git a/lib/webhooks/static/ghes-2.21/issues.unlabeled.payload.json b/lib/webhooks/static/ghes-2.21/issues.unlabeled.payload.json index 239d64c256e3..63e8d64bbbc3 100644 --- a/lib/webhooks/static/ghes-2.21/issues.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.21/issues.unlabeled.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:37:53Z", diff --git a/lib/webhooks/static/ghes-2.21/pull_request.assigned.payload.json b/lib/webhooks/static/ghes-2.21/pull_request.assigned.payload.json index 75f1791d0b4c..bf9c049e5164 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request.assigned.payload.json @@ -62,15 +62,9 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/pull_request.closed.payload.json b/lib/webhooks/static/ghes-2.21/pull_request.closed.payload.json index c546f8edface..124f9e7b906e 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request.closed.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request.closed.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/pull_request.labeled.payload.json b/lib/webhooks/static/ghes-2.21/pull_request.labeled.payload.json index ce88f54b3cb5..e7a522b6fb5f 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request.labeled.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request.labeled.payload.json @@ -40,15 +40,9 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 941, diff --git a/lib/webhooks/static/ghes-2.21/pull_request.opened.payload.json b/lib/webhooks/static/ghes-2.21/pull_request.opened.payload.json index 16467c18329a..d49af9fc2ce4 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request.opened.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request.opened.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": null, "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/pull_request.unassigned.payload.json b/lib/webhooks/static/ghes-2.21/pull_request.unassigned.payload.json index 7fff3ba2cd12..e0a71aa1480c 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request.unassigned.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/pull_request.unlabeled.payload.json b/lib/webhooks/static/ghes-2.21/pull_request.unlabeled.payload.json index 9a8d4de84152..589712c74d6c 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request.unlabeled.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/pull_request_review.submitted.payload.json b/lib/webhooks/static/ghes-2.21/pull_request_review.submitted.payload.json index f011fe4369ae..baa76ad18e83 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request_review.submitted.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request_review.submitted.payload.json @@ -78,18 +78,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/pull_request_review_comment.created.payload.json b/lib/webhooks/static/ghes-2.21/pull_request_review_comment.created.payload.json index bf53ee986d19..d341a497d18f 100644 --- a/lib/webhooks/static/ghes-2.21/pull_request_review_comment.created.payload.json +++ b/lib/webhooks/static/ghes-2.21/pull_request_review_comment.created.payload.json @@ -88,18 +88,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.21/push.payload.json b/lib/webhooks/static/ghes-2.21/push.payload.json index 204b46c270db..3f4b13ee1976 100644 --- a/lib/webhooks/static/ghes-2.21/push.payload.json +++ b/lib/webhooks/static/ghes-2.21/push.payload.json @@ -7,9 +7,7 @@ "forced": false, "base_ref": null, "compare": "https://octocoders.github.io/Codertocat/Hello-World/compare/4544205a3853...000000000000", - "commits": [ - - ], + "commits": [], "head_commit": null, "repository": { "id": 118, diff --git a/lib/webhooks/static/ghes-2.21/release.published.payload.json b/lib/webhooks/static/ghes-2.21/release.published.payload.json index 3e052bd11830..125185f66641 100644 --- a/lib/webhooks/static/ghes-2.21/release.published.payload.json +++ b/lib/webhooks/static/ghes-2.21/release.published.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T19:37:08Z", "published_at": "2019-05-15T19:38:20Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/ghes-2.21/status.payload.json b/lib/webhooks/static/ghes-2.21/status.payload.json index 57aba22e1107..29f4bfdacbb4 100644 --- a/lib/webhooks/static/ghes-2.21/status.payload.json +++ b/lib/webhooks/static/ghes-2.21/status.payload.json @@ -58,9 +58,7 @@ "site_admin": false }, "committer": null, - "parents": [ - - ] + "parents": [] }, "branches": [ { diff --git a/lib/webhooks/static/ghes-2.21/team.edited.payload.json b/lib/webhooks/static/ghes-2.21/team.edited.payload.json index f2b994a3896d..ba588cab134c 100644 --- a/lib/webhooks/static/ghes-2.21/team.edited.payload.json +++ b/lib/webhooks/static/ghes-2.21/team.edited.payload.json @@ -1,6 +1,5 @@ { - "changes": { - }, + "changes": {}, "action": "edited", "team": { "name": "github", diff --git a/lib/webhooks/static/ghes-2.22/check_suite.requested.payload.json b/lib/webhooks/static/ghes-2.22/check_suite.requested.payload.json index 53289fdad02e..43f0a042fdc8 100644 --- a/lib/webhooks/static/ghes-2.22/check_suite.requested.payload.json +++ b/lib/webhooks/static/ghes-2.22/check_suite.requested.payload.json @@ -10,9 +10,7 @@ "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/check-suites/10", "before": "4544205a385319fd846d5df4ed2e3b8173529d78", "after": "78a96099c3f442d7f6e8d1a7d07090091993e65a", - "pull_requests": [ - - ], + "pull_requests": [], "app": { "id": 2, "node_id": "MDM6QXBwMg==", diff --git a/lib/webhooks/static/ghes-2.22/deployment.payload.json b/lib/webhooks/static/ghes-2.22/deployment.payload.json index cc255184ab4a..5b188c77f7eb 100644 --- a/lib/webhooks/static/ghes-2.22/deployment.payload.json +++ b/lib/webhooks/static/ghes-2.22/deployment.payload.json @@ -6,8 +6,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.22/deployment_status.payload.json b/lib/webhooks/static/ghes-2.22/deployment_status.payload.json index 870cf78669d9..537f0f915d2c 100644 --- a/lib/webhooks/static/ghes-2.22/deployment_status.payload.json +++ b/lib/webhooks/static/ghes-2.22/deployment_status.payload.json @@ -39,8 +39,7 @@ "sha": "78a96099c3f442d7f6e8d1a7d07090091993e65a", "ref": "master", "task": "deploy", - "payload": { - }, + "payload": {}, "original_environment": "production", "environment": "production", "description": null, diff --git a/lib/webhooks/static/ghes-2.22/installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.22/installation_repositories.added.payload.json index 23baf171a23d..54a5e368686b 100644 --- a/lib/webhooks/static/ghes-2.22/installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.22/installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.22/installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.22/installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.22/installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.22/installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.22/integration_installation_repositories.added.payload.json b/lib/webhooks/static/ghes-2.22/integration_installation_repositories.added.payload.json index 6f45241d5136..c520b8124bdd 100644 --- a/lib/webhooks/static/ghes-2.22/integration_installation_repositories.added.payload.json +++ b/lib/webhooks/static/ghes-2.22/integration_installation_repositories.added.payload.json @@ -91,9 +91,7 @@ "private": false } ], - "repositories_removed": [ - - ], + "repositories_removed": [], "enterprise": { "id": 1, "slug": "github", diff --git a/lib/webhooks/static/ghes-2.22/integration_installation_repositories.removed.payload.json b/lib/webhooks/static/ghes-2.22/integration_installation_repositories.removed.payload.json index 90741116c4b0..9cdf682050f6 100644 --- a/lib/webhooks/static/ghes-2.22/integration_installation_repositories.removed.payload.json +++ b/lib/webhooks/static/ghes-2.22/integration_installation_repositories.removed.payload.json @@ -82,9 +82,7 @@ "single_file_name": null }, "repository_selection": "selected", - "repositories_added": [ - - ], + "repositories_added": [], "repositories_removed": [ { "id": 119, diff --git a/lib/webhooks/static/ghes-2.22/issues.assigned.payload.json b/lib/webhooks/static/ghes-2.22/issues.assigned.payload.json index a01a62ef0e73..d03ef5dbf726 100644 --- a/lib/webhooks/static/ghes-2.22/issues.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.22/issues.assigned.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.22/issues.demilestoned.payload.json b/lib/webhooks/static/ghes-2.22/issues.demilestoned.payload.json index 3e54c4c38566..6d7ba38aba48 100644 --- a/lib/webhooks/static/ghes-2.22/issues.demilestoned.payload.json +++ b/lib/webhooks/static/ghes-2.22/issues.demilestoned.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:38:02Z", diff --git a/lib/webhooks/static/ghes-2.22/issues.edited.payload.json b/lib/webhooks/static/ghes-2.22/issues.edited.payload.json index 9b3cebdd7ccb..b42ffed88df2 100644 --- a/lib/webhooks/static/ghes-2.22/issues.edited.payload.json +++ b/lib/webhooks/static/ghes-2.22/issues.edited.payload.json @@ -129,8 +129,7 @@ "author_association": "OWNER", "body": "It looks like you accidently spelled 'commit' with two 't's." }, - "changes": { - }, + "changes": {}, "repository": { "id": 118, "node_id": "MDEwOlJlcG9zaXRvcnkxMTg=", diff --git a/lib/webhooks/static/ghes-2.22/issues.opened.payload.json b/lib/webhooks/static/ghes-2.22/issues.opened.payload.json index 2705f84a4a70..d8063d9992e2 100644 --- a/lib/webhooks/static/ghes-2.22/issues.opened.payload.json +++ b/lib/webhooks/static/ghes-2.22/issues.opened.payload.json @@ -31,9 +31,7 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": { diff --git a/lib/webhooks/static/ghes-2.22/issues.unassigned.payload.json b/lib/webhooks/static/ghes-2.22/issues.unassigned.payload.json index d196eb127a76..6eba906f8dde 100644 --- a/lib/webhooks/static/ghes-2.22/issues.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.22/issues.unassigned.payload.json @@ -63,9 +63,7 @@ "type": "User", "site_admin": false }, - "assignees": [ - - ], + "assignees": [], "milestone": { "url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/milestones/1", "html_url": "https://octocoders.github.io/Codertocat/Hello-World/milestone/1", diff --git a/lib/webhooks/static/ghes-2.22/issues.unlabeled.payload.json b/lib/webhooks/static/ghes-2.22/issues.unlabeled.payload.json index 239d64c256e3..63e8d64bbbc3 100644 --- a/lib/webhooks/static/ghes-2.22/issues.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.22/issues.unlabeled.payload.json @@ -31,15 +31,11 @@ "type": "User", "site_admin": false }, - "labels": [ - - ], + "labels": [], "state": "open", "locked": false, "assignee": null, - "assignees": [ - - ], + "assignees": [], "milestone": null, "comments": 0, "created_at": "2019-05-15T19:37:53Z", diff --git a/lib/webhooks/static/ghes-2.22/pull_request.assigned.payload.json b/lib/webhooks/static/ghes-2.22/pull_request.assigned.payload.json index 75f1791d0b4c..bf9c049e5164 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request.assigned.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request.assigned.payload.json @@ -62,15 +62,9 @@ "site_admin": false } ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/pull_request.closed.payload.json b/lib/webhooks/static/ghes-2.22/pull_request.closed.payload.json index c546f8edface..124f9e7b906e 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request.closed.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request.closed.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/pull_request.labeled.payload.json b/lib/webhooks/static/ghes-2.22/pull_request.labeled.payload.json index ce88f54b3cb5..e7a522b6fb5f 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request.labeled.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request.labeled.payload.json @@ -40,15 +40,9 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], "labels": [ { "id": 941, diff --git a/lib/webhooks/static/ghes-2.22/pull_request.opened.payload.json b/lib/webhooks/static/ghes-2.22/pull_request.opened.payload.json index 16467c18329a..d49af9fc2ce4 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request.opened.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request.opened.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": null, "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/pull_request.unassigned.payload.json b/lib/webhooks/static/ghes-2.22/pull_request.unassigned.payload.json index 7fff3ba2cd12..e0a71aa1480c 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request.unassigned.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request.unassigned.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/pull_request.unlabeled.payload.json b/lib/webhooks/static/ghes-2.22/pull_request.unlabeled.payload.json index 9a8d4de84152..589712c74d6c 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request.unlabeled.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request.unlabeled.payload.json @@ -40,18 +40,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/pull_request_review.submitted.payload.json b/lib/webhooks/static/ghes-2.22/pull_request_review.submitted.payload.json index f011fe4369ae..baa76ad18e83 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request_review.submitted.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request_review.submitted.payload.json @@ -78,18 +78,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/pull_request_review_comment.created.payload.json b/lib/webhooks/static/ghes-2.22/pull_request_review_comment.created.payload.json index bf53ee986d19..d341a497d18f 100644 --- a/lib/webhooks/static/ghes-2.22/pull_request_review_comment.created.payload.json +++ b/lib/webhooks/static/ghes-2.22/pull_request_review_comment.created.payload.json @@ -88,18 +88,10 @@ "merged_at": null, "merge_commit_sha": "e67e14475991deeb61cc1999c3bf9db333ac0d5f", "assignee": null, - "assignees": [ - - ], - "requested_reviewers": [ - - ], - "requested_teams": [ - - ], - "labels": [ - - ], + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], "milestone": null, "commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/commits", "review_comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls/2/comments", diff --git a/lib/webhooks/static/ghes-2.22/push.payload.json b/lib/webhooks/static/ghes-2.22/push.payload.json index 204b46c270db..3f4b13ee1976 100644 --- a/lib/webhooks/static/ghes-2.22/push.payload.json +++ b/lib/webhooks/static/ghes-2.22/push.payload.json @@ -7,9 +7,7 @@ "forced": false, "base_ref": null, "compare": "https://octocoders.github.io/Codertocat/Hello-World/compare/4544205a3853...000000000000", - "commits": [ - - ], + "commits": [], "head_commit": null, "repository": { "id": 118, diff --git a/lib/webhooks/static/ghes-2.22/release.published.payload.json b/lib/webhooks/static/ghes-2.22/release.published.payload.json index 3e052bd11830..125185f66641 100644 --- a/lib/webhooks/static/ghes-2.22/release.published.payload.json +++ b/lib/webhooks/static/ghes-2.22/release.published.payload.json @@ -34,9 +34,7 @@ "prerelease": false, "created_at": "2019-05-15T19:37:08Z", "published_at": "2019-05-15T19:38:20Z", - "assets": [ - - ], + "assets": [], "tarball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tarball/0.0.1", "zipball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/zipball/0.0.1", "body": null diff --git a/lib/webhooks/static/ghes-2.22/status.payload.json b/lib/webhooks/static/ghes-2.22/status.payload.json index 57aba22e1107..29f4bfdacbb4 100644 --- a/lib/webhooks/static/ghes-2.22/status.payload.json +++ b/lib/webhooks/static/ghes-2.22/status.payload.json @@ -58,9 +58,7 @@ "site_admin": false }, "committer": null, - "parents": [ - - ] + "parents": [] }, "branches": [ { diff --git a/lib/webhooks/static/ghes-2.22/team.edited.payload.json b/lib/webhooks/static/ghes-2.22/team.edited.payload.json index f2b994a3896d..ba588cab134c 100644 --- a/lib/webhooks/static/ghes-2.22/team.edited.payload.json +++ b/lib/webhooks/static/ghes-2.22/team.edited.payload.json @@ -1,6 +1,5 @@ { - "changes": { - }, + "changes": {}, "action": "edited", "team": { "name": "github", diff --git a/tests/fixtures/rest-redirects.json b/tests/fixtures/rest-redirects.json index 01470158f7cf..61fe9e7feb67 100644 --- a/tests/fixtures/rest-redirects.json +++ b/tests/fixtures/rest-redirects.json @@ -95,7 +95,7 @@ "/en/enterprise/2.18/v3/users/gpg_keys": "/en/enterprise/2.18/user/rest/reference/users#gpg-keys", "/en/enterprise/2.18/v3/users": "/en/enterprise/2.18/user/rest/reference/users", "/en/enterprise/2.18/v3/users/keys": "/en/enterprise/2.18/user/rest/reference/users#keys", - "/en/enterprise/2.19/v3/activity/event_types": "/en/enterprise-server@2.19/developers/webhooks-and-events/github-event-types", + "/en/enterprise/2.19/v3/activity/event_types": "/en/enterprise-server@2.19/developers/webhooks-and-events/github-event-types", "/en/enterprise/2.19/v3/activity/events/types": "/en/enterprise-server@2.19/developers/webhooks-and-events/webhook-events-and-payloads", "/en/enterprise/2.19/v3/activity/events": "/en/enterprise-server@2.19/rest/reference/activity#events", "/en/enterprise/2.19/v3/activity/feeds": "/en/enterprise-server@2.19/rest/reference/activity#feeds", From 7474545aeefbad152eedf8898add1155a5746d26 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Tue, 17 Nov 2020 16:48:56 -0500 Subject: [PATCH 3/4] chore: Add CI setup for JSON linting --- .github/workflows/json-lint.yml | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/json-lint.yml diff --git a/.github/workflows/json-lint.yml b/.github/workflows/json-lint.yml new file mode 100644 index 000000000000..e68b745c0316 --- /dev/null +++ b/.github/workflows/json-lint.yml @@ -0,0 +1,56 @@ +name: Lint JSON + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + branches-ignore: + - translations + +jobs: + see_if_should_skip: + runs-on: ubuntu-latest + + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289 + with: + cancel_others: 'false' + github_token: ${{ github.token }} + paths: '["**/*.json", ".github/workflows/json-lint.yml"]' + + lint: + runs-on: ubuntu-latest + needs: see_if_should_skip + if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }} + steps: + - name: Check out repo + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + + - name: Setup node + uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d + with: + node-version: 14.x + + - name: Get npm cache directory + id: npm-cache + run: | + echo "::set-output name=dir::$(npm config get cache)" + + - name: Cache node modules + uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a + with: + path: ${{ steps.npm-cache.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + run: npm ci + + - name: Run linter + run: npx prettier -c "**/*.json" From 0f28a56cf70436bd25a713699801f9f40df8f43e Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 25 Nov 2020 13:02:25 -0500 Subject: [PATCH 4/4] chore: Add JSON formatting as part of sync script --- script/graphql/update-files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/graphql/update-files.js b/script/graphql/update-files.js index ee721e725029..d00309a13f25 100755 --- a/script/graphql/update-files.js +++ b/script/graphql/update-files.js @@ -80,7 +80,7 @@ async function main () { updateStaticFile(prerenderedObjects, path.join(graphqlStaticDir, 'prerendered-objects.json')) // Ensure the YAML linter runs before checkinging in files - execSync('npx prettier -w "**/*.{yml,yaml}"') + execSync('npx prettier -w "**/*.{yml,yaml,json}"') } // get latest from github/github