Skip to content

Commit fd14e50

Browse files
fix: gambit preview graduated (#63)
Co-authored-by: Octokit Bot <33075676+octokitbot@users.noreply.github.com>
1 parent a5030ea commit fd14e50

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

scripts/update-endpoints/generated/endpoints.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@
186186
"isLegacy": false,
187187
"description": "Uninstalls a GitHub App on a user, organization, or business account.\n\nYou must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
188188
"documentationUrl": "https://developer.github.com/v3/apps/#delete-an-installation",
189-
"previews": [{ "name": "gambit" }, { "name": "machine-man" }],
189+
"previews": [{ "name": "machine-man" }],
190190
"headers": [
191191
{
192192
"name": "accept",
193-
"value": "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json",
193+
"value": "application/vnd.github.machine-man-preview+json",
194194
"required": true
195195
}
196196
],
@@ -2884,14 +2884,8 @@
28842884
"isLegacy": false,
28852885
"description": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.\n\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"[Create a new installation token](https://developer.github.com/v3/apps/#create-a-new-installation-token)\" endpoint.\n\nYou must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
28862886
"documentationUrl": "https://developer.github.com/v3/apps/installations/#revoke-an-installation-token",
2887-
"previews": [{ "name": "gambit" }],
2888-
"headers": [
2889-
{
2890-
"name": "accept",
2891-
"value": "application/vnd.github.gambit-preview+json",
2892-
"required": true
2893-
}
2894-
],
2887+
"previews": [],
2888+
"headers": [],
28952889
"parameters": [],
28962890
"responses": [],
28972891
"renamed": null

src/generated/endpoints.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
188188
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
189189
deleteInstallation: [
190190
"DELETE /app/installations/{installation_id}",
191-
{ mediaType: { previews: ["gambit", "machine-man"] } },
191+
{ mediaType: { previews: ["machine-man"] } },
192192
],
193193
deleteToken: ["DELETE /applications/{client_id}/token"],
194194
getAuthenticated: [
@@ -272,10 +272,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
272272
{ mediaType: { previews: ["machine-man"] } },
273273
],
274274
resetToken: ["PATCH /applications/{client_id}/token"],
275-
revokeInstallationToken: [
276-
"DELETE /installation/token",
277-
{ mediaType: { previews: ["gambit"] } },
278-
],
275+
revokeInstallationToken: ["DELETE /installation/token"],
279276
},
280277
checks: {
281278
create: [

0 commit comments

Comments
 (0)