@@ -73,6 +73,12 @@ The following example timeline demonstrates how active committer count for {% da
|
||||
| <nobr>August 15</nobr> | A member of your enterprise enables {% data variables.product.prodname_GH_advanced_security %} for a second repository, repository **Y**. In the last 90 days, a total of 20 developers contributed to that repository. Of those 20 developers, 10 also recently worked on repo **X** and do not require additional licenses. | <sub>_49 + 10_</sub><br/>**59** |
|
||||
| <nobr>August 16</nobr> | A member of your enterprise disables {% data variables.product.prodname_GH_advanced_security %} for repository **X**. Of the 49 developers who were working on repository **X**, 10 still also work on repository **Y**, which has a total of 20 developers contributing in the last 90 days. | <sub>_49 - 29_</sub><br/>**20** |
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** A user will be flagged as active when their commits are pushed to any branch of a repository, even if the commits were authored more than 90 days ago.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
## Getting the most out of {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
{% data reusables.advanced-security.getting-the-most-from-your-license %}
|
||||
|
||||
@@ -1 +1,12 @@
|
||||
Each license for {% data variables.product.prodname_GH_advanced_security %} specifies a maximum number of accounts, or seats, that can use these features. Each active committer to at least one repository with the feature enabled uses one seat. An active committer is someone who authored at least one commit that was pushed to the repository in the last 90 days.
|
||||
Each license for {% data variables.product.prodname_GH_advanced_security %} specifies a maximum number of accounts, or seats, that can use these features. Each active committer to at least one repository with the feature enabled uses one seat. A committer is considered active if one of their commits has been pushed to the repository within the last 90 days, regardless of when it was originally authored.
|
||||
|
||||
{% note %}
|
||||
|
||||
**Note:** Active committers are calculated using both the commit author information and the timestamp for when the code was pushed to {% data variables.product.product_name %}.
|
||||
|
||||
- When a user pushes code to {% data variables.product.prodname_dotcom %}, every user who authored code in that push counts towards {% data variables.product.prodname_GH_advanced_security %} seats, even if the code is not new to {% data variables.product.prodname_dotcom %}.
|
||||
|
||||
- Users should always create branches from a recent base, or rebase them before pushing. This will ensure that users who have not committed in the last 90 days do not take up {% data variables.product.prodname_GH_advanced_security %} seats.
|
||||
|
||||
{% endnote %}
|
||||
|
||||
|
||||
@@ -51282,6 +51282,15 @@
|
||||
"rawType": "string",
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -51340,6 +51349,15 @@
|
||||
"rawType": "string",
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
{
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
}
|
||||
],
|
||||
"responses": [
|
||||
@@ -72682,6 +72700,15 @@
|
||||
"rawType": "string",
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -72731,6 +72758,15 @@
|
||||
"rawType": "string",
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
{
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
}
|
||||
],
|
||||
"responses": [
|
||||
@@ -90893,6 +90929,15 @@
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
"pull_request": {
|
||||
"required": [
|
||||
"pull_request_number",
|
||||
@@ -91046,6 +91091,15 @@
|
||||
"rawType": "string",
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91146,6 +91200,15 @@
|
||||
"rawDescription": "Working directory for this codespace",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
{
|
||||
"description": "<p>Time in minutes before codespace stops from inactivity</p>",
|
||||
"type": "integer",
|
||||
"name": "idle_timeout_minutes",
|
||||
"in": "body",
|
||||
"rawType": "integer",
|
||||
"rawDescription": "Time in minutes before codespace stops from inactivity",
|
||||
"childParamsGroups": []
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"pull_request_number",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -47127,13 +47127,13 @@
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "Shell",
|
||||
"source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.antiope-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/rerequest",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.antiope-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/rerequest</code></pre>"
|
||||
"source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/rerequest",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/rerequest</code></pre>"
|
||||
},
|
||||
{
|
||||
"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 mediaType: {\n previews: [\n 'antiope'\n ]\n }\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">check_run_id</span>: <span class=\"hljs-number\">42</span>,\n <span class=\"hljs-attr\">mediaType</span>: {\n <span class=\"hljs-attr\">previews</span>: [\n <span class=\"hljs-string\">'antiope'</span>\n ]\n }\n})\n</code></pre>"
|
||||
"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": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">check_run_id</span>: <span class=\"hljs-number\">42</span>\n})\n</code></pre>"
|
||||
}
|
||||
],
|
||||
"summary": "Rerequest a check run",
|
||||
@@ -47153,7 +47153,6 @@
|
||||
"subcategory": "runs",
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "antiope",
|
||||
"note": "The Checks API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2018-05-07-new-checks-api-public-beta/) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.antiope-preview+json\n```",
|
||||
"html": "<p>The Checks API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the <a href=\"https://developer.github.com/changes/2018-05-07-new-checks-api-public-beta/\">blog post</a> for full details. To access the API during the preview period, you must provide a custom <a href=\"https://docs.github.com/enterprise-server@3.3/rest/overview/media-types\">media type</a> in the <code>Accept</code> header:</p>\n<pre><code class=\"hljs language-shell\">application/vnd.github.antiope-preview+json</code></pre>"
|
||||
@@ -51652,13 +51651,13 @@
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "Shell",
|
||||
"source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.corsair-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.corsair-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'</code></pre>"
|
||||
"source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'</code></pre>"
|
||||
},
|
||||
{
|
||||
"lang": "JavaScript",
|
||||
"source": "await octokit.request('POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments', {\n owner: 'octocat',\n repo: 'hello-world',\n content_reference_id: 42,\n title: 'title',\n body: 'body',\n mediaType: {\n previews: [\n 'corsair'\n ]\n }\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">content_reference_id</span>: <span class=\"hljs-number\">42</span>,\n <span class=\"hljs-attr\">title</span>: <span class=\"hljs-string\">'title'</span>,\n <span class=\"hljs-attr\">body</span>: <span class=\"hljs-string\">'body'</span>,\n <span class=\"hljs-attr\">mediaType</span>: {\n <span class=\"hljs-attr\">previews</span>: [\n <span class=\"hljs-string\">'corsair'</span>\n ]\n }\n})\n</code></pre>"
|
||||
"source": "await octokit.request('POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments', {\n owner: 'octocat',\n repo: 'hello-world',\n content_reference_id: 42,\n title: 'title',\n body: 'body'\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">content_reference_id</span>: <span class=\"hljs-number\">42</span>,\n <span class=\"hljs-attr\">title</span>: <span class=\"hljs-string\">'title'</span>,\n <span class=\"hljs-attr\">body</span>: <span class=\"hljs-string\">'body'</span>\n})\n</code></pre>"
|
||||
}
|
||||
],
|
||||
"summary": "Create a content attachment",
|
||||
@@ -51714,7 +51713,6 @@
|
||||
"enabledForGitHubApps": true,
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "corsair",
|
||||
"note": "To access the Content Attachments API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.corsair-preview+json\n```",
|
||||
"html": "<p>To access the Content Attachments API during the preview period, you must provide a custom <a href=\"https://docs.github.com/enterprise-server@3.3/rest/overview/media-types\">media type</a> in the <code>Accept</code> header:</p>\n<pre><code class=\"hljs language-shell\">application/vnd.github.corsair-preview+json</code></pre>"
|
||||
@@ -76416,13 +76414,13 @@
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "Shell",
|
||||
"source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.baptiste-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.baptiste-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'</code></pre>"
|
||||
"source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'</code></pre>"
|
||||
},
|
||||
{
|
||||
"lang": "JavaScript",
|
||||
"source": "await octokit.request('POST /repos/{template_owner}/{template_repo}/generate', {\n template_owner: 'template_owner',\n template_repo: 'template_repo',\n name: 'name',\n mediaType: {\n previews: [\n 'baptiste'\n ]\n }\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{template_owner}/{template_repo}/generate'</span>, {\n <span class=\"hljs-attr\">template_owner</span>: <span class=\"hljs-string\">'template_owner'</span>,\n <span class=\"hljs-attr\">template_repo</span>: <span class=\"hljs-string\">'template_repo'</span>,\n <span class=\"hljs-attr\">name</span>: <span class=\"hljs-string\">'name'</span>,\n <span class=\"hljs-attr\">mediaType</span>: {\n <span class=\"hljs-attr\">previews</span>: [\n <span class=\"hljs-string\">'baptiste'</span>\n ]\n }\n})\n</code></pre>"
|
||||
"source": "await octokit.request('POST /repos/{template_owner}/{template_repo}/generate', {\n template_owner: 'template_owner',\n template_repo: 'template_repo',\n name: 'name'\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{template_owner}/{template_repo}/generate'</span>, {\n <span class=\"hljs-attr\">template_owner</span>: <span class=\"hljs-string\">'template_owner'</span>,\n <span class=\"hljs-attr\">template_repo</span>: <span class=\"hljs-string\">'template_repo'</span>,\n <span class=\"hljs-attr\">name</span>: <span class=\"hljs-string\">'name'</span>\n})\n</code></pre>"
|
||||
}
|
||||
],
|
||||
"summary": "Create a repository using a template",
|
||||
@@ -76510,7 +76508,6 @@
|
||||
"category": "repos",
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "baptiste",
|
||||
"note": "Creating and using repository templates is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types) in the `Accept` header:\n\n```shell\napplication/vnd.github.baptiste-preview+json\n```",
|
||||
"html": "<p>Creating and using repository templates is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom <a href=\"https://docs.github.com/enterprise-server@3.3/rest/overview/media-types\">media type</a> in the <code>Accept</code> header:</p>\n<pre><code class=\"hljs language-shell\">application/vnd.github.baptiste-preview+json</code></pre>"
|
||||
|
||||
@@ -57223,13 +57223,13 @@
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "Shell",
|
||||
"source": "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\"}}'",
|
||||
"html": "<pre><code class=\"hljs language-shell\">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\"}}'</code></pre>"
|
||||
"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": "<pre><code class=\"hljs language-shell\">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\"}}'</code></pre>"
|
||||
},
|
||||
{
|
||||
"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": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/pages'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">source</span>: {\n <span class=\"hljs-attr\">branch</span>: <span class=\"hljs-string\">'branch'</span>,\n <span class=\"hljs-attr\">path</span>: <span class=\"hljs-string\">'path'</span>\n },\n <span class=\"hljs-attr\">mediaType</span>: {\n <span class=\"hljs-attr\">previews</span>: [\n <span class=\"hljs-string\">'switcheroo'</span>\n ]\n }\n})\n</code></pre>"
|
||||
"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": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/pages'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">source</span>: {\n <span class=\"hljs-attr\">branch</span>: <span class=\"hljs-string\">'branch'</span>,\n <span class=\"hljs-attr\">path</span>: <span class=\"hljs-string\">'path'</span>\n }\n})\n</code></pre>"
|
||||
}
|
||||
],
|
||||
"summary": "Create a GitHub AE Pages site",
|
||||
@@ -57340,7 +57340,6 @@
|
||||
"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/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```",
|
||||
"html": "<p>Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the <a href=\"https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/\">blog post</a> preview for more details. To access the new endpoints during the preview period, you must provide a custom <a href=\"https://docs.github.com/github-ae@latest/rest/overview/media-types\">media type</a> in the <code>Accept</code> header:</p>\n<pre><code class=\"hljs language-shell\">application/vnd.github.switcheroo-preview+json</code></pre>"
|
||||
@@ -57728,13 +57727,13 @@
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "Shell",
|
||||
"source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages</code></pre>"
|
||||
"source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages",
|
||||
"html": "<pre><code class=\"hljs language-shell\">curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://{hostname}/api/v3/repos/octocat/hello-world/pages</code></pre>"
|
||||
},
|
||||
{
|
||||
"lang": "JavaScript",
|
||||
"source": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n mediaType: {\n previews: [\n 'machine-man'\n ]\n }\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'DELETE /repos/{owner}/{repo}/pages'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">mediaType</span>: {\n <span class=\"hljs-attr\">previews</span>: [\n <span class=\"hljs-string\">'machine-man'</span>\n ]\n }\n})\n</code></pre>"
|
||||
"source": "await octokit.request('DELETE /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world'\n})",
|
||||
"html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.<span class=\"hljs-title hljs-function\">request</span>(<span class=\"hljs-string\">'DELETE /repos/{owner}/{repo}/pages'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>\n})\n</code></pre>"
|
||||
}
|
||||
],
|
||||
"summary": "Delete a GitHub AE Pages site",
|
||||
@@ -57754,7 +57753,6 @@
|
||||
"subcategory": "pages",
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "machine-man",
|
||||
"note": "To access the API with your GitHub App, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` Header for your requests. ```shell application/vnd.github.machine-man-preview+json ```",
|
||||
"html": "<p>To access the API with your GitHub App, you must provide a custom <a href=\"https://docs.github.com/github-ae@latest/rest/overview/media-types\">media type</a> in the <code>Accept</code> Header for your requests. <code>shell application/vnd.github.machine-man-preview+json </code></p>"
|
||||
|
||||
@@ -187006,6 +187006,10 @@
|
||||
"working_directory": {
|
||||
"description": "Working directory for this codespace",
|
||||
"type": "string"
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "Time in minutes before codespace stops from inactivity",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -320559,6 +320563,10 @@
|
||||
"working_directory": {
|
||||
"description": "Working directory for this codespace",
|
||||
"type": "string"
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "Time in minutes before codespace stops from inactivity",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -390115,6 +390123,10 @@
|
||||
"working_directory": {
|
||||
"description": "Working directory for this codespace",
|
||||
"type": "string"
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "Time in minutes before codespace stops from inactivity",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -390154,6 +390166,10 @@
|
||||
"working_directory": {
|
||||
"description": "Working directory for this codespace",
|
||||
"type": "string"
|
||||
},
|
||||
"idle_timeout_minutes": {
|
||||
"description": "Time in minutes before codespace stops from inactivity",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -156590,7 +156590,6 @@
|
||||
"subcategory": "runs",
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "antiope",
|
||||
"note": "The Checks API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2018-05-07-new-checks-api-public-beta/) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.antiope-preview+json\n```"
|
||||
}
|
||||
@@ -190912,7 +190911,6 @@
|
||||
"enabledForGitHubApps": true,
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "corsair",
|
||||
"note": "To access the Content Attachments API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.corsair-preview+json\n```"
|
||||
}
|
||||
@@ -326591,7 +326589,6 @@
|
||||
"category": "repos",
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "baptiste",
|
||||
"note": "Creating and using repository templates is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types) in the `Accept` header:\n\n```shell\napplication/vnd.github.baptiste-preview+json\n```"
|
||||
}
|
||||
|
||||
@@ -237738,7 +237738,6 @@
|
||||
"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/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```"
|
||||
}
|
||||
@@ -238140,7 +238139,6 @@
|
||||
"subcategory": "pages",
|
||||
"previews": [
|
||||
{
|
||||
"required": true,
|
||||
"name": "machine-man",
|
||||
"note": "To access the API with your GitHub App, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` Header for your requests. ```shell application/vnd.github.machine-man-preview+json ```"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user