diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 51227417a2..cb2a9e7b4b 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -25,7 +25,7 @@ Closes [issue link]
### Check off the following:
- [ ] I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click **View deployment**).
-- [ ] For content changes, I have completed the [self-review checklist](https://github.com/github/docs/blob/main/CONTRIBUTING.md#self-review).
+- [ ] For content changes, I have completed the [self-review checklist](https://github.com/github/docs/blob/main/contributing/self-review.md#self-review).
### Writer impact (This section is for GitHub staff members only):
diff --git a/.github/workflows/prod-build-deploy.yml b/.github/workflows/prod-build-deploy.yml
index c1483d4ed7..e79204d34e 100644
--- a/.github/workflows/prod-build-deploy.yml
+++ b/.github/workflows/prod-build-deploy.yml
@@ -247,7 +247,7 @@ jobs:
throw error
}
- - name: Send Slack notification if workflow fails
+ - name: Send Slack notification if workflow failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:
diff --git a/.github/workflows/staging-build-pr.yml b/.github/workflows/staging-build-pr.yml
index 9263188b36..5d4f970743 100644
--- a/.github/workflows/staging-build-pr.yml
+++ b/.github/workflows/staging-build-pr.yml
@@ -14,6 +14,11 @@ on:
permissions:
contents: read
+# This allows one Build workflow run to interrupt another
+concurrency:
+ group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}'
+ cancel-in-progress: true
+
jobs:
debug:
runs-on: ubuntu-latest
@@ -27,8 +32,10 @@ jobs:
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
runs-on: ubuntu-latest
timeout-minutes: 5
+ # This interrupts Build, Deploy, and pre-write Undeploy workflow runs in
+ # progress for this PR branch.
concurrency:
- group: staging_${{ github.head_ref }}
+ group: 'PR Staging @ ${{ github.event.pull_request.head.label }}'
cancel-in-progress: true
steps:
- name: Check out repo
diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml
index 7e59ff4c2b..ca3a18bbd1 100644
--- a/.github/workflows/staging-deploy-pr.yml
+++ b/.github/workflows/staging-deploy-pr.yml
@@ -18,6 +18,15 @@ permissions:
pull-requests: read
statuses: write
+# IMPORTANT: Intentionally OMIT a `concurrency` configuration from this workflow's
+# top-level as we do not have any guarantee of identifying values being available
+# within the `github.event` context for PRs from forked repos!
+#
+# The implication of this shortcoming is that we may have multiple workflow runs
+# of this running at the same time for different commits within the same PR.
+# However, once they reach the `concurrency` configurations deeper down within
+# this workflow's jobs, then we can expect concurrent short-circuiting to begin.
+
env:
CONTEXT_NAME: '${{ github.workflow }} / deploy (${{ github.event.workflow_run.event }})'
ACTIONS_RUN_LOG: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
@@ -183,9 +192,12 @@ jobs:
(github.repository == 'github/docs-internal' || github.repository == 'github/docs')
}}
runs-on: ubuntu-latest
- timeout-minutes: 1
+ # This timeout should match or exceed the value of the timeout for Undeploy
+ timeout-minutes: 5
+ # This interrupts Build, Deploy, and pre-write Undeploy workflow runs in
+ # progress for this PR branch.
concurrency:
- group: 'staging_${{ needs.pr-metadata.outputs.head_ref }}'
+ group: 'PR Staging @ ${{ needs.pr-metadata.outputs.head_label }}'
cancel-in-progress: true
outputs:
pull_request_state: ${{ steps.check-pr.outputs.state }}
@@ -197,12 +209,34 @@ jobs:
PR_NUMBER: ${{ needs.pr-metadata.outputs.number }}
with:
script: |
+ // Equivalent of the 'await-sleep' module without the install
+ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
+
+ const blockingLabel = 'automated-block-deploy'
const { owner, repo } = context.repo
- const { data: pullRequest } = await github.pulls.get({
- owner,
- repo,
- pull_number: process.env.PR_NUMBER
- })
+ const startTime = Date.now()
+
+ let pullRequest = {}
+ let blocked = true
+
+ // Keep polling the PR until the blocking label has been removed
+ while (blocked) {
+ const { data: pr } = await github.pulls.get({
+ owner,
+ repo,
+ pull_number: process.env.PR_NUMBER
+ })
+
+ blocked = pr.labels.some(({ name }) => name === blockingLabel)
+ if (blocked) {
+ console.warn(`WARNING! PR currently has blocking label "${blockingLabel}" (after ${Date.now() - startTime} ms). Will check again soon...`)
+ await sleep(15000) // Wait 15 seconds and check again
+ } else {
+ console.log(`PR was unblocked (after ${Date.now() - startTime} ms)!`)
+ pullRequest = pr
+ }
+ }
+
core.setOutput('state', pullRequest.state)
prepare-for-deploy:
@@ -210,8 +244,10 @@ jobs:
if: ${{ needs.check-pr-before-prepare.outputs.pull_request_state == 'open' }}
runs-on: ubuntu-latest
timeout-minutes: 5
+ # This interrupts Build, Deploy, and pre-write Undeploy workflow runs in
+ # progress for this PR branch.
concurrency:
- group: 'staging_${{ needs.pr-metadata.outputs.head_ref }}'
+ group: 'PR Staging @ ${{ needs.pr-metadata.outputs.head_label }}'
cancel-in-progress: true
outputs:
source_blob_url: ${{ steps.build-source.outputs.download_url }}
@@ -361,7 +397,7 @@ jobs:
target_url: ACTIONS_RUN_LOG
})
- - name: Send Slack notification if workflow fails
+ - name: Send Slack notification if deployment preparation job failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:
@@ -374,8 +410,10 @@ jobs:
needs: [pr-metadata, prepare-for-deploy]
runs-on: ubuntu-latest
timeout-minutes: 1
+ # This interrupts Build, Deploy, and pre-write Undeploy workflow runs in
+ # progress for this PR branch.
concurrency:
- group: 'staging_${{ needs.pr-metadata.outputs.head_ref }}'
+ group: 'PR Staging @ ${{ needs.pr-metadata.outputs.head_label }}'
cancel-in-progress: true
outputs:
pull_request_state: ${{ steps.check-pr.outputs.state }}
@@ -400,8 +438,10 @@ jobs:
if: ${{ needs.check-pr-before-deploy.outputs.pull_request_state == 'open' }}
runs-on: ubuntu-latest
timeout-minutes: 10
+ # This interrupts Build, Deploy, and pre-write Undeploy workflow runs in
+ # progress for this PR branch.
concurrency:
- group: 'staging_${{ needs.pr-metadata.outputs.head_ref }}'
+ group: 'PR Staging @ ${{ needs.pr-metadata.outputs.head_label }}'
cancel-in-progress: true
steps:
- name: Check out repo's default branch
@@ -548,7 +588,7 @@ jobs:
target_url: ACTIONS_RUN_LOG
})
- - name: Send Slack notification if workflow fails
+ - name: Send Slack notification if deployment job failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:
diff --git a/.github/workflows/staging-undeploy-pr.yml b/.github/workflows/staging-undeploy-pr.yml
index 39d6957628..452a2431d0 100644
--- a/.github/workflows/staging-undeploy-pr.yml
+++ b/.github/workflows/staging-undeploy-pr.yml
@@ -12,6 +12,12 @@ on:
permissions:
contents: read
deployments: write
+ pull-requests: write
+
+# This prevents one Undeploy workflow run from interrupting another
+concurrency:
+ group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}'
+ cancel-in-progress: false
jobs:
debug:
@@ -22,15 +28,42 @@ jobs:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- undeploy:
+ cancel-jobs-before-undeploy:
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
- name: Undeploy
runs-on: ubuntu-latest
- timeout-minutes: 2
+ # This interrupts Build and Deploy workflow runs in progress for this PR
+ # branch. However, it does so with an intentionally short, independent job
+ # so that the following `undeploy` job cannot be cancelled once started!
concurrency:
- group: staging_${{ github.head_ref }}
+ group: 'PR Staging @ ${{ github.event.pull_request.head.label }}'
cancel-in-progress: true
steps:
+ - name: Cancelling other deployments via concurrency configuration
+ run: |
+ echo 'Cancelling other deployment runs (if any)...'
+
+ undeploy:
+ needs: cancel-jobs-before-undeploy
+ if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ # IMPORTANT: Intentionally OMIT a `concurrency` configuration from this job!
+ steps:
+ - name: Add a label to the PR to block deployment during undeployment
+ uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
+ with:
+ script: |
+ const { owner, repo } = context.repo
+ await github.issues.addLabels({
+ owner,
+ repo,
+ issue_number: process.env.PR_NUMBER,
+ labels: ['automated-block-deploy']
+ })
+
- name: Check out repo's default branch
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
with:
@@ -91,3 +124,28 @@ jobs:
console.error(error)
throw error
}
+
+ - if: ${{ always() }}
+ name: Remove the label from the PR to unblock deployment
+ uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
+ with:
+ script: |
+ const { owner, repo } = context.repo
+ await github.issues.removeLabel({
+ owner,
+ repo,
+ issue_number: process.env.PR_NUMBER,
+ name: 'automated-block-deploy'
+ })
+
+ - name: Send Slack notification if workflow failed
+ uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
+ if: ${{ failure() }}
+ with:
+ channel: ${{ secrets.DOCS_STAGING_DEPLOYMENT_FAILURES_SLACK_CHANNEL_ID }}
+ bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
+ color: failure
+ text: Staging undeployment failed for PR ${{ github.event.pull_request.html_url }} at commit ${{ github.head_sha }}. See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}.
diff --git a/assets/images/help/images/deploy-graph.png b/assets/images/help/images/deploy-graph.png
new file mode 100644
index 0000000000..a05368a580
Binary files /dev/null and b/assets/images/help/images/deploy-graph.png differ
diff --git a/components/article/ArticlePage.tsx b/components/article/ArticlePage.tsx
index daf982a434..888219eec0 100644
--- a/components/article/ArticlePage.tsx
+++ b/components/article/ArticlePage.tsx
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
import cx from 'classnames'
import { Heading } from '@primer/components'
-import { ZapIcon, InfoIcon } from '@primer/octicons-react'
+import { ZapIcon, InfoIcon, ShieldLockIcon } from '@primer/octicons-react'
import { Callout } from 'components/ui/Callout'
import { Link } from 'components/Link'
@@ -79,10 +79,12 @@ export const ArticlePage = () => {
{intro &&
path:/ | [**octocat filename:readme path:/**](https://github.com/search?utf8=%E2%9C%93&q=octocat+filename%3Areadme+path%3A%2F&type=Code) matches _readme_ files with the word "octocat" that are located at the root level of a repository.
-| path:DIRECTORY | [**form path:cgi-bin language:perl**](https://github.com/search?q=form+path%3Acgi-bin+language%3Aperl&type=Code) matches Perl files with the word "form" in a cgi-bin directory, or in any of its subdirectories.
-| path:PATH/TO/DIRECTORY | [**console path:app/public language:javascript**](https://github.com/search?q=console+path%3A%22app%2Fpublic%22+language%3Ajavascript&type=Code) matches JavaScript files with the word "console" in an app/public directory, or in any of its subdirectories (even if they reside in app/public/js/form-validators).
+| path:DIRECTORY | [**form path:cgi-bin language:perl**](https://github.com/search?q=form+path%3Acgi-bin+language%3Aperl&type=Code) matches Perl files with the word "form" in the cgi-bin directory, or in any of its subdirectories.
+| path:PATH/TO/DIRECTORY | [**console path:app/public language:javascript**](https://github.com/search?q=console+path%3A%22app%2Fpublic%22+language%3Ajavascript&type=Code) matches JavaScript files with the word "console" in the app/public directory, or in any of its subdirectories (even if they reside in app/public/js/form-validators).
## Search by language
diff --git a/content/sponsors/receiving-sponsorships-through-github-sponsors/tax-information-for-github-sponsors.md b/content/sponsors/receiving-sponsorships-through-github-sponsors/tax-information-for-github-sponsors.md
index 4297ae8245..0f95ff4e1b 100644
--- a/content/sponsors/receiving-sponsorships-through-github-sponsors/tax-information-for-github-sponsors.md
+++ b/content/sponsors/receiving-sponsorships-through-github-sponsors/tax-information-for-github-sponsors.md
@@ -58,6 +58,18 @@ If you are a taxpayer in the United States and earn more than 600 US dollars in
{% data reusables.sponsors.sponsorships-not-tax-deductible %}
+## Sales tax
+
+GitHub is providing information to assist you in calculating your sales tax obligations. This information is not personalized to your country or tax situation and we recommend you talk to a professional to understand your specific obligations. However, we'd like to provide some high-level information to help you understand the general principles of digital sales tax.
+
+In most countries around the world, sales tax for digital transactions is based on the location of the recipient, not on the seller. For example, if you are a maintainer in the United States and you provide a taxable benefit to a Sponsor in Germany, German sales tax would apply.
+
+Sales tax is generally only applicable when a good or service of value is being provided. Goodwill/general support/undying appreciation is not normally taxable.
+
+In the US, both B2B (business-to-business) and B2C (business-to-consumer) are subject to sales tax.
+
+In the EU and most other countries and regions, B2C sales are subject to sales tax. B2B sales are not subject to tax. C2C and C2B sales where a consumer is not registered for VAT are not taxable.
+
## Further reading
- [Viewing your sponsors and sponsorships](/sponsors/receiving-sponsorships-through-github-sponsors/viewing-your-sponsors-and-sponsorships)
diff --git a/contributing/content-style-guide.md b/contributing/content-style-guide.md
index 6dd9678288..2c720343be 100644
--- a/contributing/content-style-guide.md
+++ b/contributing/content-style-guide.md
@@ -125,9 +125,7 @@ Be descriptive when naming image files: include the name, action, and UI element
### Screenshots
-When you take a screenshot, avoid overly wide images. If you're trying to bring attention to a button, don't take a shot of the entire page. Focus on the area around the button instead and crop near the focal point of the image. Leave enough of a margin around the focal point so that some other elements of the page are visible, helping the viewer find the area of the screenshot when looking at the user interface.
-
-Do not include your username or avatar in any images. If a screenshot must include a username or avatar, use the Inspect function in your browser to add the [Octocat](https://github.com/octocat)'s username or avatar instead.
+To learn about creating and versioning images, see "[Creating and updating screenshots](./images-and-versioning.md)."
## Inclusive language
diff --git a/data/reusables/actions/about-environments.md b/data/reusables/actions/about-environments.md
new file mode 100644
index 0000000000..ab9cfa899f
--- /dev/null
+++ b/data/reusables/actions/about-environments.md
@@ -0,0 +1 @@
+Environments are used to describe a general deployment target like `production`, `staging`, or `development`. When a {% data variables.product.prodname_actions %} workflow deploys to an environment, the environment is displayed on the main page of the repository. You can use environments to require approval for a job to proceed, restrict which branches can trigger a workflow, or limit access to secrets. For more information about creating environments, see "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)."
\ No newline at end of file
diff --git a/data/reusables/actions/ae-hosted-runners-beta.md b/data/reusables/actions/ae-hosted-runners-beta.md
index 96c6694e09..804f22a849 100644
--- a/data/reusables/actions/ae-hosted-runners-beta.md
+++ b/data/reusables/actions/ae-hosted-runners-beta.md
@@ -1,4 +1,4 @@
-ss{% ifversion ghae %}
+{% ifversion ghae %}
{% note %}
**Note:** {% data variables.actions.hosted_runner %}s are currently in beta and subject to change.
diff --git a/data/reusables/actions/cd-templates-actions.md b/data/reusables/actions/cd-templates-actions.md
new file mode 100644
index 0000000000..c6eeec90db
--- /dev/null
+++ b/data/reusables/actions/cd-templates-actions.md
@@ -0,0 +1,3 @@
+{% data variables.product.product_name %} offers CD workflow templates for several popular services, such as Azure Web App. To learn how to get started using a workflow template, see "[Using workflow templates](/actions/learn-github-actions/using-workflow-templates)" or [browse the full list of deployment workflow templates](https://github.com/actions/starter-workflows/tree/main/deployments). You can also check out our more detailed guides for specific deployment workflows, such as "[Deploying to Azure App Service](/actions/deployment/deploying-to-azure-app-service)."
+
+Many service providers also offer actions on {% data variables.product.prodname_marketplace %} for deploying to their service. For the full list, see [{% data variables.product.prodname_marketplace %}](https://github.com/marketplace?category=deployment&type=actions).
\ No newline at end of file
diff --git a/data/reusables/actions/concurrency-beta.md b/data/reusables/actions/concurrency-beta.md
deleted file mode 100644
index 0ebcdd0091..0000000000
--- a/data/reusables/actions/concurrency-beta.md
+++ /dev/null
@@ -1,5 +0,0 @@
-{% note %}
-
-**Note:** Concurrency is currently in beta and subject to change.
-
-{% endnote %}
diff --git a/data/reusables/actions/delete-env-key.md b/data/reusables/actions/delete-env-key.md
new file mode 100644
index 0000000000..380ebe5653
--- /dev/null
+++ b/data/reusables/actions/delete-env-key.md
@@ -0,0 +1 @@
+If you configured a deployment environment, change the value of `environment` to be the name of your environment. If you did not configure an environment{% ifversion fpt %} or if your workflow is in a private repository and you do not use {% data variables.product.prodname_ghe_cloud %}{% endif %}, delete the `environment` key.
\ No newline at end of file
diff --git a/data/reusables/actions/environment-deployment-event.md b/data/reusables/actions/environment-deployment-event.md
new file mode 100644
index 0000000000..1a014fbfc6
--- /dev/null
+++ b/data/reusables/actions/environment-deployment-event.md
@@ -0,0 +1 @@
+When a workflow job that references an environment runs, it creates a deployment object with the `environment` property set to the name of your environment. As the workflow progresses, it also creates deployment status objects with the `environment` property set to the name of your environment, the `environment_url` property set to the URL for environment (if specified in the workflow), and the `state` property set to the status of the job.
\ No newline at end of file
diff --git a/data/reusables/actions/environment-example.md b/data/reusables/actions/environment-example.md
new file mode 100644
index 0000000000..95ed6bc816
--- /dev/null
+++ b/data/reusables/actions/environment-example.md
@@ -0,0 +1,45 @@
+You can specify an environment for each job in your workflow. To do so, add a `jobs.A comma separated list of secret types to return. By default all secret types are returned.
" + "descriptionHTML": "A comma-separated list of secret types to return. By default all secret types are returned.
" + }, + { + "name": "resolution", + "in": "query", + "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
check_run_id parameter
" + } + ], + "x-codeSamples": [ + { + "lang": "Shell", + "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/check-runs/42/rerequest", + "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/check-runs/42/rerequest"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest', {\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 42\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest', {\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 42\n})\n"
+ }
+ ],
+ "summary": "Rerequest a check run",
+ "description": "Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
+ "tags": [
+ "checks"
+ ],
+ "operationId": "checks/rerequest-run",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/checks#rerequest-a-check-run"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "checks",
+ "subcategory": "runs"
+ },
+ "slug": "rerequest-a-check-run",
+ "category": "checks",
+ "categoryLabel": "Checks",
+ "subcategory": "runs",
+ "subcategoryLabel": "Runs",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "201",
+ "httpStatusMessage": "Created",
+ "description": "Response"
+ },
+ {
+ "httpStatusCode": "403",
+ "httpStatusMessage": "Forbidden",
+ "description": "Forbidden if the check run is not rerequestable or doesn't belong to the authenticated GitHub App"
+ },
+ {
+ "httpStatusCode": "404",
+ "httpStatusMessage": "Not Found",
+ "description": "Resource not found"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation error if the check run is not rerequestable"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the check_run webhook event with the action rerequested. When a check run is rerequested, its status is reset to queued and the conclusion is cleared.
To rerequest a check run, your GitHub App must have the checks:read permission on a private repository or pull access to a public repository.
curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'"
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n },\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n },\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n }\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n }\n})\n"
}
],
"summary": "Create a GitHub Pages site",
@@ -67441,14 +67545,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
- "html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
- }
- ],
"category": "repos",
"subcategory": "pages"
},
@@ -67472,11 +67568,6 @@
"httpStatusMessage": "Conflict",
"description": "Conflict"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -67839,13 +67930,13 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pages"
},
{
"lang": "JavaScript",
- "source": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})",
- "html": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})\n"
+ "source": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world'\n})",
+ "html": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world'\n})\n"
}
],
"summary": "Delete a GitHub Pages site",
@@ -67861,14 +67952,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
- "html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
- }
- ],
"category": "repos",
"subcategory": "pages"
},
@@ -67889,11 +67972,6 @@
"httpStatusMessage": "Not Found",
"description": "Resource not found"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -73435,6 +73513,16 @@
"rawType": "string",
"rawDescription": "If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see \"[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository).\"",
"childParamsGroups": []
+ },
+ "generate_release_notes": {
+ "type": "boolean",
+ "description": "Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes.
Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes.
A comma separated list of secret types to return. By default all secret types are returned. See \"About secret scanning for private repositories\" for a complete list of secret types (API slug).
" + "descriptionHTML": "A comma-separated list of secret types to return. By default all secret types are returned. See \"About secret scanning for private repositories\" for a complete list of secret types (API slug).
" + }, + { + "name": "resolution", + "in": "query", + "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
{\n \"number\": 42,\n \"created_at\": \"2020-11-06T18:18:30Z\",\n \"url\": \"https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42\",\n \"html_url\": \"https://github.com/owner/private-repo/security/secret-scanning/42\",\n \"state\": \"open\",\n \"resolution\": null,\n \"resolved_at\": null,\n \"resolved_by\": null,\n \"secret_type\": \"mailchimp_api_key\",\n \"secret\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2\"\n}\n"
},
+ {
+ "httpStatusCode": "304",
+ "httpStatusMessage": "Not Modified",
+ "description": "Not modified"
+ },
{
"httpStatusCode": "404",
"httpStatusMessage": "Not Found",
@@ -87758,7 +87872,7 @@
"tags": [
"users"
],
- "operationId": "users/list-blocked-by-authenticated",
+ "operationId": "users/list-blocked-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user"
@@ -88079,7 +88193,7 @@
"tags": [
"users"
],
- "operationId": "users/set-primary-email-visibility-for-authenticated",
+ "operationId": "users/set-primary-email-visibility-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user"
@@ -88219,7 +88333,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -88290,7 +88404,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -88433,7 +88547,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -88682,7 +88796,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -89009,7 +89123,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -89077,7 +89191,7 @@
],
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -89202,7 +89316,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -89284,7 +89398,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -89575,7 +89689,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -89660,7 +89774,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -90157,7 +90271,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -90225,7 +90339,7 @@
],
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -90372,7 +90486,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -90454,7 +90568,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -91689,7 +91803,7 @@
"tags": [
"migrations"
],
- "operationId": "migrations/list-repos-for-user",
+ "operationId": "migrations/list-repos-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration"
@@ -92757,7 +92871,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -93596,7 +93710,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/repos#accept-a-repository-invitation"
@@ -93677,7 +93791,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/decorated/ghes-2.22.json b/lib/rest/static/decorated/ghes-2.22.json
index 0cdf188188..53d7174bd8 100644
--- a/lib/rest/static/decorated/ghes-2.22.json
+++ b/lib/rest/static/decorated/ghes-2.22.json
@@ -8897,7 +8897,7 @@
}
],
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -8920,7 +8920,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. Name of the runner group.
", @@ -9156,7 +9156,7 @@ } ], "summary": "Get a self-hosted runner group for an enterprise", - "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise", "tags": [ "enterprise-admin" @@ -9179,7 +9179,7 @@ "subcategoryLabel": "Actions", "notes": [], "bodyParameters": [], - "descriptionHTML": "Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Name of the runner group.
", @@ -9363,7 +9363,7 @@ } ], "summary": "Delete a self-hosted runner group from an enterprise", - "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise", "tags": [ "enterprise-admin" @@ -9393,7 +9393,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of organization IDs that can access the runner group.
", @@ -9656,7 +9656,7 @@ } ], "summary": "Add organization access to a self-hosted runner group in an enterprise", - "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise", "tags": [ "enterprise-admin" @@ -9686,7 +9686,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of runner IDs to add to the runner group.
", @@ -10030,7 +10030,7 @@ } ], "summary": "Add a self-hosted runner to a group for an enterprise", - "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.", + "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.", "operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise", "tags": [ "enterprise-admin" @@ -10060,7 +10060,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise\nscope to use this endpoint.
Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise\nscope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -10378,7 +10378,7 @@
}
],
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -10401,7 +10401,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -10450,7 +10450,7 @@
}
],
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -10473,7 +10473,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "create-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -58441,11 +58441,6 @@
"httpStatusMessage": "Conflict",
"description": "Conflict"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -58830,6 +58825,8 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
@@ -58837,9 +58834,7 @@
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@2.22/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
"html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "delete-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -58858,11 +58853,6 @@
"httpStatusMessage": "Not Found",
"description": "Resource not found"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -73488,7 +73478,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -73559,7 +73549,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -73702,7 +73692,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -73951,7 +73941,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -74278,7 +74268,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -74346,7 +74336,7 @@
],
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@2.22/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -74471,7 +74461,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -74553,7 +74543,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -74844,7 +74834,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -74929,7 +74919,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -75194,7 +75184,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -75262,7 +75252,7 @@
],
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@2.22/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -75409,7 +75399,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -75491,7 +75481,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -76103,7 +76093,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -76925,7 +76915,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/repos#accept-a-repository-invitation"
@@ -77006,7 +76996,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/decorated/ghes-3.0.json b/lib/rest/static/decorated/ghes-3.0.json
index 44c11299fc..b20fbc7f38 100644
--- a/lib/rest/static/decorated/ghes-3.0.json
+++ b/lib/rest/static/decorated/ghes-3.0.json
@@ -11921,7 +11921,7 @@
}
],
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -11944,7 +11944,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. Name of the runner group.
", @@ -12180,7 +12180,7 @@ } ], "summary": "Get a self-hosted runner group for an enterprise", - "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise", "tags": [ "enterprise-admin" @@ -12203,7 +12203,7 @@ "subcategoryLabel": "Actions", "notes": [], "bodyParameters": [], - "descriptionHTML": "Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Name of the runner group.
", @@ -12387,7 +12387,7 @@ } ], "summary": "Delete a self-hosted runner group from an enterprise", - "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise", "tags": [ "enterprise-admin" @@ -12417,7 +12417,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of organization IDs that can access the runner group.
", @@ -12680,7 +12680,7 @@ } ], "summary": "Add organization access to a self-hosted runner group in an enterprise", - "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise", "tags": [ "enterprise-admin" @@ -12710,7 +12710,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of runner IDs to add to the runner group.
", @@ -13054,7 +13054,7 @@ } ], "summary": "Add a self-hosted runner to a group for an enterprise", - "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.", + "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.", "operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise", "tags": [ "enterprise-admin" @@ -13084,7 +13084,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise\nscope to use this endpoint.
Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise\nscope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -13402,7 +13402,7 @@
}
],
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -13425,7 +13425,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -13474,7 +13474,7 @@
}
],
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -13497,7 +13497,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "create-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -63244,11 +63244,6 @@
"httpStatusMessage": "Conflict",
"description": "Conflict"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -63633,6 +63628,8 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
@@ -63640,9 +63637,7 @@
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.0/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
"html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "delete-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -63661,11 +63656,6 @@
"httpStatusMessage": "Not Found",
"description": "Resource not found"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -78291,7 +78281,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -78362,7 +78352,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -78505,7 +78495,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -78754,7 +78744,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -79081,7 +79071,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -79149,7 +79139,7 @@
],
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@3.0/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -79274,7 +79264,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -79356,7 +79346,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -79647,7 +79637,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -79732,7 +79722,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -79997,7 +79987,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -80065,7 +80055,7 @@
],
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@3.0/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -80212,7 +80202,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -80294,7 +80284,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -80906,7 +80896,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -81728,7 +81718,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/repos#accept-a-repository-invitation"
@@ -81809,7 +81799,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/decorated/ghes-3.1.json b/lib/rest/static/decorated/ghes-3.1.json
index a2e4c4cdee..a9be9ef299 100644
--- a/lib/rest/static/decorated/ghes-3.1.json
+++ b/lib/rest/static/decorated/ghes-3.1.json
@@ -11921,7 +11921,7 @@
}
],
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -11944,7 +11944,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. Name of the runner group.
", @@ -12180,7 +12180,7 @@ } ], "summary": "Get a self-hosted runner group for an enterprise", - "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise", "tags": [ "enterprise-admin" @@ -12203,7 +12203,7 @@ "subcategoryLabel": "Actions", "notes": [], "bodyParameters": [], - "descriptionHTML": "Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Name of the runner group.
", @@ -12387,7 +12387,7 @@ } ], "summary": "Delete a self-hosted runner group from an enterprise", - "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise", "tags": [ "enterprise-admin" @@ -12417,7 +12417,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of organization IDs that can access the runner group.
", @@ -12680,7 +12680,7 @@ } ], "summary": "Add organization access to a self-hosted runner group in an enterprise", - "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise", "tags": [ "enterprise-admin" @@ -12710,7 +12710,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of runner IDs to add to the runner group.
", @@ -13054,7 +13054,7 @@ } ], "summary": "Add a self-hosted runner to a group for an enterprise", - "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.", + "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.", "operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise", "tags": [ "enterprise-admin" @@ -13084,7 +13084,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise\nscope to use this endpoint.
Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise\nscope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -13402,7 +13402,7 @@
}
],
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -13425,7 +13425,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -13474,7 +13474,7 @@
}
],
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -13497,7 +13497,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "create-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -63934,11 +63934,6 @@
"httpStatusMessage": "Conflict",
"description": "Conflict"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -64323,6 +64318,8 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
@@ -64330,9 +64327,7 @@
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.1/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
"html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "delete-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -64351,11 +64346,6 @@
"httpStatusMessage": "Not Found",
"description": "Resource not found"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -71491,12 +71481,22 @@
{
"name": "secret_type",
"in": "query",
- "description": "A comma separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.1/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "description": "A comma-separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.1/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
"required": false,
"schema": {
"type": "string"
},
- "descriptionHTML": "A comma separated list of secret types to return. By default all secret types are returned. See \"About secret scanning for private repositories\" for a complete list of secret types (API slug).
" + "descriptionHTML": "A comma-separated list of secret types to return. By default all secret types are returned. See \"About secret scanning for private repositories\" for a complete list of secret types (API slug).
" + }, + { + "name": "resolution", + "in": "query", + "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
{\n \"number\": 42,\n \"created_at\": \"2020-11-06T18:18:30Z\",\n \"url\": \"https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42\",\n \"html_url\": \"https://github.com/owner/private-repo/security/secret-scanning/42\",\n \"state\": \"open\",\n \"resolution\": null,\n \"resolved_at\": null,\n \"resolved_by\": null,\n \"secret_type\": \"mailchimp_api_key\",\n \"secret\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2\"\n}\n"
},
+ {
+ "httpStatusCode": "304",
+ "httpStatusMessage": "Not Modified",
+ "description": "Not modified"
+ },
{
"httpStatusCode": "404",
"httpStatusMessage": "Not Found",
@@ -79194,7 +79199,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -79265,7 +79270,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -79408,7 +79413,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -79657,7 +79662,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -79984,7 +79989,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -80052,7 +80057,7 @@
],
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@3.1/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -80177,7 +80182,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -80259,7 +80264,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -80550,7 +80555,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -80635,7 +80640,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -80900,7 +80905,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -80968,7 +80973,7 @@
],
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@3.1/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -81115,7 +81120,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -81197,7 +81202,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -81809,7 +81814,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -82631,7 +82636,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/repos#accept-a-repository-invitation"
@@ -82712,7 +82717,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/decorated/ghes-3.2.json b/lib/rest/static/decorated/ghes-3.2.json
index 6acfe2d5f9..6531c22d50 100644
--- a/lib/rest/static/decorated/ghes-3.2.json
+++ b/lib/rest/static/decorated/ghes-3.2.json
@@ -12144,7 +12144,7 @@
}
],
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -12167,7 +12167,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runner groups for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Creates a new self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. Name of the runner group.
", @@ -12403,7 +12403,7 @@ } ], "summary": "Get a self-hosted runner group for an enterprise", - "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise", "tags": [ "enterprise-admin" @@ -12426,7 +12426,7 @@ "subcategoryLabel": "Actions", "notes": [], "bodyParameters": [], - "descriptionHTML": "Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Updates the name and visibility of a self-hosted runner group in an enterprise.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Name of the runner group.
", @@ -12610,7 +12610,7 @@ } ], "summary": "Delete a self-hosted runner group from an enterprise", - "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise", "tags": [ "enterprise-admin" @@ -12640,7 +12640,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Deletes a self-hosted runner group for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the organizations with access to a self-hosted runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of organization IDs that can access the runner group.
", @@ -12903,7 +12903,7 @@ } ], "summary": "Add organization access to a self-hosted runner group in an enterprise", - "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.", + "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", "operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise", "tags": [ "enterprise-admin" @@ -12933,7 +12933,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see \"Create a self-hosted runner group for an enterprise.\"
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists the self-hosted runners that are in a specific enterprise group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Replaces the list of self-hosted runners that are part of an enterprise runner group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Required. List of runner IDs to add to the runner group.
", @@ -13277,7 +13277,7 @@ } ], "summary": "Add a self-hosted runner to a group for an enterprise", - "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.", + "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.", "operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise", "tags": [ "enterprise-admin" @@ -13307,7 +13307,7 @@ } ], "bodyParameters": [], - "descriptionHTML": "Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise\nscope to use this endpoint.
Adds a self-hosted runner to a runner group configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise\nscope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists all self-hosted runners configured for an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Lists binaries for the runner application that you can download and run.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint.
./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -13625,7 +13625,7 @@
}
],
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -13648,7 +13648,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
+ "descriptionHTML": "Returns a token that you can pass to the config script to remove a self-hosted runner from an enterprise. The token expires after one hour.
You must authenticate using an access token with the admin:enterprise scope to use this endpoint.
To remove your self-hosted runner from an enterprise, replace TOKEN with the remove token provided by this\nendpoint.
./config.sh remove --token TOKEN\n",
"responses": [
{
"httpStatusCode": "201",
@@ -13697,7 +13697,7 @@
}
],
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -13720,7 +13720,7 @@
"subcategoryLabel": "Actions",
"notes": [],
"bodyParameters": [],
- "descriptionHTML": "Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Gets a specific self-hosted runner configured in an enterprise.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the manage_runners:enterprise scope to use this endpoint.
Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
\nYou must authenticate using an access token with the admin:enterprise scope to use this endpoint.
Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "create-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -66140,11 +66140,6 @@
"httpStatusMessage": "Conflict",
"description": "Conflict"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -66529,6 +66524,8 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
@@ -66536,9 +66533,7 @@
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
"html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
},
"slug": "delete-a-github-enterprise-server-pages-site",
"category": "repos",
@@ -66557,11 +66552,6 @@
"httpStatusMessage": "Not Found",
"description": "Resource not found"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -73846,12 +73836,22 @@
{
"name": "secret_type",
"in": "query",
- "description": "A comma separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.2/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "description": "A comma-separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.2/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
"required": false,
"schema": {
"type": "string"
},
- "descriptionHTML": "A comma separated list of secret types to return. By default all secret types are returned. See \"About secret scanning for private repositories\" for a complete list of secret types (API slug).
" + "descriptionHTML": "A comma-separated list of secret types to return. By default all secret types are returned. See \"About secret scanning for private repositories\" for a complete list of secret types (API slug).
" + }, + { + "name": "resolution", + "in": "query", + "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
{\n \"number\": 42,\n \"created_at\": \"2020-11-06T18:18:30Z\",\n \"url\": \"https://api.github.com/repos/owner/private-repo/secret-scanning/alerts/42\",\n \"html_url\": \"https://github.com/owner/private-repo/security/secret-scanning/42\",\n \"state\": \"open\",\n \"resolution\": null,\n \"resolved_at\": null,\n \"resolved_by\": null,\n \"secret_type\": \"mailchimp_api_key\",\n \"secret\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2\"\n}\n"
},
+ {
+ "httpStatusCode": "304",
+ "httpStatusMessage": "Not Modified",
+ "description": "Not modified"
+ },
{
"httpStatusCode": "404",
"httpStatusMessage": "Not Found",
@@ -82017,7 +82022,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -82088,7 +82093,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -82231,7 +82236,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -82480,7 +82485,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -82807,7 +82812,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -82875,7 +82880,7 @@
],
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@3.2/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -83000,7 +83005,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -83082,7 +83087,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -83373,7 +83378,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -83458,7 +83463,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -83723,7 +83728,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -83791,7 +83796,7 @@
],
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@3.2/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -83938,7 +83943,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -84020,7 +84025,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -84632,7 +84637,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -85471,7 +85476,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#accept-a-repository-invitation"
@@ -85552,7 +85557,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json
index 56ea9542d0..9cda85f012 100644
--- a/lib/rest/static/decorated/github.ae.json
+++ b/lib/rest/static/decorated/github.ae.json
@@ -38546,6 +38546,100 @@
}
]
},
+ {
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest",
+ "serverUrl": "https://{hostname}/api/v3",
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "check_run_id",
+ "description": "check_run_id parameter",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": "check_run_id parameter
" + } + ], + "x-codeSamples": [ + { + "lang": "Shell", + "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/rerequest", + "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/rerequest"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest', {\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 42\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest', {\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 42\n})\n"
+ }
+ ],
+ "summary": "Rerequest a check run",
+ "description": "Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
+ "tags": [
+ "checks"
+ ],
+ "operationId": "checks/rerequest-run",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/checks#rerequest-a-check-run"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "checks",
+ "subcategory": "runs"
+ },
+ "slug": "rerequest-a-check-run",
+ "category": "checks",
+ "categoryLabel": "Checks",
+ "subcategory": "runs",
+ "subcategoryLabel": "Runs",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "201",
+ "httpStatusMessage": "Created",
+ "description": "Response"
+ },
+ {
+ "httpStatusCode": "403",
+ "httpStatusMessage": "Forbidden",
+ "description": "Forbidden if the check run is not rerequestable or doesn't belong to the authenticated GitHub App"
+ },
+ {
+ "httpStatusCode": "404",
+ "httpStatusMessage": "Not Found",
+ "description": "Resource not found"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation error if the check run is not rerequestable"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the check_run webhook event with the action rerequested. When a check run is rerequested, its status is reset to queued and the conclusion is cleared.
To rerequest a check run, your GitHub App must have the checks:read permission on a private repository or pull access to a public repository.
curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'"
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n },\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n },\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n }\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n source: {\n branch: 'branch',\n path: 'path'\n }\n})\n"
}
],
"summary": "Create a GitHub AE Pages site",
@@ -57053,14 +57147,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
- "html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
- }
- ],
"category": "repos",
"subcategory": "pages"
},
@@ -57084,11 +57170,6 @@
"httpStatusMessage": "Conflict",
"description": "Conflict"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -57451,13 +57532,13 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages"
},
{
"lang": "JavaScript",
- "source": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})",
- "html": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n mediaType: {\n previews: [\n 'switcheroo'\n ]\n }\n})\n"
+ "source": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world'\n})",
+ "html": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world'\n})\n"
}
],
"summary": "Delete a GitHub AE Pages site",
@@ -57473,14 +57554,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
- "html": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the blog post preview for more details. To access the new endpoints during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.switcheroo-preview+json"
- }
- ],
"category": "repos",
"subcategory": "pages"
},
@@ -57501,11 +57574,6 @@
"httpStatusMessage": "Not Found",
"description": "Resource not found"
},
- {
- "httpStatusCode": "415",
- "httpStatusMessage": "Unsupported Media Type",
- "description": "Preview header missing"
- },
{
"httpStatusCode": "422",
"httpStatusMessage": "Unprocessable Entity",
@@ -71924,7 +71992,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -72251,7 +72319,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -72319,7 +72387,7 @@
],
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/github-ae@latest/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -72444,7 +72512,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -72526,7 +72594,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -72817,7 +72885,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -72902,7 +72970,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -73154,7 +73222,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -73222,7 +73290,7 @@
],
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/github-ae@latest/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -73369,7 +73437,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -73451,7 +73519,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -74803,7 +74871,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/repos#accept-a-repository-invitation"
@@ -74884,7 +74952,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json
index 96d3a4b326..1ceca59b38 100644
--- a/lib/rest/static/dereferenced/api.github.com.deref.json
+++ b/lib/rest/static/dereferenced/api.github.com.deref.json
@@ -93305,7 +93305,16 @@
{
"name": "secret_type",
"in": "query",
- "description": "A comma separated list of secret types to return. By default all secret types are returned.",
+ "description": "A comma-separated list of secret types to return. By default all secret types are returned.",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.",
"required": false,
"schema": {
"type": "string"
@@ -166839,6 +166848,149 @@
}
}
},
+ "/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest": {
+ "post": {
+ "summary": "Rerequest a check run",
+ "description": "Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
+ "tags": [
+ "checks"
+ ],
+ "operationId": "checks/rerequest-run",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/checks#rerequest-a-check-run"
+ },
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "check_run_id",
+ "description": "check_run_id parameter",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ },
+ "additionalProperties": false
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden if the check run is not rerequestable or doesn't belong to the authenticated GitHub App",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Basic Error",
+ "description": "Basic Error",
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "documentation_url": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation error if the check run is not rerequestable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Basic Error",
+ "description": "Basic Error",
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "documentation_url": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Resource not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Basic Error",
+ "description": "Basic Error",
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "documentation_url": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [
+
+ ],
+ "category": "checks",
+ "subcategory": "runs"
+ }
+ }
+ },
"/repos/{owner}/{repo}/check-suites": {
"post": {
"summary": "Create a check suite",
@@ -289620,28 +289772,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"409": {
"description": "Conflict",
"content": {
@@ -289672,13 +289802,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
- }
- ],
"category": "repos",
"subcategory": "pages"
}
@@ -290047,28 +290170,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"404": {
"description": "Resource not found",
"content": {
@@ -290099,13 +290200,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
- }
- ],
"category": "repos",
"subcategory": "pages"
}
@@ -326539,6 +326633,11 @@
"discussion_category_name": {
"type": "string",
"description": "If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see \"[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository).\""
+ },
+ "generate_release_notes": {
+ "type": "boolean",
+ "description": "Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.",
+ "default": false
}
},
"required": [
@@ -326551,7 +326650,8 @@
"name": "v1.0.0",
"body": "Description of the release",
"draft": false,
- "prerelease": false
+ "prerelease": false,
+ "generate_release_notes": false
}
}
}
@@ -331898,7 +331998,16 @@
{
"name": "secret_type",
"in": "query",
- "description": "A comma separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "description": "A comma-separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.",
"required": false,
"schema": {
"type": "string"
@@ -332467,6 +332576,9 @@
}
}
},
+ "304": {
+ "description": "Not modified"
+ },
"404": {
"description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found"
},
@@ -371171,7 +371283,7 @@
"tags": [
"users"
],
- "operationId": "users/list-blocked-by-authenticated",
+ "operationId": "users/list-blocked-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user"
@@ -371879,7 +371991,7 @@
"tags": [
"users"
],
- "operationId": "users/set-primary-email-visibility-for-authenticated",
+ "operationId": "users/set-primary-email-visibility-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user"
@@ -372133,7 +372245,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -372318,7 +372430,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -372606,7 +372718,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -373095,7 +373207,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -373711,7 +373823,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -374054,7 +374166,7 @@
"post": {
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -374463,7 +374575,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -374787,7 +374899,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -377299,7 +377411,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -377399,7 +377511,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -380539,7 +380651,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -380740,7 +380852,7 @@
"post": {
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -381004,7 +381116,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -381177,7 +381289,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -388520,7 +388632,7 @@
"tags": [
"migrations"
],
- "operationId": "migrations/list-repos-for-user",
+ "operationId": "migrations/list-repos-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration"
@@ -396214,7 +396326,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -401721,7 +401833,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/repos#accept-a-repository-invitation"
@@ -401839,7 +401951,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/dereferenced/ghes-2.22.deref.json b/lib/rest/static/dereferenced/ghes-2.22.deref.json
index f922a13c3b..755256bbcd 100644
--- a/lib/rest/static/dereferenced/ghes-2.22.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.22.deref.json
@@ -22174,7 +22174,7 @@
"/enterprises/{enterprise}/actions/runner-groups": {
"get": {
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -22316,7 +22316,7 @@
},
"post": {
"summary": "Create a self-hosted runner group for an enterprise",
- "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/create-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -22461,7 +22461,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": {
"get": {
"summary": "Get a self-hosted runner group for an enterprise",
- "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -22558,7 +22558,7 @@
},
"patch": {
"summary": "Update a self-hosted runner group for an enterprise",
- "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/update-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -22683,7 +22683,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner group from an enterprise",
- "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise",
"tags": [
"enterprise-admin"
@@ -22731,7 +22731,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": {
"get": {
"summary": "List organization access to a self-hosted runner group in an enterprise",
- "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -22910,7 +22910,7 @@
},
"put": {
"summary": "Set organization access for a self-hosted runner group in an enterprise",
- "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -22987,7 +22987,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": {
"put": {
"summary": "Add organization access to a self-hosted runner group in an enterprise",
- "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -23042,7 +23042,7 @@
},
"delete": {
"summary": "Remove organization access to a self-hosted runner group in an enterprise",
- "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -23099,7 +23099,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": {
"get": {
"summary": "List self-hosted runners in a group for an enterprise",
- "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -23233,7 +23233,7 @@
},
"put": {
"summary": "Set self-hosted runners in a group for an enterprise",
- "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -23310,7 +23310,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": {
"put": {
"summary": "Add a self-hosted runner to a group for an enterprise",
- "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.",
+ "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.",
"operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -23365,7 +23365,7 @@
},
"delete": {
"summary": "Remove a self-hosted runner from a group for an enterprise",
- "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -23422,7 +23422,7 @@
"/enterprises/{enterprise}/actions/runners": {
"get": {
"summary": "List self-hosted runners for an enterprise",
- "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-for-enterprise",
"tags": [
"enterprise-admin"
@@ -23545,7 +23545,7 @@
"/enterprises/{enterprise}/actions/runners/downloads": {
"get": {
"summary": "List runner applications for an enterprise",
- "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-runner-applications-for-enterprise",
"tags": [
"enterprise-admin"
@@ -23659,7 +23659,7 @@
"/enterprises/{enterprise}/actions/runners/registration-token": {
"post": {
"summary": "Create a registration token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
"operationId": "enterprise-admin/create-registration-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -24846,7 +24846,7 @@
"/enterprises/{enterprise}/actions/runners/remove-token": {
"post": {
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26033,7 +26033,7 @@
"/enterprises/{enterprise}/actions/runners/{runner_id}": {
"get": {
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26114,7 +26114,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner from an enterprise",
- "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-from-enterprise",
"tags": [
"enterprise-admin"
@@ -254238,28 +254238,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"409": {
"description": "Conflict",
"content": {
@@ -254290,15 +254268,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@2.22/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
},
"put": {
@@ -254665,28 +254643,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"404": {
"description": "Resource not found",
"content": {
@@ -254717,15 +254673,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@2.22/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
}
},
@@ -326901,7 +326857,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -327086,7 +327042,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -327374,7 +327330,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -327863,7 +327819,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -328479,7 +328435,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -328822,7 +328778,7 @@
"post": {
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@2.22/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -329231,7 +329187,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -329555,7 +329511,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -331802,7 +331758,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -331902,7 +331858,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -334754,7 +334710,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -334955,7 +334911,7 @@
"post": {
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@2.22/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -335219,7 +335175,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -335392,7 +335348,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -337544,7 +337500,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -343017,7 +342973,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/repos#accept-a-repository-invitation"
@@ -343135,7 +343091,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@2.22/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/dereferenced/ghes-3.0.deref.json b/lib/rest/static/dereferenced/ghes-3.0.deref.json
index 7a10b2c513..1e5b68d775 100644
--- a/lib/rest/static/dereferenced/ghes-3.0.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.0.deref.json
@@ -24888,7 +24888,7 @@
"/enterprises/{enterprise}/actions/runner-groups": {
"get": {
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25030,7 +25030,7 @@
},
"post": {
"summary": "Create a self-hosted runner group for an enterprise",
- "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/create-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25175,7 +25175,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": {
"get": {
"summary": "Get a self-hosted runner group for an enterprise",
- "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25272,7 +25272,7 @@
},
"patch": {
"summary": "Update a self-hosted runner group for an enterprise",
- "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/update-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25397,7 +25397,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner group from an enterprise",
- "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise",
"tags": [
"enterprise-admin"
@@ -25445,7 +25445,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": {
"get": {
"summary": "List organization access to a self-hosted runner group in an enterprise",
- "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25624,7 +25624,7 @@
},
"put": {
"summary": "Set organization access for a self-hosted runner group in an enterprise",
- "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25701,7 +25701,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": {
"put": {
"summary": "Add organization access to a self-hosted runner group in an enterprise",
- "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25756,7 +25756,7 @@
},
"delete": {
"summary": "Remove organization access to a self-hosted runner group in an enterprise",
- "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25813,7 +25813,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": {
"get": {
"summary": "List self-hosted runners in a group for an enterprise",
- "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26028,7 +26028,7 @@
},
"put": {
"summary": "Set self-hosted runners in a group for an enterprise",
- "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26105,7 +26105,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": {
"put": {
"summary": "Add a self-hosted runner to a group for an enterprise",
- "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.",
+ "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.",
"operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26160,7 +26160,7 @@
},
"delete": {
"summary": "Remove a self-hosted runner from a group for an enterprise",
- "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26217,7 +26217,7 @@
"/enterprises/{enterprise}/actions/runners": {
"get": {
"summary": "List self-hosted runners for an enterprise",
- "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26421,7 +26421,7 @@
"/enterprises/{enterprise}/actions/runners/downloads": {
"get": {
"summary": "List runner applications for an enterprise",
- "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-runner-applications-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26535,7 +26535,7 @@
"/enterprises/{enterprise}/actions/runners/registration-token": {
"post": {
"summary": "Create a registration token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
"operationId": "enterprise-admin/create-registration-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27722,7 +27722,7 @@
"/enterprises/{enterprise}/actions/runners/remove-token": {
"post": {
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -28909,7 +28909,7 @@
"/enterprises/{enterprise}/actions/runners/{runner_id}": {
"get": {
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -29054,7 +29054,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner from an enterprise",
- "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-from-enterprise",
"tags": [
"enterprise-admin"
@@ -261079,28 +261079,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"409": {
"description": "Conflict",
"content": {
@@ -261131,15 +261109,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.0/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
},
"put": {
@@ -261506,28 +261484,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"404": {
"description": "Resource not found",
"content": {
@@ -261558,15 +261514,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.0/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
}
},
@@ -333742,7 +333698,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -333927,7 +333883,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -334215,7 +334171,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -334704,7 +334660,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -335320,7 +335276,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -335663,7 +335619,7 @@
"post": {
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@3.0/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -336072,7 +336028,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -336396,7 +336352,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -338898,7 +338854,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -338998,7 +338954,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -341850,7 +341806,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -342051,7 +342007,7 @@
"post": {
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@3.0/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -342315,7 +342271,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -342488,7 +342444,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -344640,7 +344596,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -350113,7 +350069,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/repos#accept-a-repository-invitation"
@@ -350231,7 +350187,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.0/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/dereferenced/ghes-3.1.deref.json b/lib/rest/static/dereferenced/ghes-3.1.deref.json
index e2fa667c1e..9ba308e81f 100644
--- a/lib/rest/static/dereferenced/ghes-3.1.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.1.deref.json
@@ -24888,7 +24888,7 @@
"/enterprises/{enterprise}/actions/runner-groups": {
"get": {
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25030,7 +25030,7 @@
},
"post": {
"summary": "Create a self-hosted runner group for an enterprise",
- "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/create-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25175,7 +25175,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": {
"get": {
"summary": "Get a self-hosted runner group for an enterprise",
- "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25272,7 +25272,7 @@
},
"patch": {
"summary": "Update a self-hosted runner group for an enterprise",
- "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/update-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25397,7 +25397,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner group from an enterprise",
- "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise",
"tags": [
"enterprise-admin"
@@ -25445,7 +25445,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": {
"get": {
"summary": "List organization access to a self-hosted runner group in an enterprise",
- "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25624,7 +25624,7 @@
},
"put": {
"summary": "Set organization access for a self-hosted runner group in an enterprise",
- "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25701,7 +25701,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": {
"put": {
"summary": "Add organization access to a self-hosted runner group in an enterprise",
- "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25756,7 +25756,7 @@
},
"delete": {
"summary": "Remove organization access to a self-hosted runner group in an enterprise",
- "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -25813,7 +25813,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": {
"get": {
"summary": "List self-hosted runners in a group for an enterprise",
- "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26028,7 +26028,7 @@
},
"put": {
"summary": "Set self-hosted runners in a group for an enterprise",
- "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26105,7 +26105,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": {
"put": {
"summary": "Add a self-hosted runner to a group for an enterprise",
- "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.",
+ "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.",
"operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26160,7 +26160,7 @@
},
"delete": {
"summary": "Remove a self-hosted runner from a group for an enterprise",
- "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26217,7 +26217,7 @@
"/enterprises/{enterprise}/actions/runners": {
"get": {
"summary": "List self-hosted runners for an enterprise",
- "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26421,7 +26421,7 @@
"/enterprises/{enterprise}/actions/runners/downloads": {
"get": {
"summary": "List runner applications for an enterprise",
- "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-runner-applications-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26535,7 +26535,7 @@
"/enterprises/{enterprise}/actions/runners/registration-token": {
"post": {
"summary": "Create a registration token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
"operationId": "enterprise-admin/create-registration-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27722,7 +27722,7 @@
"/enterprises/{enterprise}/actions/runners/remove-token": {
"post": {
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -28909,7 +28909,7 @@
"/enterprises/{enterprise}/actions/runners/{runner_id}": {
"get": {
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -29054,7 +29054,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner from an enterprise",
- "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-from-enterprise",
"tags": [
"enterprise-admin"
@@ -264056,28 +264056,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"409": {
"description": "Conflict",
"content": {
@@ -264108,15 +264086,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.1/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
},
"put": {
@@ -264483,28 +264461,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"404": {
"description": "Resource not found",
"content": {
@@ -264535,15 +264491,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.1/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
}
},
@@ -305551,7 +305507,16 @@
{
"name": "secret_type",
"in": "query",
- "description": "A comma separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.1/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "description": "A comma-separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.1/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.",
"required": false,
"schema": {
"type": "string"
@@ -306120,6 +306085,9 @@
}
}
},
+ "304": {
+ "description": "Not modified"
+ },
"404": {
"description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found"
},
@@ -338294,7 +338262,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -338479,7 +338447,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -338767,7 +338735,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -339256,7 +339224,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -339872,7 +339840,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -340215,7 +340183,7 @@
"post": {
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@3.1/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -340624,7 +340592,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -340948,7 +340916,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -343450,7 +343418,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -343550,7 +343518,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -346402,7 +346370,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -346603,7 +346571,7 @@
"post": {
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@3.1/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -346867,7 +346835,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -347040,7 +347008,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -349192,7 +349160,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -354665,7 +354633,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/repos#accept-a-repository-invitation"
@@ -354783,7 +354751,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.1/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/dereferenced/ghes-3.2.deref.json b/lib/rest/static/dereferenced/ghes-3.2.deref.json
index 7cdd021d57..e4f1cf797d 100644
--- a/lib/rest/static/dereferenced/ghes-3.2.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.2.deref.json
@@ -25796,7 +25796,7 @@
"/enterprises/{enterprise}/actions/runner-groups": {
"get": {
"summary": "List self-hosted runner groups for an enterprise",
- "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise",
"tags": [
"enterprise-admin"
@@ -25938,7 +25938,7 @@
},
"post": {
"summary": "Create a self-hosted runner group for an enterprise",
- "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/create-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26083,7 +26083,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": {
"get": {
"summary": "Get a self-hosted runner group for an enterprise",
- "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26180,7 +26180,7 @@
},
"patch": {
"summary": "Update a self-hosted runner group for an enterprise",
- "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/update-self-hosted-runner-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26305,7 +26305,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner group from an enterprise",
- "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise",
"tags": [
"enterprise-admin"
@@ -26353,7 +26353,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": {
"get": {
"summary": "List organization access to a self-hosted runner group in an enterprise",
- "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -26532,7 +26532,7 @@
},
"put": {
"summary": "Set organization access for a self-hosted runner group in an enterprise",
- "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -26609,7 +26609,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": {
"put": {
"summary": "Add organization access to a self-hosted runner group in an enterprise",
- "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -26664,7 +26664,7 @@
},
"delete": {
"summary": "Remove organization access to a self-hosted runner group in an enterprise",
- "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise",
"tags": [
"enterprise-admin"
@@ -26721,7 +26721,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": {
"get": {
"summary": "List self-hosted runners in a group for an enterprise",
- "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -26936,7 +26936,7 @@
},
"put": {
"summary": "Set self-hosted runners in a group for an enterprise",
- "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Replaces the list of self-hosted runners that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/set-self-hosted-runners-in-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27013,7 +27013,7 @@
"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": {
"put": {
"summary": "Add a self-hosted runner to a group for an enterprise",
- "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise`\nscope to use this endpoint.",
+ "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.",
"operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27068,7 +27068,7 @@
},
"delete": {
"summary": "Remove a self-hosted runner from a group for an enterprise",
- "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27125,7 +27125,7 @@
"/enterprises/{enterprise}/actions/runners": {
"get": {
"summary": "List self-hosted runners for an enterprise",
- "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-self-hosted-runners-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27329,7 +27329,7 @@
"/enterprises/{enterprise}/actions/runners/downloads": {
"get": {
"summary": "List runner applications for an enterprise",
- "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/list-runner-applications-for-enterprise",
"tags": [
"enterprise-admin"
@@ -27453,7 +27453,7 @@
"/enterprises/{enterprise}/actions/runners/registration-token": {
"post": {
"summary": "Create a registration token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN\n```",
"operationId": "enterprise-admin/create-registration-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -28649,7 +28649,7 @@
"/enterprises/{enterprise}/actions/runners/remove-token": {
"post": {
"summary": "Create a remove token for an enterprise",
- "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
+ "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```",
"operationId": "enterprise-admin/create-remove-token-for-enterprise",
"tags": [
"enterprise-admin"
@@ -29845,7 +29845,7 @@
"/enterprises/{enterprise}/actions/runners/{runner_id}": {
"get": {
"summary": "Get a self-hosted runner for an enterprise",
- "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise",
"tags": [
"enterprise-admin"
@@ -29990,7 +29990,7 @@
},
"delete": {
"summary": "Delete a self-hosted runner from an enterprise",
- "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.",
+ "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.",
"operationId": "enterprise-admin/delete-self-hosted-runner-from-enterprise",
"tags": [
"enterprise-admin"
@@ -270869,28 +270869,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"409": {
"description": "Conflict",
"content": {
@@ -270921,15 +270899,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
},
"put": {
@@ -271296,28 +271274,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"404": {
"description": "Resource not found",
"content": {
@@ -271348,15 +271304,15 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
+ "category": "repos",
+ "subcategory": "pages",
"previews": [
{
"required": true,
"name": "switcheroo",
"note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
}
- ],
- "category": "repos",
- "subcategory": "pages"
+ ]
}
}
},
@@ -312997,7 +312953,16 @@
{
"name": "secret_type",
"in": "query",
- "description": "A comma separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.2/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "description": "A comma-separated list of secret types to return. By default all secret types are returned. See \"[About secret scanning for private repositories](https://docs.github.com/enterprise-server@3.2/code-security/secret-security/about-secret-scanning#about-secret-scanning-for-private-repositories)\" for a complete list of secret types (API slug).",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "resolution",
+ "in": "query",
+ "description": "A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.",
"required": false,
"schema": {
"type": "string"
@@ -313566,6 +313531,9 @@
}
}
},
+ "304": {
+ "description": "Not modified"
+ },
"404": {
"description": "Repository is public, or secret scanning is disabled for the repository, or the resource is not found"
},
@@ -346307,7 +346275,7 @@
"tags": [
"users"
],
- "operationId": "users/list-emails-for-authenticated",
+ "operationId": "users/list-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-email-addresses-for-the-authenticated-user"
@@ -346492,7 +346460,7 @@
"tags": [
"users"
],
- "operationId": "users/add-email-for-authenticated",
+ "operationId": "users/add-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#add-an-email-address-for-the-authenticated-user"
@@ -346780,7 +346748,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-email-for-authenticated",
+ "operationId": "users/delete-email-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#delete-an-email-address-for-the-authenticated-user"
@@ -347269,7 +347237,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -347885,7 +347853,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -348228,7 +348196,7 @@
"post": {
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/enterprise-server@3.2/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -348637,7 +348605,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -348961,7 +348929,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -351473,7 +351441,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -351573,7 +351541,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -354435,7 +354403,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -354636,7 +354604,7 @@
"post": {
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/enterprise-server@3.2/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -354900,7 +354868,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -355073,7 +355041,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -357225,7 +357193,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-emails-for-authenticated",
+ "operationId": "users/list-public-emails-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/users#list-public-email-addresses-for-the-authenticated-user"
@@ -362732,7 +362700,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#accept-a-repository-invitation"
@@ -362850,7 +362818,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json
index 35b62f481c..3eb2b3242f 100644
--- a/lib/rest/static/dereferenced/github.ae.deref.json
+++ b/lib/rest/static/dereferenced/github.ae.deref.json
@@ -119420,6 +119420,149 @@
}
}
},
+ "/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest": {
+ "post": {
+ "summary": "Rerequest a check run",
+ "description": "Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
+ "tags": [
+ "checks"
+ ],
+ "operationId": "checks/rerequest-run",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/checks#rerequest-a-check-run"
+ },
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "check_run_id",
+ "description": "check_run_id parameter",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ },
+ "additionalProperties": false
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden if the check run is not rerequestable or doesn't belong to the authenticated GitHub App",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Basic Error",
+ "description": "Basic Error",
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "documentation_url": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation error if the check run is not rerequestable",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Basic Error",
+ "description": "Basic Error",
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "documentation_url": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Resource not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Basic Error",
+ "description": "Basic Error",
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "documentation_url": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [
+
+ ],
+ "category": "checks",
+ "subcategory": "runs"
+ }
+ }
+ },
"/repos/{owner}/{repo}/check-suites": {
"post": {
"summary": "Create a check suite",
@@ -237643,28 +237786,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"409": {
"description": "Conflict",
"content": {
@@ -237695,13 +237816,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
- }
- ],
"category": "repos",
"subcategory": "pages"
}
@@ -238070,28 +238184,6 @@
}
}
},
- "415": {
- "description": "Preview header missing",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "message",
- "documentation_url"
- ],
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
"404": {
"description": "Resource not found",
"content": {
@@ -238122,13 +238214,6 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "previews": [
- {
- "required": true,
- "name": "switcheroo",
- "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
- }
- ],
"category": "repos",
"subcategory": "pages"
}
@@ -309534,7 +309619,7 @@
"tags": [
"users"
],
- "operationId": "users/list-followed-by-authenticated",
+ "operationId": "users/list-followed-by-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#list-the-people-the-authenticated-user-follows"
@@ -310150,7 +310235,7 @@
"tags": [
"users"
],
- "operationId": "users/list-gpg-keys-for-authenticated",
+ "operationId": "users/list-gpg-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#list-gpg-keys-for-the-authenticated-user"
@@ -310493,7 +310578,7 @@
"post": {
"summary": "Create a GPG key for the authenticated user",
"description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/github-ae@latest/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-gpg-key-for-authenticated",
+ "operationId": "users/create-gpg-key-for-authenticated-user",
"tags": [
"users"
],
@@ -310902,7 +310987,7 @@
"tags": [
"users"
],
- "operationId": "users/get-gpg-key-for-authenticated",
+ "operationId": "users/get-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#get-a-gpg-key-for-the-authenticated-user"
@@ -311226,7 +311311,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-gpg-key-for-authenticated",
+ "operationId": "users/delete-gpg-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user"
@@ -313738,7 +313823,7 @@
"tags": [
"apps"
],
- "operationId": "apps/add-repo-to-installation",
+ "operationId": "apps/add-repo-to-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/apps#add-a-repository-to-an-app-installation"
@@ -313838,7 +313923,7 @@
"tags": [
"apps"
],
- "operationId": "apps/remove-repo-from-installation",
+ "operationId": "apps/remove-repo-from-installation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/apps#remove-a-repository-from-an-app-installation"
@@ -316689,7 +316774,7 @@
"tags": [
"users"
],
- "operationId": "users/list-public-ssh-keys-for-authenticated",
+ "operationId": "users/list-public-ssh-keys-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user"
@@ -316890,7 +316975,7 @@
"post": {
"summary": "Create a public SSH key for the authenticated user",
"description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/github-ae@latest/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users/create-public-ssh-key-for-authenticated",
+ "operationId": "users/create-public-ssh-key-for-authenticated-user",
"tags": [
"users"
],
@@ -317154,7 +317239,7 @@
"tags": [
"users"
],
- "operationId": "users/get-public-ssh-key-for-authenticated",
+ "operationId": "users/get-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user"
@@ -317327,7 +317412,7 @@
"tags": [
"users"
],
- "operationId": "users/delete-public-ssh-key-for-authenticated",
+ "operationId": "users/delete-public-ssh-key-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user"
@@ -324793,7 +324878,7 @@
"tags": [
"repos"
],
- "operationId": "repos/accept-invitation",
+ "operationId": "repos/accept-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/repos#accept-a-repository-invitation"
@@ -324911,7 +324996,7 @@
"tags": [
"repos"
],
- "operationId": "repos/decline-invitation",
+ "operationId": "repos/decline-invitation-for-authenticated-user",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/github-ae@latest/rest/reference/repos#decline-a-repository-invitation"
diff --git a/lib/search/indexes/github-docs-2.22-cn-records.json.br b/lib/search/indexes/github-docs-2.22-cn-records.json.br
index eaeb2baa19..606a08416f 100644
--- a/lib/search/indexes/github-docs-2.22-cn-records.json.br
+++ b/lib/search/indexes/github-docs-2.22-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7fddf4c7faf6c930bf0e378a1ffcc9bfef95449c1d863b7143091bf1c960cd41
-size 525387
+oid sha256:d114c7b22367d93102a06e51c16671fe9cb68eb57b46fd458af625b4e13f02b0
+size 525486
diff --git a/lib/search/indexes/github-docs-2.22-cn.json.br b/lib/search/indexes/github-docs-2.22-cn.json.br
index 44006dba5f..3b973e8b02 100644
--- a/lib/search/indexes/github-docs-2.22-cn.json.br
+++ b/lib/search/indexes/github-docs-2.22-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6cdba924672d13a96e72c94d0b655f2da4f5db0d43a0ea2fa1405f6b42ccc19a
-size 868817
+oid sha256:bc585436bcd959d4cb4bea79ec3813aa236086178b730eeaa7ea86253dcccd20
+size 868661
diff --git a/lib/search/indexes/github-docs-2.22-de-records.json.br b/lib/search/indexes/github-docs-2.22-de-records.json.br
index 0265fa7ed4..a729a5ab8b 100644
--- a/lib/search/indexes/github-docs-2.22-de-records.json.br
+++ b/lib/search/indexes/github-docs-2.22-de-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f8031aa7987254c33af030664ead0eb1c3e50fc6fcff27a5ca4f292ba67cbb50
-size 479354
+oid sha256:bcdd3c52ce0c9bef3470189d7115bb67f323d7b9c61a50b57ddae3d3aeeab5e4
+size 479335
diff --git a/lib/search/indexes/github-docs-2.22-de.json.br b/lib/search/indexes/github-docs-2.22-de.json.br
index 004f53dcd3..b138815546 100644
--- a/lib/search/indexes/github-docs-2.22-de.json.br
+++ b/lib/search/indexes/github-docs-2.22-de.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b99f605bc49ee1b3a25628af635843f16e7977a73e52390bc313acd016c7bde5
-size 2127018
+oid sha256:d859ff65c917ca7f602f394b81f969bd0dac338d16c80c51e508db5c7b6389f1
+size 2126741
diff --git a/lib/search/indexes/github-docs-2.22-en-records.json.br b/lib/search/indexes/github-docs-2.22-en-records.json.br
index 2143880b36..6ebfaade83 100644
--- a/lib/search/indexes/github-docs-2.22-en-records.json.br
+++ b/lib/search/indexes/github-docs-2.22-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1af5ed92b5d28760746f716ae1cb30744cc31fa11e4fbac972165224d7569c00
-size 433209
+oid sha256:14dd9ade966816ac9871f455f7467a35e20c0ce21a4c5763a660e945603bab87
+size 434002
diff --git a/lib/search/indexes/github-docs-2.22-en.json.br b/lib/search/indexes/github-docs-2.22-en.json.br
index b4f60a79e8..d4d9944750 100644
--- a/lib/search/indexes/github-docs-2.22-en.json.br
+++ b/lib/search/indexes/github-docs-2.22-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0f74a2f4c99b8b8c12d08e13664063fb5127ed5eafee4172d24339a4420e4ea4
-size 1691908
+oid sha256:582e57c5b7b9c8569d191bff9604e002f86a6af6f5ebdb64d334f8cb3d84e1d5
+size 1694431
diff --git a/lib/search/indexes/github-docs-2.22-es-records.json.br b/lib/search/indexes/github-docs-2.22-es-records.json.br
index a565e203b1..53bfd89090 100644
--- a/lib/search/indexes/github-docs-2.22-es-records.json.br
+++ b/lib/search/indexes/github-docs-2.22-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:684ae2ed9ff94f290a37483b01392248ecad74c82a2cdb0a3d310248a81b003e
-size 194966
+oid sha256:c3abc8d6b3fccfac1f63c7a1ee556a3df68c40d7c3501ae033b2580da28212e3
+size 194947
diff --git a/lib/search/indexes/github-docs-2.22-es.json.br b/lib/search/indexes/github-docs-2.22-es.json.br
index 813eee40c5..bda882ef64 100644
--- a/lib/search/indexes/github-docs-2.22-es.json.br
+++ b/lib/search/indexes/github-docs-2.22-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8da6555baf4dc636f2a10b47c5b9cee0af00ea34f065c7e2927eb761d6e65390
-size 702561
+oid sha256:5ebfa8fa87f8983ad1d0bb11650bb0b24c8729a3a12505ff94c2ef4096f61f35
+size 702808
diff --git a/lib/search/indexes/github-docs-2.22-ja-records.json.br b/lib/search/indexes/github-docs-2.22-ja-records.json.br
index 03a6519646..3915a57287 100644
--- a/lib/search/indexes/github-docs-2.22-ja-records.json.br
+++ b/lib/search/indexes/github-docs-2.22-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ac5b16a4f0e00a22ceafc689084228c5e9256bdd2e7899158b6d029691ee2ec2
-size 545312
+oid sha256:88f551ef41760e565eb549c4a5bdc5cf70f39b45c4e85d774e90c8fd4bbd7ca9
+size 545371
diff --git a/lib/search/indexes/github-docs-2.22-ja.json.br b/lib/search/indexes/github-docs-2.22-ja.json.br
index 70cdd86c03..da15bb55b2 100644
--- a/lib/search/indexes/github-docs-2.22-ja.json.br
+++ b/lib/search/indexes/github-docs-2.22-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2a9ca00d6233c9a57d6c626adb98a3ab56acd7a603dadb9b07dd9d56dfe912ca
-size 2880736
+oid sha256:63e10625085871114846e24be09fb4d947bd70e8c300ed7489975b963162b484
+size 2881066
diff --git a/lib/search/indexes/github-docs-2.22-pt-records.json.br b/lib/search/indexes/github-docs-2.22-pt-records.json.br
index d6283a8163..385a35a55f 100644
--- a/lib/search/indexes/github-docs-2.22-pt-records.json.br
+++ b/lib/search/indexes/github-docs-2.22-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:eeaa533b175af0ed77e04bc809e267e2d9691cc71db070d76daa65713db4ace0
-size 456916
+oid sha256:39219dc530ddb49f3bb89bac713b598b56c944d0cb640e23c4bb1992baaca18f
+size 456869
diff --git a/lib/search/indexes/github-docs-2.22-pt.json.br b/lib/search/indexes/github-docs-2.22-pt.json.br
index 4df906d3c3..b24b26dca4 100644
--- a/lib/search/indexes/github-docs-2.22-pt.json.br
+++ b/lib/search/indexes/github-docs-2.22-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e564855f3a9cb64eac81e2e824ee4567ccebf8c0ad3c23a063af553cf2cd202a
-size 1906016
+oid sha256:3e79dab7b004505fffd0b62aa35d91c696d24e970da5edbc6d6d0591db9929fb
+size 1905314
diff --git a/lib/search/indexes/github-docs-3.0-cn-records.json.br b/lib/search/indexes/github-docs-3.0-cn-records.json.br
index b56ee84cc8..b9badbd15d 100644
--- a/lib/search/indexes/github-docs-3.0-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.0-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2bf514c59e3928c9c156a7297961ac0f9e40196c133f0f6f42b9124a54571a97
-size 544827
+oid sha256:c3024b43540554ca461df3785180daae860b7598149a153d409939238c06c434
+size 544816
diff --git a/lib/search/indexes/github-docs-3.0-cn.json.br b/lib/search/indexes/github-docs-3.0-cn.json.br
index a02e362647..a9b3c768ea 100644
--- a/lib/search/indexes/github-docs-3.0-cn.json.br
+++ b/lib/search/indexes/github-docs-3.0-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:870a970a2d7faa1bebf71d76ef894bfbb30f7d1d9b9aeb724fecb0ffa2ddfe6f
-size 906924
+oid sha256:6f296eb87fcd2df9ab89ca8790dbb988a2c324fd9b6f75930c7738590e95c8e2
+size 906964
diff --git a/lib/search/indexes/github-docs-3.0-de-records.json.br b/lib/search/indexes/github-docs-3.0-de-records.json.br
index ad9ba4ce06..0d7c8c7ff6 100644
--- a/lib/search/indexes/github-docs-3.0-de-records.json.br
+++ b/lib/search/indexes/github-docs-3.0-de-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2538fd004ef1f5cfd3c68865cc225200ec4650fce02d758345f9f491aa99fee5
-size 499761
+oid sha256:0c20a895354c773031bef46c1a778ad71880dc42e7d37955609f56e9e40f9578
+size 499831
diff --git a/lib/search/indexes/github-docs-3.0-de.json.br b/lib/search/indexes/github-docs-3.0-de.json.br
index 9db729d843..7139172c0c 100644
--- a/lib/search/indexes/github-docs-3.0-de.json.br
+++ b/lib/search/indexes/github-docs-3.0-de.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:49c06c5d0f26bb42d2797c56fb4dcbfdad8b3856760452eb9fbb7fe37e14d167
-size 2232343
+oid sha256:8a2d152430503fee662621371dd12284298a51f9c1b2bb9bb84323673ee3da71
+size 2233318
diff --git a/lib/search/indexes/github-docs-3.0-en-records.json.br b/lib/search/indexes/github-docs-3.0-en-records.json.br
index 107fe60df3..cceb321940 100644
--- a/lib/search/indexes/github-docs-3.0-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.0-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:56eee7ffb97d071f93035c1e14e52107831f3b45af4ed351c941ed1796b0624e
-size 453365
+oid sha256:0b65336727234510f1853750584cc7e646b222207c9e1064273843ce7949b26e
+size 454366
diff --git a/lib/search/indexes/github-docs-3.0-en.json.br b/lib/search/indexes/github-docs-3.0-en.json.br
index c9b621d729..88076113cd 100644
--- a/lib/search/indexes/github-docs-3.0-en.json.br
+++ b/lib/search/indexes/github-docs-3.0-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6d8f2b68341c3ae80dbfbfe40d910816bbb99f141239672bbd70f035d9a5a60f
-size 1766262
+oid sha256:99d22e830d9eb19417dc853899b7622a775a2515f260213dfed8cd1556ef45c9
+size 1770358
diff --git a/lib/search/indexes/github-docs-3.0-es-records.json.br b/lib/search/indexes/github-docs-3.0-es-records.json.br
index d40791e8c1..0b9e0bf292 100644
--- a/lib/search/indexes/github-docs-3.0-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.0-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7e7f2780c8fe7c1aab0ed263ab293ce6d954bd417cb0ba3cc1f79698d8748bba
-size 193801
+oid sha256:381887558a887ab88eeee2ea6f065d9de8121cbbb52d0a9f7598351bab86f6ee
+size 193643
diff --git a/lib/search/indexes/github-docs-3.0-es.json.br b/lib/search/indexes/github-docs-3.0-es.json.br
index a7f025d90a..e6b5e0862b 100644
--- a/lib/search/indexes/github-docs-3.0-es.json.br
+++ b/lib/search/indexes/github-docs-3.0-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b810b4df4eee3953399f92c37951736bdc71eea7463222a321b3db333b31252b
-size 694352
+oid sha256:75ff34c5ac0dfb233a58633235e94567055d6b485b079e12fd7c04e8e1b31963
+size 694141
diff --git a/lib/search/indexes/github-docs-3.0-ja-records.json.br b/lib/search/indexes/github-docs-3.0-ja-records.json.br
index 4f1517d679..4a6ae8746f 100644
--- a/lib/search/indexes/github-docs-3.0-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.0-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:53e7f463b04033d32c3996b0212503d4b199da02c3d14499b3472e1f080b2398
-size 567804
+oid sha256:13db5065563e7c411417ce929f12a5b8e1a7e0cc496d9625d5d7edcfc9f9fd7b
+size 567793
diff --git a/lib/search/indexes/github-docs-3.0-ja.json.br b/lib/search/indexes/github-docs-3.0-ja.json.br
index af9f1926e3..9950749a1f 100644
--- a/lib/search/indexes/github-docs-3.0-ja.json.br
+++ b/lib/search/indexes/github-docs-3.0-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:49a2a706283a54b8f878a9edde25b3be6504d32447b32558994a6db17ac320dc
-size 3007018
+oid sha256:830257244057a240973d359a65c6d158c8cbae3ba19c258a96ad1ab5b639f519
+size 3006791
diff --git a/lib/search/indexes/github-docs-3.0-pt-records.json.br b/lib/search/indexes/github-docs-3.0-pt-records.json.br
index 8ca7cf4643..0e170cbd78 100644
--- a/lib/search/indexes/github-docs-3.0-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.0-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d081c90eb2aaaff60ebc80549e72734df6b03f03baa8b53d0a62255be77e56d7
-size 477490
+oid sha256:da8a07bac1f10ffb60faade6dd75d463fc44adaf6531a9e512535bb9b1c38a9e
+size 477774
diff --git a/lib/search/indexes/github-docs-3.0-pt.json.br b/lib/search/indexes/github-docs-3.0-pt.json.br
index 25eb9d11f4..83dbfd1fcd 100644
--- a/lib/search/indexes/github-docs-3.0-pt.json.br
+++ b/lib/search/indexes/github-docs-3.0-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6b12f9dd29b19b36445a09b1b82727c09d98c315c7ba89e3cd83a021314062d2
-size 1994090
+oid sha256:9b42e4655d11f80a00fb3fb4eb240f1374ccc250236a2fe854d80067604bcd94
+size 1992967
diff --git a/lib/search/indexes/github-docs-3.1-cn-records.json.br b/lib/search/indexes/github-docs-3.1-cn-records.json.br
index a128c18ff8..fad1384afb 100644
--- a/lib/search/indexes/github-docs-3.1-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.1-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6ad305dc09e9a22d000b29a82e3f8fb9946d1ae5e74049de10dccf3b9e929f94
-size 557425
+oid sha256:1d512b1586e7941b60676c79f45c15448d3fbdf3e83fb9223a26efffab2d5b52
+size 557226
diff --git a/lib/search/indexes/github-docs-3.1-cn.json.br b/lib/search/indexes/github-docs-3.1-cn.json.br
index 6b14f3b380..2887707f6a 100644
--- a/lib/search/indexes/github-docs-3.1-cn.json.br
+++ b/lib/search/indexes/github-docs-3.1-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1e17dfd64c1d3e9de9fffc1f478ec4c7664799b03ec7405a6eec3cb212a6f573
-size 929718
+oid sha256:8ff0910c159473bcbd81b0e2d3d5570f965014fefac70407c24ceccb26210575
+size 929514
diff --git a/lib/search/indexes/github-docs-3.1-de-records.json.br b/lib/search/indexes/github-docs-3.1-de-records.json.br
index 9f3e6eb6aa..f005d47874 100644
--- a/lib/search/indexes/github-docs-3.1-de-records.json.br
+++ b/lib/search/indexes/github-docs-3.1-de-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ce036cc17ecb858f5256716d97332d6048f7b4c61250ffa5d061bd6b3bb1e9d8
-size 508542
+oid sha256:94c902ad1041c8c7ebfd51ae7cb5b46a3dde2b001015cd6a20ba97955a691768
+size 508442
diff --git a/lib/search/indexes/github-docs-3.1-de.json.br b/lib/search/indexes/github-docs-3.1-de.json.br
index 5af46db205..f3382ad3cd 100644
--- a/lib/search/indexes/github-docs-3.1-de.json.br
+++ b/lib/search/indexes/github-docs-3.1-de.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6ce66bf59df88391d0438292bc4fc0a01581f77de1e1696df20d2de53401e373
-size 2284813
+oid sha256:872f680f8c046ccb4343a7c898b34da2cfbb9895d287455a1be5ad61246c9718
+size 2284994
diff --git a/lib/search/indexes/github-docs-3.1-en-records.json.br b/lib/search/indexes/github-docs-3.1-en-records.json.br
index a157e97a2a..28c7bbdbc9 100644
--- a/lib/search/indexes/github-docs-3.1-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.1-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c750dddeba3fa6917a5fb899b98a0abfe15ab92e8740dafdae885c999756775e
-size 461953
+oid sha256:03d369d4bd85ec18910eb860d55177c1c3774dd6e7a4c69f9fcef294d96aaa48
+size 463859
diff --git a/lib/search/indexes/github-docs-3.1-en.json.br b/lib/search/indexes/github-docs-3.1-en.json.br
index 2c9f6d9811..33e9b93803 100644
--- a/lib/search/indexes/github-docs-3.1-en.json.br
+++ b/lib/search/indexes/github-docs-3.1-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3293fa50b36d8c39712d1f315282099702cdceddd51daf619c97a59c016a6583
-size 1804852
+oid sha256:21e93451edfd6e0259708ebf5019c4ab3961a86d27b476be7f3abc174f1e9527
+size 1812535
diff --git a/lib/search/indexes/github-docs-3.1-es-records.json.br b/lib/search/indexes/github-docs-3.1-es-records.json.br
index 3af8c55364..6fffc5bbf1 100644
--- a/lib/search/indexes/github-docs-3.1-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.1-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5f649f668c7a78318efdf0af749846e2cd8dbda4bffaeb86a32ced1b1a42b682
-size 193642
+oid sha256:896e15b7efeb807130a22783de6e558e67201c193ce0fde2386923a4d5184b95
+size 193540
diff --git a/lib/search/indexes/github-docs-3.1-es.json.br b/lib/search/indexes/github-docs-3.1-es.json.br
index f04cc7902d..73c08128e5 100644
--- a/lib/search/indexes/github-docs-3.1-es.json.br
+++ b/lib/search/indexes/github-docs-3.1-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6384445ec50d97e6536e86ec01f3e981daa0256d0bf4cba56fb42e7d18631773
-size 694106
+oid sha256:a015714ec55e3e4821b0923a0216020c818288698435879d1cc3d4dfa3e8b50a
+size 694423
diff --git a/lib/search/indexes/github-docs-3.1-ja-records.json.br b/lib/search/indexes/github-docs-3.1-ja-records.json.br
index 1bef4f75c6..2fa8fea8d6 100644
--- a/lib/search/indexes/github-docs-3.1-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.1-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:fdc13a433adfde9df018da3d98ac4a273499d50226ba3a3ae81bbfcef28542f5
-size 579765
+oid sha256:a770adc6824f5d4566565ba357b5a7a378f147d841066752e73844ecfeacd586
+size 580094
diff --git a/lib/search/indexes/github-docs-3.1-ja.json.br b/lib/search/indexes/github-docs-3.1-ja.json.br
index f908bfb3ee..5380d33e76 100644
--- a/lib/search/indexes/github-docs-3.1-ja.json.br
+++ b/lib/search/indexes/github-docs-3.1-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:58ee435f8493df69e0db01590a338af6dcc046c1129f609a754c3d45fa2be3e4
-size 3073608
+oid sha256:ceeec88fda25e7c3f310ff1990baf58823741824ceab10ba8d6c9d2cdb34edc7
+size 3072510
diff --git a/lib/search/indexes/github-docs-3.1-pt-records.json.br b/lib/search/indexes/github-docs-3.1-pt-records.json.br
index c05eaffade..ae743f63c2 100644
--- a/lib/search/indexes/github-docs-3.1-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.1-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7e258eaf818c974da57c5d348359e5e20e222bda61be8d0fa945ebcbacaa8fb4
-size 487223
+oid sha256:f0aa4cb115f2ab08c24756c2ce5e38e542b7371d0bc11a911e6362f7c1ede9f5
+size 487123
diff --git a/lib/search/indexes/github-docs-3.1-pt.json.br b/lib/search/indexes/github-docs-3.1-pt.json.br
index a24230e93f..6b2713ffd7 100644
--- a/lib/search/indexes/github-docs-3.1-pt.json.br
+++ b/lib/search/indexes/github-docs-3.1-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f018d3a08a09c4e708c94477cad1e50e0a6424ae5773b9f4e0b9ae5f0b40af7b
-size 2036343
+oid sha256:1e6ed5430ca7aa77ee13adb3404686c86d54881c992fc088506e8c4d61ad96a7
+size 2036578
diff --git a/lib/search/indexes/github-docs-3.2-cn-records.json.br b/lib/search/indexes/github-docs-3.2-cn-records.json.br
index c17b93585d..e2cdc5cf9f 100644
--- a/lib/search/indexes/github-docs-3.2-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f639e18af0f10e4d3e3fd3a75e0e865cb0bcca1b30acaa3a92adc2d9da8bcef1
-size 567991
+oid sha256:95b0dea98634e73a367c5a996efee5d074ea4c9532e995324859934f10fdfa77
+size 567912
diff --git a/lib/search/indexes/github-docs-3.2-cn.json.br b/lib/search/indexes/github-docs-3.2-cn.json.br
index fcbfe33c50..3714fdb488 100644
--- a/lib/search/indexes/github-docs-3.2-cn.json.br
+++ b/lib/search/indexes/github-docs-3.2-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7c51adeb90f772f779ee9d07c0c264faadd64f3410f1d4dc4e035db558fedfe2
-size 948883
+oid sha256:53965723cf3eb62717258ba27b13852883883644ace994c09f0aa3cb15d4b92f
+size 949327
diff --git a/lib/search/indexes/github-docs-3.2-de-records.json.br b/lib/search/indexes/github-docs-3.2-de-records.json.br
index 3ce26fa3cb..ef5066fee2 100644
--- a/lib/search/indexes/github-docs-3.2-de-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-de-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:55ced6f594891748c1f9b12d300b9c25a36a08bcb93124fb4528423c8e4d7436
-size 517640
+oid sha256:3b02c6f44d094d3ec613c0446f7b89a9847543739cc4ccc6cc810546ec81dd3b
+size 517551
diff --git a/lib/search/indexes/github-docs-3.2-de.json.br b/lib/search/indexes/github-docs-3.2-de.json.br
index e632111094..9e24d03f5b 100644
--- a/lib/search/indexes/github-docs-3.2-de.json.br
+++ b/lib/search/indexes/github-docs-3.2-de.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e98505a08a7aa99326182d580fd8e74505c550a825ba6751594f6c5886d8f635
-size 2332458
+oid sha256:da9c6d7c6d466c873fbf77a1693558bff9c7a7de1336965bd78aedb8dceab87b
+size 2333338
diff --git a/lib/search/indexes/github-docs-3.2-en-records.json.br b/lib/search/indexes/github-docs-3.2-en-records.json.br
index c712fd50e4..2953cd75b1 100644
--- a/lib/search/indexes/github-docs-3.2-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:752e411b9781f6ed04421e84bbf5e7ea7b59484317056cac327f4a3c70cb6de1
-size 470578
+oid sha256:d1c7b5d13418d044092a7417d9b81210f36097bd9030046ca2aaac9ec5a13ccb
+size 473061
diff --git a/lib/search/indexes/github-docs-3.2-en.json.br b/lib/search/indexes/github-docs-3.2-en.json.br
index 21f684736a..0ac59d92ad 100644
--- a/lib/search/indexes/github-docs-3.2-en.json.br
+++ b/lib/search/indexes/github-docs-3.2-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b580446492439c10830e82df784b9ae51ebd99d0e9dfc84c4e2e6bd35091179e
-size 1837601
+oid sha256:e75e80c234cbfb133a07e96d047e440e3cd7ef368193db8483a90e0f94ad5ee7
+size 1845906
diff --git a/lib/search/indexes/github-docs-3.2-es-records.json.br b/lib/search/indexes/github-docs-3.2-es-records.json.br
index c11d05e3f4..66b6b278cf 100644
--- a/lib/search/indexes/github-docs-3.2-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d8b1e5f442286f359edae735cb5aa734715092f91c0bf9b5f451966e8a86cc9d
-size 193623
+oid sha256:c5f429c0eff0d728ec86c2784ec19de96f6f760dda78d37f8259508fa952e66a
+size 193583
diff --git a/lib/search/indexes/github-docs-3.2-es.json.br b/lib/search/indexes/github-docs-3.2-es.json.br
index f9f83187ca..7bcde23a92 100644
--- a/lib/search/indexes/github-docs-3.2-es.json.br
+++ b/lib/search/indexes/github-docs-3.2-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:dcee8f4de2c5c68ec0398ab42b56fa260dd221b74b2d8af1479867483fd04866
-size 694265
+oid sha256:f083c61311a0ae26db97c28585fb686126445928d3f6e68986680592974d40d4
+size 694093
diff --git a/lib/search/indexes/github-docs-3.2-ja-records.json.br b/lib/search/indexes/github-docs-3.2-ja-records.json.br
index 782f66755a..7a97ee02bf 100644
--- a/lib/search/indexes/github-docs-3.2-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:21e91105029496724f2f82ba2000ba65eaa5329bed583b4e7f2c11d39f497942
+oid sha256:bd9253aa403d5c6324cd5838da73a28bab808d62cd07922bb8a0eb94ee5e4da3
size 590355
diff --git a/lib/search/indexes/github-docs-3.2-ja.json.br b/lib/search/indexes/github-docs-3.2-ja.json.br
index 06cd24fe66..bb276cac6b 100644
--- a/lib/search/indexes/github-docs-3.2-ja.json.br
+++ b/lib/search/indexes/github-docs-3.2-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6e61b40d7c866e660e30b09ec1a575f9f1388b211c75c2968e418890aacc9ca6
-size 3139802
+oid sha256:60c29f7b7b1e2730d5063f48c6eaedcaae2b38e2fec5789e80cc16a22ac2d982
+size 3140788
diff --git a/lib/search/indexes/github-docs-3.2-pt-records.json.br b/lib/search/indexes/github-docs-3.2-pt-records.json.br
index 33d1b16070..0ec532309d 100644
--- a/lib/search/indexes/github-docs-3.2-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:09f632ae8796b8f5c1845c89d319935a188a1641f1ab65cb05a0e9f91c6c6c2e
-size 496563
+oid sha256:37a9b2c8f18a2d8163041648f73285fa9e065efb9474fedea78c8e0a0d0aa748
+size 496782
diff --git a/lib/search/indexes/github-docs-3.2-pt.json.br b/lib/search/indexes/github-docs-3.2-pt.json.br
index a5cfe1d4e0..c5fb9c3461 100644
--- a/lib/search/indexes/github-docs-3.2-pt.json.br
+++ b/lib/search/indexes/github-docs-3.2-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8d67d4d22c177a7b0ba24ffe243b9d62773710ac68fdf65235eef18435504438
-size 2078064
+oid sha256:e78bfd1a0489d427e4fe10ae0b66be7fecf2c82cc70c7dbc20306c507602c88c
+size 2078189
diff --git a/lib/search/indexes/github-docs-dotcom-cn-records.json.br b/lib/search/indexes/github-docs-dotcom-cn-records.json.br
index fe60285cca..ca940e3676 100644
--- a/lib/search/indexes/github-docs-dotcom-cn-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:41b1cc4a802ea385979c392523bf971cc7c3ec938b1e9204caafe571c158dcbc
-size 770867
+oid sha256:dbba76510532bcca514a0571b873266e3173c34d3a80fc6e69105bda4d8e235a
+size 770677
diff --git a/lib/search/indexes/github-docs-dotcom-cn.json.br b/lib/search/indexes/github-docs-dotcom-cn.json.br
index b23e202ef7..106a9715dc 100644
--- a/lib/search/indexes/github-docs-dotcom-cn.json.br
+++ b/lib/search/indexes/github-docs-dotcom-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a794aad29a10a55d1808133f201af9a84120baab06aa5ca6528b561ec0e02191
-size 1171975
+oid sha256:af5261366dfc8064f5f7c24e93daa6bd9b2b4608f509403ddb4b3e3f9f3c5e3a
+size 1171668
diff --git a/lib/search/indexes/github-docs-dotcom-de-records.json.br b/lib/search/indexes/github-docs-dotcom-de-records.json.br
index 5478b99f74..78bf80982c 100644
--- a/lib/search/indexes/github-docs-dotcom-de-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-de-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8b7204fc53e0fb66bfa17ec8146182d5e9a101f0ce7f79bd69097184a1a2d81d
-size 690488
+oid sha256:435f9b7f25680d018be16e203d1a8d1a9a74b62e7e1f5da42da5b663a3e6a960
+size 690829
diff --git a/lib/search/indexes/github-docs-dotcom-de.json.br b/lib/search/indexes/github-docs-dotcom-de.json.br
index 53150bdb28..53725154ce 100644
--- a/lib/search/indexes/github-docs-dotcom-de.json.br
+++ b/lib/search/indexes/github-docs-dotcom-de.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cdc586417bb82419c73bb97e06f053dc67c3b1a6545b85a65d4927c54f13f222
-size 3124134
+oid sha256:7e75aed9fd4784ea18f0563e3645f64175a02a4f0cb1032a9d39cc9fcbcd1a93
+size 3124197
diff --git a/lib/search/indexes/github-docs-dotcom-en-records.json.br b/lib/search/indexes/github-docs-dotcom-en-records.json.br
index fccd06127c..b0461c434b 100644
--- a/lib/search/indexes/github-docs-dotcom-en-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:323cdec00093da4bdae83801ff99b25c14675130a5c39775e13b3e24a360fb19
-size 636380
+oid sha256:18cf61a2a93ac5ab8c95bb09b0ebbc1f5e0a6b78ea8f982e0d46635e3c289225
+size 638388
diff --git a/lib/search/indexes/github-docs-dotcom-en.json.br b/lib/search/indexes/github-docs-dotcom-en.json.br
index 60efc10f50..ff2641e28c 100644
--- a/lib/search/indexes/github-docs-dotcom-en.json.br
+++ b/lib/search/indexes/github-docs-dotcom-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f65f5e0c97318bbcbb572029d65958af88acbc6fe91a3be1eeb43bd1fd5f549a
-size 2419325
+oid sha256:2820521d662d1faf21c08fe8e6d4fd39ad3697c057b667224678ca214de47d88
+size 2425532
diff --git a/lib/search/indexes/github-docs-dotcom-es-records.json.br b/lib/search/indexes/github-docs-dotcom-es-records.json.br
index e12956fb21..4296dd130e 100644
--- a/lib/search/indexes/github-docs-dotcom-es-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ad355cc33f19caa65db451708b90aa3ff71fc0166360a9c38a53e414977ae625
-size 205209
+oid sha256:20d70f7b63ea7753e68286568eb1054dcb7579781258aeb45dedab6f076f7222
+size 205293
diff --git a/lib/search/indexes/github-docs-dotcom-es.json.br b/lib/search/indexes/github-docs-dotcom-es.json.br
index a73a3fbe10..ea9e3d49fa 100644
--- a/lib/search/indexes/github-docs-dotcom-es.json.br
+++ b/lib/search/indexes/github-docs-dotcom-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c12de3c0ef9cea4bbb7a44032b810970f11c8d3a7a4aa64ae65030cf97251d10
-size 651254
+oid sha256:a04ffde15e4536b740b02ec316e4b210d20161983ad51e82820062f77c10bd61
+size 651203
diff --git a/lib/search/indexes/github-docs-dotcom-ja-records.json.br b/lib/search/indexes/github-docs-dotcom-ja-records.json.br
index bd021062c0..e60fae11da 100644
--- a/lib/search/indexes/github-docs-dotcom-ja-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:40d34b94f1e8c1bc486057b29de0d0f17d58b022f4fdc0a17ff1ae338ed6424f
-size 795235
+oid sha256:572858cc3fc8f8193941590d32452a67b6b6bd4898367f604362ad0abb3d7330
+size 795275
diff --git a/lib/search/indexes/github-docs-dotcom-ja.json.br b/lib/search/indexes/github-docs-dotcom-ja.json.br
index ec82f6651f..d55f7a92e3 100644
--- a/lib/search/indexes/github-docs-dotcom-ja.json.br
+++ b/lib/search/indexes/github-docs-dotcom-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:29580572fcd363168719010f2d06a067a6b2dbe718fe2fc33bae7c995936f5d9
-size 4151082
+oid sha256:812e58710708c3284778207e2957bb46d723ff4cdc3659cfc668387d46fe48e7
+size 4152194
diff --git a/lib/search/indexes/github-docs-dotcom-pt-records.json.br b/lib/search/indexes/github-docs-dotcom-pt-records.json.br
index b063ef0e29..f009c6fcca 100644
--- a/lib/search/indexes/github-docs-dotcom-pt-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8a8cc3dcdbb5fb8cee6db148f34387dd04e97de205d2700b70fc170529c98fa6
-size 669799
+oid sha256:0b285fc56dc2458f5d9f99f1123efa3e56fb2a7350b796a380ca701a88db5547
+size 669547
diff --git a/lib/search/indexes/github-docs-dotcom-pt.json.br b/lib/search/indexes/github-docs-dotcom-pt.json.br
index 1c9885199a..d4d7b5c126 100644
--- a/lib/search/indexes/github-docs-dotcom-pt.json.br
+++ b/lib/search/indexes/github-docs-dotcom-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f5c0ebf0a075601dda156efd63cc7bdb3df318c080ace8106321ab59836623e8
-size 2751097
+oid sha256:094cd6dfcd6d1316d656ae5a338f65c2bc122509a3100144d7358edcbf313bfe
+size 2750654
diff --git a/lib/search/indexes/github-docs-ghae-cn-records.json.br b/lib/search/indexes/github-docs-ghae-cn-records.json.br
index 91516a9813..ba723e24b0 100644
--- a/lib/search/indexes/github-docs-ghae-cn-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ff85b5a41019647a259e6119e47d190de59b75eade046eafeec6d50da93f89c0
-size 433797
+oid sha256:03b2de718fdfbd38eca4e51923c46a7853e00fbd206e3cbba000b42cdffbe0ee
+size 433784
diff --git a/lib/search/indexes/github-docs-ghae-cn.json.br b/lib/search/indexes/github-docs-ghae-cn.json.br
index 142d187151..8dfda342c7 100644
--- a/lib/search/indexes/github-docs-ghae-cn.json.br
+++ b/lib/search/indexes/github-docs-ghae-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e0b1fe3d194bc281c8e8189f701c5ef16311860228da5531ed5d4f3642b2aae5
-size 691631
+oid sha256:562edbd618b30aa2ddd9a79f8ef97f4517d70a5f66225131dcab46e8a3a7db1c
+size 691775
diff --git a/lib/search/indexes/github-docs-ghae-de-records.json.br b/lib/search/indexes/github-docs-ghae-de-records.json.br
index 804df307ee..5370bfd14e 100644
--- a/lib/search/indexes/github-docs-ghae-de-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-de-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1c3acd02c1ad6e26b25aa43f22fe451be9e655f3ec70b7ade4dba271b210b578
-size 400644
+oid sha256:c4aa25ada1d941f08ec2667534d59ba011cf460a97243aa3082be59d1105abfe
+size 400733
diff --git a/lib/search/indexes/github-docs-ghae-de.json.br b/lib/search/indexes/github-docs-ghae-de.json.br
index 2d70589e49..154a0b81ba 100644
--- a/lib/search/indexes/github-docs-ghae-de.json.br
+++ b/lib/search/indexes/github-docs-ghae-de.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f01ae7c51133cefaeabcc5fb247eecbe0e4b043080d072675eb47b2817660f7a
-size 1741820
+oid sha256:23b5804a2a0a61d9c44069361d76ba6fab20acacc6df748bf4d8e91c001ab6be
+size 1741615
diff --git a/lib/search/indexes/github-docs-ghae-en-records.json.br b/lib/search/indexes/github-docs-ghae-en-records.json.br
index 5c5e1ea8da..7612efd3fb 100644
--- a/lib/search/indexes/github-docs-ghae-en-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:63a3ca75e3ea6f44d5ac0169b55819db81f8b158b2e7aec5ccd2c2accaf0fd88
-size 363656
+oid sha256:ccfb09dd97f0967068399a54475e75f9bac5a414c1e3137fb5f0dc0b6a9bb4a7
+size 365156
diff --git a/lib/search/indexes/github-docs-ghae-en.json.br b/lib/search/indexes/github-docs-ghae-en.json.br
index 1ef63562fc..59e204f6dc 100644
--- a/lib/search/indexes/github-docs-ghae-en.json.br
+++ b/lib/search/indexes/github-docs-ghae-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4eb922c2cfcc1b9382b172d0445472d523dad84af79351071ca4f1c5394af924
-size 1350074
+oid sha256:d5cdbbe6a933aabaa47f612e0e1fbc51285342909bd7c71709a7e79ae79722c4
+size 1357180
diff --git a/lib/search/indexes/github-docs-ghae-es-records.json.br b/lib/search/indexes/github-docs-ghae-es-records.json.br
index b39844cbf9..57f8cba730 100644
--- a/lib/search/indexes/github-docs-ghae-es-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:24bf7b1e7f067e5f4b5e5def8ca72a70b7776d7dd313f9452e4a4afa3cc2992d
-size 130867
+oid sha256:1eee233fee9d4b39d047fcbe78de25572dc79b2130ee5acd92f156b29eb618a4
+size 130844
diff --git a/lib/search/indexes/github-docs-ghae-es.json.br b/lib/search/indexes/github-docs-ghae-es.json.br
index 61a083f55d..c136424517 100644
--- a/lib/search/indexes/github-docs-ghae-es.json.br
+++ b/lib/search/indexes/github-docs-ghae-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0427921a031e7a4818cf35f23ff90595f3a7e9b700c7e1baf55395cd5dabff3c
-size 420360
+oid sha256:30e8db1adde46c43a1a2a3b1b9812cbf579372239d77b0c56aa1e0f06c870ef2
+size 420194
diff --git a/lib/search/indexes/github-docs-ghae-ja-records.json.br b/lib/search/indexes/github-docs-ghae-ja-records.json.br
index 602e60d439..578347a0ae 100644
--- a/lib/search/indexes/github-docs-ghae-ja-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f8e34654c36fe982b2a05825d77310caf5cd0000a3ece7769059a15bb70c3cd3
-size 453099
+oid sha256:ce4a3e7f15f97a15fd8003e87a31df96f7c777f02913fb715309479d0124fd3b
+size 453267
diff --git a/lib/search/indexes/github-docs-ghae-ja.json.br b/lib/search/indexes/github-docs-ghae-ja.json.br
index e1a588062c..90e68c0cbc 100644
--- a/lib/search/indexes/github-docs-ghae-ja.json.br
+++ b/lib/search/indexes/github-docs-ghae-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:fb8ce68ccb3db93c28b0234576db6b80d7987aeeafb74d3f7454698984a062fb
-size 2297222
+oid sha256:6cb4067faa93f9eff4f77cb58f3100074d1a69b7553441d507c82a4df22aa9af
+size 2296599
diff --git a/lib/search/indexes/github-docs-ghae-pt-records.json.br b/lib/search/indexes/github-docs-ghae-pt-records.json.br
index 7602050eb4..aaec192b20 100644
--- a/lib/search/indexes/github-docs-ghae-pt-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:501dfc39d329958d1e77c2c06717cc96a2edd3cce11b3bc057da7f432c3383c0
-size 385061
+oid sha256:beaec88c733fd136f5be4b66e69de1f8bba9b3984a64d34ed2ae18d48708498f
+size 384998
diff --git a/lib/search/indexes/github-docs-ghae-pt.json.br b/lib/search/indexes/github-docs-ghae-pt.json.br
index dd84a8ffc9..36a8476da8 100644
--- a/lib/search/indexes/github-docs-ghae-pt.json.br
+++ b/lib/search/indexes/github-docs-ghae-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:97a5632936885ea1f7b31e15bd23d1e2fcba13f8a04cd66954535e332d03a77b
-size 1536660
+oid sha256:f619a27417bfef3dfb63fbfdf196f4c8594c32262a19109adc948e5330983103
+size 1536994
diff --git a/script/deploy.js b/script/deploy.js
index 5c19c0a819..98eea665d9 100755
--- a/script/deploy.js
+++ b/script/deploy.js
@@ -158,11 +158,9 @@ async function deployProduction() {
const { HEROKU_PRODUCTION_APP_NAME, DOCUBOT_REPO_PAT, FASTLY_TOKEN, FASTLY_SERVICE_ID } =
process.env
- // Warn if Heroku App name is not found
+ // Exit if Heroku App name is not found
if (!HEROKU_PRODUCTION_APP_NAME) {
- console.warn(
- '⚠️ You did not supply a HEROKU_PRODUCTION_APP_NAME environment variable.\nWithout it, this deployment will not end up in our production environment!'
- )
+ throw new Error('You must supply a HEROKU_PRODUCTION_APP_NAME environment variable!')
}
// Warn if @docubot PAT is not found
diff --git a/script/deployment/create-app.js b/script/deployment/create-app.js
deleted file mode 100644
index 6d60058394..0000000000
--- a/script/deployment/create-app.js
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/usr/bin/env node
-import Heroku from 'heroku-client'
-import createAppName from './create-staging-app-name.js'
-
-export default async function createApp(pullRequest) {
- // Extract some important properties from the PR
- const {
- number: pullNumber,
- base: {
- repo: {
- name: repo,
- owner: { login: owner },
- },
- },
- head: { ref: branch },
- user: author,
- } = pullRequest
-
- const appName = createAppName({ prefix: 'ghd', repo, pullNumber, branch })
-
- // Put together application configuration variables
- const isPrivateRepo = owner === 'github' && repo === 'docs-internal'
- const { HYDRO_ENDPOINT, HYDRO_SECRET } = process.env
- const appConfigVars = {
- // These values are usually set in app.json but we need to set them
- // ourselves for Docker image deployment.
- NODE_ENV: 'production',
- ENABLED_LANGUAGES: 'en',
- WEB_CONCURRENCY: '1',
- // IMPORTANT: These secrets should only be set in the private repo!
- // These are required for Hydro event tracking
- ...(isPrivateRepo && HYDRO_ENDPOINT && HYDRO_SECRET && { HYDRO_ENDPOINT, HYDRO_SECRET }),
- }
-
- // Check if there's already a Heroku App for this PR, if not create one
- let appExists = true
- const heroku = new Heroku({ token: process.env.HEROKU_API_TOKEN })
-
- try {
- await heroku.get(`/apps/${appName}`)
- } catch (error) {
- announceIfHerokuIsDown(error)
- appExists = false
- }
-
- if (!appExists) {
- try {
- const newApp = await heroku.post('/apps', {
- body: {
- name: appName,
- },
- })
-
- console.log('Heroku App created', newApp)
- } catch (error) {
- announceIfHerokuIsDown(error)
- throw new Error(`Failed to create Heroku App ${appName}. Error: ${error}`)
- }
-
- // Add PR author (if staff) as a collaborator on the new staging app
- try {
- if (author.site_admin === true) {
- await heroku.post(`/apps/${appName}/collaborators`, {
- body: {
- user: `${author.login}@github.com`,
- // We don't want an email invitation for every new staging app
- silent: true,
- },
- })
- console.log(`Added PR author @${author.login} as a Heroku app collaborator`)
- }
- } catch (error) {
- announceIfHerokuIsDown(error)
- // It's fine if this fails, it shouldn't block the app from deploying!
- console.warn(`Warning: failed to add PR author as a Heroku app collaborator. Error: ${error}`)
- }
- } else {
- console.log(`Heroku App ${appName} already exists.`)
- }
-
- // Set/reconfigure environment variables
- // https://devcenter.heroku.com/articles/platform-api-reference#config-vars-update
- try {
- await heroku.patch(`/apps/${appName}/config-vars`, {
- body: appConfigVars,
- })
- } catch (error) {
- announceIfHerokuIsDown(error)
- throw new Error(`Failed to update Heroku app configuration variables. Error: ${error}`)
- }
-
- return appName
-}
-
-function announceIfHerokuIsDown(error) {
- if (error && error.statusCode === 503) {
- console.error('💀 Heroku may be down! Please check its Status page: https://status.heroku.com/')
- }
-}
diff --git a/script/deployment/create-staging-app-name.js b/script/deployment/create-staging-app-name.js
index 8cb3076adc..cee33514bc 100644
--- a/script/deployment/create-staging-app-name.js
+++ b/script/deployment/create-staging-app-name.js
@@ -3,9 +3,9 @@ const slugify = GithubSlugger.slug
const APP_NAME_MAX_LENGTH = 30
-export default function ({ prefix = 'gha', repo, pullNumber, branch }) {
+export default function ({ prefix = '', repo, pullNumber, branch }) {
return (
- `${prefix}-${repo}-${pullNumber}--${slugify(branch)}`
+ `${prefix}${repo}-${pullNumber}--${slugify(branch)}`
// Shorten the string to the max allowed length
.slice(0, APP_NAME_MAX_LENGTH)
// Convert underscores to dashes
diff --git a/script/deployment/deploy-to-production.js b/script/deployment/deploy-to-production.js
index 408bae4c91..4014ed4226 100755
--- a/script/deployment/deploy-to-production.js
+++ b/script/deployment/deploy-to-production.js
@@ -64,16 +64,9 @@ export default async function deployToProduction({
let deploymentId = null
let logUrl = workflowRunLog
- let appName, environment, homepageUrl
- if (process.env.HEROKU_PRODUCTION_APP_NAME) {
- appName = process.env.HEROKU_PRODUCTION_APP_NAME
- environment = 'production'
- homepageUrl = 'https://docs.github.com/'
- } else {
- appName = 'help-docs-prod-gha'
- environment = appName
- homepageUrl = `https://${appName}.herokuapp.com/`
- }
+ const appName = process.env.HEROKU_PRODUCTION_APP_NAME
+ const environment = 'production'
+ const homepageUrl = 'https://docs.github.com/'
try {
const title = `branch '${branch}' at commit '${sha}' in the '${environment}' environment`