Adding a new subcategory for required workflows + Permission for GitH… (#33698)

Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
This commit is contained in:
Sanjana Bhat 2023-01-09 12:29:38 +05:30 коммит произвёл GitHub
Родитель 0e17f92559
Коммит bbad8e1ca7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
13 изменённых файлов: 22312 добавлений и 42 удалений

Просмотреть файл

@ -17,6 +17,7 @@ children:
- /cache
- /oidc
- /permissions
- /required-workflows
- /secrets
- /variables
- /self-hosted-runner-groups

Просмотреть файл

@ -0,0 +1,12 @@
---
title: GitHub Actions Required Workflows
allowTitleToDifferFromFilename: true
shortTitle: Required Workflows
intro: 'Use the REST API to access and configure required workflows in an organization in {% data variables.product.prodname_actions %}.'
topics:
- API
versions:
fpt: '*'
ghec: '*'
ghes: '>=3.8'
---

Просмотреть файл

@ -58,7 +58,9 @@ shortTitle: GitHub App permissions
- [`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`](/rest/reference/actions#create-a-workflow-dispatch-event) (write)
- [`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`](/rest/reference/actions#enable-a-workflow) (write)
{% ifversion fpt or ghec or ghae %}- [`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`](/rest/reference/actions#get-workflow-usage) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.8 %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs`](/rest/actions/workflow-runs#list-workflow-runs-for-a-required-workflow) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing`](/rest/actions/required-workflows#get-required-workflow-usage) (read){% endif %}
{%- ifversion fpt or ghec or ghes > 3.8 %}
- [`GET /repos/{owner}/{repo}/actions/variables`](/rest/reference/actions#list-repository-variables) (read)
- [`GET /repos/{owner}/{repo}/actions/variables/{variable_name}`](/rest/reference/actions#get-a-repository-variable) (read)
- [`POST /repos/{owner}/{repo}/actions/variables/{variable_name}`](/rest/reference/actions#create-a-repository-variable) (write)
@ -78,7 +80,7 @@ shortTitle: GitHub App permissions
- [`PUT /orgs/{org}/actions/variables/{variable_name}/repositories`](/rest/reference/actions#set-selected-repositories-for-an-organization-variable) (write)
- [`PUT /orgs/{org}/actions/variables/{variable_name}/repositories/{repository_id}`](/rest/reference/actions#add-selected-repository-to-an-organization-variable) (write)
- [`DELETE /orgs/{org}/actions/variables/{variable_name}/repositories/{repository_id}`](/rest/reference/actions#remove-selected-repository-from-an-organization-variable) (write)
{% endif %}
{%- endif %}
## Administration
@ -498,6 +500,10 @@ shortTitle: GitHub App permissions
- [`GET /repos/{owner}/{repo}/stats/punch_card`](/rest/metrics/statistics#get-the-hourly-commit-count-for-each-day) (read)
- [`GET /search/labels`](/rest/reference/search#search-labels) (read)
- [`GET /repos/{owner}/{repo}/topics`](/rest/reference/repos#get-all-repository-topics) (read)
{% ifversion fpt or ghec or ghes > 3.7 %}- [`GET orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories`](/rest/reference/actions#list-selected-repositories-required-workflows) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id`}](/rest/reference/actions#add-a-repository-to-selected-repositories-list-for-a-required-workflow') (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}`](/rest/reference/actions#remove-a-repository-from-selected-repositories-list-for-a-required-workflow) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories`](/rest/reference/actions#set-selected-repositories-for-a-required-workflow) (read){% endif %}
## Notifications
@ -529,6 +535,15 @@ shortTitle: GitHub App permissions
{% ifversion fpt or ghec or ghes > 3.6 %}- [`DELETE /orgs/{org}/security-managers/teams/{team_slug}`](/rest/reference/orgs#remove-a-security-manager-team) (write){% endif %}
- [`PATCH /orgs/{org}`](/rest/reference/orgs/#update-an-organization) (write)
- [`GET /orgs/{org}/installations`](/rest/reference/orgs#list-app-installations-for-an-organization) (read)
{% ifversion fpt or ghec or ghes > 3.7 %}- [`GET /orgs/{org}/actions/required_workflows`](/rest/reference/actions#list-required-workflows) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`GET /orgs/{org}/actions/required_workflows/{required_workflow_id}`](/rest/reference/actions#get-a-required-workflow) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`GET orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories`](/rest/reference/actions#list-selected-repositories-required-workflows) (read){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`POST /orgs/{org}/actions/required_workflows`](/rest/reference/actions#create-a-required-workflow) (write){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}`](/rest/reference/actions#delete-a-required-workflow) (write){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}`](/rest/reference/actions#update-a-required-workflow) (write){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id`}](/rest/reference/actions#add-a-repository-to-selected-repositories-list-for-a-required-workflow') (write){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}`](/rest/reference/actions#remove-a-repository-from-selected-repositories-list-for-a-required-workflow) (write){% endif %}
{% ifversion fpt or ghec or ghes > 3.7 %}- [`PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories`](/rest/reference/actions#set-selected-repositories-for-a-required-workflow) (write){% endif %}
{% ifversion fpt or ghec %}

Просмотреть файл

@ -290,6 +290,16 @@
"/rest/actions#set-allowed-actions-for-an-organization": "/rest/actions/permissions#set-allowed-actions-for-an-organization",
"/rest/actions#get-default-workflow-permissions": "/rest/actions/permissions#get-default-workflow-permissions",
"/rest/actions#set-default-workflow-permissions": "/rest/actions/permissions#set-default-workflow-permissions",
"/rest/actions#list-required-workflows": "/rest/actions/required-workflows#list-required-workflows",
"/rest/actions#required-workflows": "/rest/actions/required-workflows",
"/rest/actions#create-a-required-workflow": "/rest/actions/required-workflows#create-a-required-workflow",
"/rest/actions#get-a-required-workflow": "/rest/actions/required-workflows#get-a-required-workflow",
"/rest/actions#update-a-required-workflow": "/rest/actions/required-workflows#update-a-required-workflow",
"/rest/actions#delete-a-required-workflow": "/rest/actions/required-workflows#delete-a-required-workflow",
"/rest/actions#list-selected-repositories-required-workflows": "/rest/actions/required-workflows#list-selected-repositories-required-workflows",
"/rest/actions#set-selected-repositories-for-a-required-workflow": "/rest/actions/required-workflows#set-selected-repositories-for-a-required-workflow",
"/rest/actions#add-a-repository-to-selected-repositories-list-for-a-required-workflow": "/rest/actions/required-workflows#add-a-repository-to-selected-repositories-list-for-a-required-workflow",
"/rest/actions#remove-a-repository-from-selected-repositories-list-for-a-required-workflow": "/rest/actions/required-workflows#remove-a-repository-from-selected-repositories-list-for-a-required-workflow",
"/rest/actions#list-self-hosted-runner-groups-for-an-organization": "/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-organization",
"/rest/actions#create-a-self-hosted-runner-group-for-an-organization": "/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization",
"/rest/actions#get-a-self-hosted-runner-group-for-an-organization": "/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization",
@ -481,6 +491,9 @@
"/rest/projects#get-project-permission-for-a-user": "/rest/projects/collaborators#get-project-permission-for-a-user",
"/rest/projects#list-project-columns": "/rest/projects/columns#list-project-columns",
"/rest/projects#create-a-project-column": "/rest/projects/columns#create-a-project-column",
"/rest/actions#list-repository-required-workflows": "/rest/actions/required-workflows#list-repository-required-workflows",
"/rest/actions#get-repository-required-workflow": "/rest/actions/required-workflows#get-repository-required-workflow",
"/rest/actions#get-repository-required-workflow-usage": "/rest/actions/required-workflows#get-repository-required-workflow-usage",
"/rest/repos#get-a-repository": "/rest/repos/repos#get-a-repository",
"/rest/repos/repos#update-a-repository": "/rest/repos/repos#update-a-repository",
"/rest/repos#delete-a-repository": "/rest/repos/repos#delete-a-repository",
@ -508,6 +521,7 @@
"/rest/actions#set-allowed-actions-for-a-repository": "/rest/actions/permissions#set-allowed-actions-for-a-repository",
"/rest/actions#get-default-workflow-permissions-for-a-repository": "/rest/actions/permissions#get-default-workflow-permissions-for-a-repository",
"/rest/actions#set-default-workflow-permissions-for-a-repository": "/rest/actions/permissions#set-default-workflow-permissions-for-a-repository",
"/rest/actions#list-required-workflow-runs": "/rest/actions/workflow-runs#list-required-workflow-runs",
"/rest/actions#list-self-hosted-runners-for-a-repository": "/rest/actions/self-hosted-runners#list-self-hosted-runners-for-a-repository",
"/rest/actions#list-runner-applications-for-a-repository": "/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository",
"/rest/actions#create-a-registration-token-for-a-repository": "/rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository",
@ -668,11 +682,21 @@
"/rest/dependency-graph#dependency-review": "/rest/dependency-graph/dependency-review",
"/rest/dependency-graph#create-a-snapshot-of-dependencies-for-a-repository": "/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository",
"/rest/dependency-graph#dependency-submission": "/rest/dependency-graph/dependency-submission",
"/rest/deployments/deployments#list-deployments": "/rest/deployments/deployments#list-deployments",
"/rest/deployments#deployments": "/rest/deployments/deployments",
"/rest/deployments/deployments#create-a-deployment": "/rest/deployments/deployments#create-a-deployment",
"/rest/deployments/deployments#get-a-deployment": "/rest/deployments/deployments#get-a-deployment",
"/rest/deployments/deployments#delete-a-deployment": "/rest/deployments/deployments#delete-a-deployment",
"/rest/deployments/statuses#list-deployment-statuses": "/rest/deployments/statuses#list-deployment-statuses",
"/rest/deployments#statuses": "/rest/deployments/statuses",
"/rest/deployments/statuses#create-a-deployment-status": "/rest/deployments/statuses#create-a-deployment-status",
"/rest/deployments/statuses#get-a-deployment-status": "/rest/deployments/statuses#get-a-deployment-status",
"/rest/repos#create-a-repository-dispatch-event": "/rest/repos/repos#create-a-repository-dispatch-event",
"/rest/deployments/environments#list-environments": "/rest/deployments/environments#list-environments",
"/rest/deployments#environments": "/rest/deployments/environments",
"/rest/deployments/environments#get-an-environment": "/rest/deployments/environments#get-an-environment",
"/rest/deployments/environments#create-or-update-an-environment": "/rest/deployments/environments#create-or-update-an-environment",
"/rest/deployments/environments#delete-an-environment": "/rest/deployments/environments#delete-an-environment",
"/rest/deployments/branch-policies#list-deployment-branch-policies": "/rest/deployments/branch-policies#list-deployment-branch-policies",
"/rest/deployments#branch-policies": "/rest/deployments/branch-policies",
"/rest/deployments/branch-policies#create-deployment-branch-policy": "/rest/deployments/branch-policies#create-deployment-branch-policy",

Просмотреть файл

@ -103,6 +103,60 @@
"verb": "put",
"requestPath": "/orgs/{org}/actions/permissions/workflow"
},
{
"slug": "list-required-workflows",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/orgs/{org}/actions/required_workflows"
},
{
"slug": "create-a-required-workflow",
"subcategory": "required-workflows",
"verb": "post",
"requestPath": "/orgs/{org}/actions/required_workflows"
},
{
"slug": "get-a-required-workflow",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}"
},
{
"slug": "update-a-required-workflow",
"subcategory": "required-workflows",
"verb": "patch",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}"
},
{
"slug": "delete-a-required-workflow",
"subcategory": "required-workflows",
"verb": "delete",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}"
},
{
"slug": "list-selected-repositories-for-a-required-workflow",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
},
{
"slug": "sets-repositories-for-a-required-workflow",
"subcategory": "required-workflows",
"verb": "put",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
},
{
"slug": "add-a-repository-to-a-required-workflow",
"subcategory": "required-workflows",
"verb": "put",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
},
{
"slug": "remove-a-selected-repository-from-required-workflow",
"subcategory": "required-workflows",
"verb": "delete",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
},
{
"slug": "list-self-hosted-runner-groups-for-an-organization",
"subcategory": "self-hosted-runner-groups",
@ -349,6 +403,18 @@
"verb": "delete",
"requestPath": "/orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
},
{
"slug": "list-repository-required-workflows",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/repos/{org}/{repo}/actions/required_workflows"
},
{
"slug": "get-a-required-workflow-entity-for-a-repository",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
},
{
"slug": "list-artifacts-for-a-repository",
"subcategory": "artifacts",
@ -475,6 +541,12 @@
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/permissions/workflow"
},
{
"slug": "list-workflow-runs-for-a-required-workflow",
"subcategory": "workflow-runs",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"
},
{
"slug": "list-self-hosted-runners-for-a-repository",
"subcategory": "self-hosted-runners",
@ -4006,6 +4078,60 @@
"verb": "put",
"requestPath": "/orgs/{org}/actions/permissions/workflow"
},
{
"slug": "list-required-workflows",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/orgs/{org}/actions/required_workflows"
},
{
"slug": "create-a-required-workflow",
"subcategory": "required-workflows",
"verb": "post",
"requestPath": "/orgs/{org}/actions/required_workflows"
},
{
"slug": "get-a-required-workflow",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}"
},
{
"slug": "update-a-required-workflow",
"subcategory": "required-workflows",
"verb": "patch",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}"
},
{
"slug": "delete-a-required-workflow",
"subcategory": "required-workflows",
"verb": "delete",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}"
},
{
"slug": "list-selected-repositories-for-a-required-workflow",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
},
{
"slug": "sets-repositories-for-a-required-workflow",
"subcategory": "required-workflows",
"verb": "put",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
},
{
"slug": "add-a-repository-to-a-required-workflow",
"subcategory": "required-workflows",
"verb": "put",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
},
{
"slug": "remove-a-selected-repository-from-required-workflow",
"subcategory": "required-workflows",
"verb": "delete",
"requestPath": "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
},
{
"slug": "list-self-hosted-runner-groups-for-an-organization",
"subcategory": "self-hosted-runner-groups",
@ -4258,6 +4384,18 @@
"verb": "delete",
"requestPath": "/orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
},
{
"slug": "list-repository-required-workflows",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/repos/{org}/{repo}/actions/required_workflows"
},
{
"slug": "get-a-required-workflow-entity-for-a-repository",
"subcategory": "required-workflows",
"verb": "get",
"requestPath": "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
},
{
"slug": "list-artifacts-for-a-repository",
"subcategory": "artifacts",
@ -4384,6 +4522,12 @@
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/permissions/workflow"
},
{
"slug": "list-workflow-runs-for-a-required-workflow",
"subcategory": "workflow-runs",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"
},
{
"slug": "list-self-hosted-runners-for-a-repository",
"subcategory": "self-hosted-runners",

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -141732,7 +141732,7 @@
},
{
"name": "sha",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>master</code>).</p>",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>main</code>).</p>",
"in": "query",
"required": false,
"schema": {
@ -158480,7 +158480,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.3/rest/reference/repos/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.3/rest/reference/repos#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.3/rest/deployments/deployments/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.3/rest/deployments/deployment-statuses#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"statusCodes": [
{
"httpStatusCode": "204",
@ -373093,7 +373093,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -373159,7 +373159,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -382506,7 +382506,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>master</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.3/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>main</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.3/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"statusCodes": [
{
"httpStatusCode": "200",

Просмотреть файл

@ -147142,7 +147142,7 @@
},
{
"name": "sha",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>master</code>).</p>",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>main</code>).</p>",
"in": "query",
"required": false,
"schema": {
@ -166009,7 +166009,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.4/rest/reference/repos/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.4/rest/reference/repos#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.4/rest/deployments/deployments/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.4/rest/deployments/deployment-statuses#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"statusCodes": [
{
"httpStatusCode": "204",
@ -391454,7 +391454,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -391520,7 +391520,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -400867,7 +400867,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>master</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.4/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>main</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.4/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"statusCodes": [
{
"httpStatusCode": "200",

Просмотреть файл

@ -154288,7 +154288,7 @@
},
{
"name": "sha",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>master</code>).</p>",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>main</code>).</p>",
"in": "query",
"required": false,
"schema": {
@ -173167,7 +173167,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.5/rest/reference/repos/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.5/rest/reference/repos#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.5/rest/deployments/deployments/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.5/rest/deployments/deployment-statuses#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"statusCodes": [
{
"httpStatusCode": "204",
@ -398749,7 +398749,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -398815,7 +398815,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -408487,7 +408487,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>master</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.5/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>main</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.5/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"statusCodes": [
{
"httpStatusCode": "200",

Просмотреть файл

@ -156905,7 +156905,7 @@
},
{
"name": "sha",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>master</code>).</p>",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>main</code>).</p>",
"in": "query",
"required": false,
"schema": {
@ -176205,7 +176205,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.6/rest/reference/repos/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.6/rest/reference/repos#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.6/rest/deployments/deployments/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.6/rest/deployments/deployment-statuses#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"statusCodes": [
{
"httpStatusCode": "204",
@ -409773,7 +409773,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -409839,7 +409839,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -419835,7 +419835,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>master</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.6/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>main</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.6/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"statusCodes": [
{
"httpStatusCode": "200",

Просмотреть файл

@ -159347,7 +159347,7 @@
},
{
"name": "sha",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>master</code>).</p>",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>main</code>).</p>",
"in": "query",
"required": false,
"schema": {
@ -179026,7 +179026,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.7/rest/reference/repos/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.7/rest/reference/repos#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/enterprise-server@3.7/rest/deployments/deployments/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/enterprise-server@3.7/rest/deployments/deployment-statuses#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"statusCodes": [
{
"httpStatusCode": "204",
@ -413563,7 +413563,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -413629,7 +413629,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -423676,7 +423676,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>master</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.7/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.7/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>main</code>). This method returns up to 100 results <a href=\"https://docs.github.com/enterprise-server@3.7/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/enterprise-server@3.7/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"statusCodes": [
{
"httpStatusCode": "200",

Просмотреть файл

@ -120361,7 +120361,7 @@
},
{
"name": "sha",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>master</code>).</p>",
"description": "<p>SHA or branch to start listing commits from. Default: the repositorys default branch (usually <code>main</code>).</p>",
"in": "query",
"required": false,
"schema": {
@ -137134,7 +137134,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/github-ae@latest/rest/reference/repos/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/github-ae@latest/rest/reference/repos#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"descriptionHTML": "<p>If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with <code>repo</code> or <code>repo_deployment</code> scopes can delete a deployment.</p>\n<p>To set a deployment as inactive, you must:</p>\n<ul>\n<li>Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.</li>\n<li>Mark the active deployment as inactive by adding any non-successful deployment status.</li>\n</ul>\n<p>For more information, see \"<a href=\"https://docs.github.com/github-ae@latest/rest/deployments/deployments/#create-a-deployment\">Create a deployment</a>\" and \"<a href=\"https://docs.github.com/github-ae@latest/rest/deployments/deployment-statuses#create-a-deployment-status\">Create a deployment status</a>.\"</p>",
"statusCodes": [
{
"httpStatusCode": "204",
@ -348587,7 +348587,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a tar archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.\n<strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -348653,7 +348653,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>master</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"descriptionHTML": "<p>Gets a redirect URL to download a zip archive for a repository. If you omit <code>:ref</code>, the repositorys default branch (usually\n<code>main</code>) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe <code>Location</code> header to make a second <code>GET</code> request.</p>\n<p><strong>Note</strong>: For private repositories, these links are temporary and expire after five minutes. If the repository is empty, you will receive a 404 when you follow the redirect.</p>",
"statusCodes": [
{
"httpStatusCode": "302",
@ -358080,7 +358080,7 @@
}
],
"previews": [],
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>master</code>). This method returns up to 100 results <a href=\"https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/github-ae@latest/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"descriptionHTML": "<p>Find commits via various criteria on the default branch (usually <code>main</code>). This method returns up to 100 results <a href=\"https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#pagination\">per page</a>.</p>\n<p>When searching for commits, you can get text match metadata for the <strong>message</strong> field when you provide the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/github-ae@latest/rest/reference/search#text-match-metadata\">Text match\nmetadata</a>.</p>\n<p>For example, if you want to find commits related to CSS in the <a href=\"https://github.com/octocat/Spoon-Knife\">octocat/Spoon-Knife</a> repository. Your query would look something like this:</p>\n<p><code>q=repo:octocat/Spoon-Knife+css</code></p>",
"statusCodes": [
{
"httpStatusCode": "200",