Bitbucket Server | -
|
+
|
bbs-exporter (expert-led migrations only) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint. For troubleshooting information, see \"Troubleshooting SARIF uploads.\"
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
Value for your secret, encrypted with LibSodium using the public key retrieved from the Get the public key for the authenticated user endpoint.
" + "description": "Value for your secret, encrypted with LibSodium using the public key retrieved from the Get the public key for the authenticated user endpoint.
" }, { "type": "string", @@ -194720,7 +194732,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -210127,7 +210139,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -231393,7 +231405,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -329234,8 +329246,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -330262,7 +330274,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -365678,7 +365690,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -366137,7 +366149,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -403071,7 +403083,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -407804,7 +407816,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -408278,7 +408290,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -428038,7 +428050,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -428087,40 +428099,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -428411,7 +428453,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -428785,7 +428827,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -429393,7 +429435,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -429834,7 +429876,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -430431,7 +430473,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -430862,7 +430904,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -430915,7 +430957,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -431463,7 +431505,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -431591,7 +431633,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -431898,7 +431940,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -431951,7 +431993,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -432499,7 +432541,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -432627,7 +432669,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -432934,7 +432976,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -432991,7 +433033,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -433539,7 +433581,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -433667,7 +433709,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -433974,7 +434016,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -434027,7 +434069,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -434575,7 +434617,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -434703,7 +434745,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -435008,7 +435050,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -435061,7 +435103,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -435607,7 +435649,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -435735,7 +435777,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -436042,7 +436084,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -436374,7 +436416,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -436716,7 +436758,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -437038,7 +437080,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -443223,7 +443265,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. The number of results per page (max 100).
", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "Page number of the results to fetch.
", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } } ], "bodyParameters": [], @@ -460004,94 +460028,29 @@ } }, "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": [ - { - "name": "v0.1", - "commit": { - "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", - "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" - }, - "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1", - "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1", - "node_id": "MDQ6VXNlcjE=" - } - ], - "schema": { - "type": "array", - "items": { - "title": "Tag", - "description": "Tag", - "type": "object", - "properties": { - "name": { - "type": "string", - "examples": [ - "v0.1" - ] - }, - "commit": { - "type": "object", - "properties": { - "sha": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "sha", - "url" - ] - }, - "zipball_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World/zipball/v0.1" - ] - }, - "tarball_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World/tarball/v0.1" - ] - }, - "node_id": { - "type": "string" - } - }, - "required": [ - "name", - "node_id", - "commit", - "zipball_url", - "tarball_url" - ] - } - } + "statusCode": "204", + "description": "A header with no content is returned.
" } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability.\"
", "statusCodes": [ { - "httpStatusCode": "200", - "description": "OK
" + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "422", + "description": "Bad Request
" } ] }, { "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/repos/{owner}/{repo}/teams", - "title": "List repository teams", + "verb": "delete", + "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting", + "title": "Disable private vulnerability reporting for a repository", "category": "repos", "subcategory": "repos", "parameters": [ @@ -460112,24 +460071,6 @@ "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100).
", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "Page number of the results to fetch.
", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } } ], "bodyParameters": [], @@ -460146,260 +460087,479 @@ } }, "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": [ - { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "permission": "admin", - "members_url": "https://api.github.com/teams/1/members{/member}", - "repositories_url": "https://api.github.com/teams/1/repos", - "parent": null - } - ], - "schema": { - "type": "array", - "items": { - "title": "Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "node_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "slug": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "privacy": { - "type": "string" - }, - "notification_setting": { - "type": "string" - }, - "permission": { - "type": "string" - }, - "permissions": { - "type": "object", - "properties": { - "pull": { - "type": "boolean" - }, - "triage": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "maintain": { - "type": "boolean" - }, - "admin": { - "type": "boolean" - } - }, - "required": [ - "pull", - "triage", - "push", - "maintain", - "admin" - ] - }, - "url": { - "type": "string", - "format": "uri" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "members_url": { - "type": "string" - }, - "repositories_url": { - "type": "string", - "format": "uri" - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Team Simple", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug" - ] - } - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "parent" - ] - } - } + "statusCode": "204", + "description": "A header with no content is returned.
" } } ], "previews": [], - "descriptionHTML": "Lists the teams that have access to the specified repository and that are also visible to the authenticated user.
\nFor a public repository, a team is listed only if that team added the public repository explicitly.
\nPersonal access tokens require the following scopes:
\npublic_repo
to call this endpoint on a public repositoryrepo
to call this endpoint on a private repository (this scope also includes public repositories)This endpoint is not compatible with fine-grained personal access tokens.
", + "descriptionHTML": "Disables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability\".
", "statusCodes": [ { - "httpStatusCode": "200", - "description": "OK
" + "httpStatusCode": "204", + "description": "A header with no content is returned.
" }, { - "httpStatusCode": "404", - "description": "Resource not found
" + "httpStatusCode": "422", + "description": "Bad Request
" } ] }, { "serverUrl": "https://api.github.com", "verb": "get", - "requestPath": "/repos/{owner}/{repo}/topics", - "title": "Get all repository topics", + "requestPath": "/repos/{owner}/{repo}/tags", + "title": "List repository tags", + "category": "repos", + "subcategory": "repos", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git
extension. The name is not case sensitive.
The number of results per page (max 100).
", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "Page number of the results to fetch.
", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": true, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": [ + { + "name": "v0.1", + "commit": { + "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" + }, + "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1", + "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1", + "node_id": "MDQ6VXNlcjE=" + } + ], + "schema": { + "type": "array", + "items": { + "title": "Tag", + "description": "Tag", + "type": "object", + "properties": { + "name": { + "type": "string", + "examples": [ + "v0.1" + ] + }, + "commit": { + "type": "object", + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + } + }, + "required": [ + "sha", + "url" + ] + }, + "zipball_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat/Hello-World/zipball/v0.1" + ] + }, + "tarball_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat/Hello-World/tarball/v0.1" + ] + }, + "node_id": { + "type": "string" + } + }, + "required": [ + "name", + "node_id", + "commit", + "zipball_url", + "tarball_url" + ] + } + } + } + } + ], + "descriptionHTML": "", + "previews": [], + "statusCodes": [ + { + "httpStatusCode": "200", + "description": "OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/teams", + "title": "List repository teams", + "category": "repos", + "subcategory": "repos", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git
extension. The name is not case sensitive.
The number of results per page (max 100).
", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "Page number of the results to fetch.
", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": true, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ], + "schema": { + "type": "array", + "items": { + "title": "Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "privacy": { + "type": "string" + }, + "notification_setting": { + "type": "string" + }, + "permission": { + "type": "string" + }, + "permissions": { + "type": "object", + "properties": { + "pull": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" + }, + "admin": { + "type": "boolean" + } + }, + "required": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + }, + "url": { + "type": "string", + "format": "uri" + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "members_url": { + "type": "string" + }, + "repositories_url": { + "type": "string", + "format": "uri" + }, + "parent": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Justice League" + ] + }, + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "admin" + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "examples": [ + "notifications_enabled" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "type": "string", + "examples": [ + "uid=example,ou=users,dc=github,dc=com" + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ] + } + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "parent" + ] + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists the teams that have access to the specified repository and that are also visible to the authenticated user.
\nFor a public repository, a team is listed only if that team added the public repository explicitly.
\nPersonal access tokens require the following scopes:
\npublic_repo
to call this endpoint on a public repositoryrepo
to call this endpoint on a private repository (this scope also includes public repositories)This endpoint is not compatible with fine-grained personal access tokens.
", + "statusCodes": [ + { + "httpStatusCode": "200", + "description": "OK
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/topics", + "title": "Get all repository topics", "category": "repos", "subcategory": "repos", "parameters": [ @@ -471829,7 +471989,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -472788,7 +472948,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -472997,7 +473157,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -473209,7 +473369,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -480590,127 +480750,6 @@ ] } ], - "lfs": [ - { - "serverUrl": "https://api.github.com", - "verb": "put", - "requestPath": "/repos/{owner}/{repo}/lfs", - "title": "Enable Git LFS for a repository", - "category": "repos", - "subcategory": "lfs", - "parameters": [ - { - "name": "owner", - "description": "The account owner of the repository. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "repo", - "description": "The name of the repository without the .git
extension. The name is not case sensitive.
Accepted
", - "example": null, - "schema": { - "type": "object" - } - } - } - ], - "previews": [], - "descriptionHTML": "Enables Git LFS for a repository. Access tokens must have the admin:enterprise
scope.
Accepted
" - }, - { - "httpStatusCode": "403", - "description": "We will return a 403 with one of the following messages:
\nThe account owner of the repository. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "repo", - "description": "The name of the repository without the .git
extension. The name is not case sensitive.
Response
" - } - } - ], - "previews": [], - "descriptionHTML": "Disables Git LFS for a repository. Access tokens must have the admin:enterprise
scope.
No Content
" - } - ] - } - ], "rules": [ { "serverUrl": "https://api.github.com", @@ -486987,7 +487026,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -486997,7 +487036,7 @@ { "name": "sort", "deprecated": true, - "description": "This field is deprecated. Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: best match
This field is deprecated. Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
", + "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
", "statusCodes": [ { "httpStatusCode": "200", @@ -488102,7 +488141,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -488111,7 +488150,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -489574,7 +489613,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -492743,7 +492782,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -492969,7 +493008,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -492978,7 +493017,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -494201,7 +494240,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -494232,7 +494271,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -499448,7 +499487,7 @@ { "name": "cwes", "in": "query", - "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
", + "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
\nExample: cwes=79,284,22
or cwes[]=79&cwes[]=284&cwes[]=22
If specified, return advisories that affect any of package
or package@version
. A maximum of 1000 packages can be specified. If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
If specified, only return advisories that affect any of package
or package@version
. A maximum of 1000 packages can be specified.\nIf the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
Example: affects=package1,package2@1.0.0,package3@^2.0.0
or affects[]=package1&affects[]=package2@1.0.0
List global security advisories and filter using parameters such as ecosystem, GHSA ID, CVE ID, etc.
", + "descriptionHTML": "Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
\nBy default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type
parameter in your request, with the value malware
. For more information about the different types of security advisories, see \"About the GitHub Advisory database.\"
The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "direction", + "description": "The direction to sort the results by.
", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } + }, + { + "name": "sort", + "description": "The property to sort the results by.
", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "created", + "updated", + "published" + ], + "default": "created" + } + }, + { + "name": "before", + "description": "A cursor, as given in the Link header. If specified, the query only searches for results before this cursor.
", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "after", + "description": "A cursor, as given in the Link header. If specified, the query only searches for results after this cursor.
", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "per_page", + "description": "The number of advisories to return per page.
", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 30 + } + }, + { + "name": "state", + "description": "Filter by the state of the repository advisories. Only advisories of this state will be returned.
", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "triage", + "draft", + "published", + "closed" + ] + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": true, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": [ + { + "ghsa_id": "GHSA-abcd-1234-efgh", + "cve_id": "CVE-2050-00000", + "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh", + "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh", + "summary": "A short summary of the advisory.", + "description": "A detailed description of what the advisory entails.", + "severity": "critical", + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "publisher": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "identifiers": [ + { + "type": "GHSA", + "value": "GHSA-abcd-1234-efgh" + }, + { + "type": "CVE", + "value": "CVE-2050-00000" + } + ], + "state": "published", + "created_at": "2020-01-01T00:00:00Z", + "updated_at": "2020-01-02T00:00:00Z", + "published_at": "2020-01-03T00:00:00Z", + "closed_at": null, + "withdrawn_at": null, + "submission": null, + "vulnerabilities": [ + { + "package": { + "ecosystem": "pip", + "name": "a-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.1", + "patched_versions": "1.0.1", + "vulnerable_functions": [ + "function1" + ] + }, + { + "package": { + "ecosystem": "pip", + "name": "another-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.2", + "patched_versions": "1.0.2", + "vulnerable_functions": [ + "function2" + ] + } + ], + "cvss": { + "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", + "score": 9.8 + }, + "cwes": [ + { + "cwe_id": "CWE-123", + "name": "A CWE" + } + ], + "cwe_ids": [ + "CWE-123" + ], + "credits": [ + { + "login": "octocat", + "type": "analyst" + } + ], + "credits_detailed": [ + { + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "type": "analyst", + "state": "accepted" + } + ], + "collaborating_users": [ + { + "login": "octokitten", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octokitten_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octokitten", + "html_url": "https://github.com/octokitten", + "followers_url": "https://api.github.com/users/octokitten/followers", + "following_url": "https://api.github.com/users/octokitten/following{/other_user}", + "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions", + "organizations_url": "https://api.github.com/users/octokitten/orgs", + "repos_url": "https://api.github.com/users/octokitten/repos", + "events_url": "https://api.github.com/users/octokitten/events{/privacy}", + "received_events_url": "https://api.github.com/users/octokitten/received_events", + "type": "User", + "site_admin": false + } + ], + "collaborating_teams": [ + { + "name": "Justice League", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "permission": "admin", + "parent": null + } + ] + }, + { + "ghsa_id": "GHSA-1234-5678-9012", + "cve_id": "CVE-2051-0000", + "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012", + "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012", + "summary": "A short summary of the advisory.", + "description": "A detailed description of what the advisory entails.", + "severity": "low", + "author": { + "login": "monauser", + "id": 2, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/monauser", + "html_url": "https://github.com/monauser", + "followers_url": "https://api.github.com/users/monauser/followers", + "following_url": "https://api.github.com/users/monauser/following{/other_user}", + "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monauser/subscriptions", + "organizations_url": "https://api.github.com/users/monauser/orgs", + "repos_url": "https://api.github.com/users/monauser/repos", + "events_url": "https://api.github.com/users/monauser/events{/privacy}", + "received_events_url": "https://api.github.com/users/monauser/received_events", + "type": "User", + "site_admin": false + }, + "publisher": { + "login": "monalisa", + "id": 3, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/monalisa", + "html_url": "https://github.com/monalisa", + "followers_url": "https://api.github.com/users/monalisa/followers", + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", + "organizations_url": "https://api.github.com/users/monalisa/orgs", + "repos_url": "https://api.github.com/users/monalisa/repos", + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", + "received_events_url": "https://api.github.com/users/monalisa/received_events", + "type": "User", + "site_admin": false + }, + "identifiers": [ + { + "type": "GHSA", + "value": "GHSA-1234-5678-9012" + }, + { + "type": "CVE", + "value": "CVE-2051-00000" + } + ], + "state": "published", + "created_at": "2020-01-03T00:00:00Z", + "updated_at": "2020-01-04T00:00:00Z", + "published_at": "2020-01-04T00:00:00Z", + "closed_at": null, + "withdrawn_at": null, + "submission": [ + { + "accepted": true + } + ], + "vulnerabilities": [ + { + "package": { + "ecosystem": "pip", + "name": "a-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.1", + "patched_versions": "1.0.1", + "vulnerable_functions": [ + "function1" + ] + }, + { + "package": { + "ecosystem": "pip", + "name": "another-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.2", + "patched_versions": "1.0.2", + "vulnerable_functions": [ + "function2" + ] + } + ], + "cvss": { + "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N", + "score": 1.6 + }, + "cwes": [ + { + "cwe_id": "CWE-456", + "name": "A CWE 2.0" + } + ], + "cwe_ids": [ + "CWE-456" + ], + "credits": [ + { + "login": "monauser", + "type": "reporter" + } + ], + "credits_detailed": [ + { + "user": { + "login": "monauser", + "id": 2, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/monauser", + "html_url": "https://github.com/monauser", + "followers_url": "https://api.github.com/users/monauser/followers", + "following_url": "https://api.github.com/users/monauser/following{/other_user}", + "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monauser/subscriptions", + "organizations_url": "https://api.github.com/users/monauser/orgs", + "repos_url": "https://api.github.com/users/monauser/repos", + "events_url": "https://api.github.com/users/monauser/events{/privacy}", + "received_events_url": "https://api.github.com/users/monauser/received_events", + "type": "User", + "site_admin": false + }, + "type": "reporter", + "state": "accepted" + } + ], + "collaborating_users": [ + { + "login": "octokitten", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octokitten_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octokitten", + "html_url": "https://github.com/octokitten", + "followers_url": "https://api.github.com/users/octokitten/followers", + "following_url": "https://api.github.com/users/octokitten/following{/other_user}", + "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions", + "organizations_url": "https://api.github.com/users/octokitten/orgs", + "repos_url": "https://api.github.com/users/octokitten/repos", + "events_url": "https://api.github.com/users/octokitten/events{/privacy}", + "received_events_url": "https://api.github.com/users/octokitten/received_events", + "type": "User", + "site_admin": false + } + ], + "collaborating_teams": [ + { + "name": "Justice League", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "permission": "admin", + "parent": null + } + ] + } + ], + "schema": { + "type": "array", + "items": { + "description": "A repository security advisory.", + "type": "object", + "properties": { + "ghsa_id": { + "type": "string", + "description": "The GitHub Security Advisory ID.", + "readOnly": true + }, + "cve_id": { + "type": [ + "string", + "null" + ], + "description": "The Common Vulnerabilities and Exposures (CVE) ID." + }, + "url": { + "type": "string", + "description": "The API URL for the advisory." + }, + "html_url": { + "type": "string", + "format": "uri", + "description": "The URL for the advisory.", + "readOnly": true + }, + "summary": { + "type": "string", + "description": "A short summary of the advisory.", + "maxLength": 1024 + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "A detailed description of what the advisory entails.", + "maxLength": 65535 + }, + "severity": { + "type": [ + "string", + "null" + ], + "description": "The severity of the advisory.", + "enum": [ + "critical", + "high", + "medium", + "low", + null + ] + }, + "author": { + "readOnly": true, + "description": "The author of the advisory.", + "allOf": [ + { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + ], + "type": [ + "null" + ] + }, + "publisher": { + "readOnly": true, + "description": "The publisher of the advisory.", + "allOf": [ + { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + ], + "type": [ + "null" + ] + }, + "identifiers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of identifier.", + "enum": [ + "CVE", + "GHSA" + ] + }, + "value": { + "type": "string", + "description": "The identifier value." + } + }, + "required": [ + "type", + "value" + ] + }, + "readOnly": true + }, + "state": { + "type": "string", + "description": "The state of the advisory.", + "enum": [ + "published", + "closed", + "withdrawn", + "draft", + "triage" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was created, in ISO 8601 format.", + "readOnly": true + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was last updated, in ISO 8601 format.", + "readOnly": true + }, + "published_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was published, in ISO 8601 format.", + "readOnly": true + }, + "closed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was closed, in ISO 8601 format.", + "readOnly": true + }, + "withdrawn_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.", + "readOnly": true + }, + "submission": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "properties": { + "accepted": { + "type": "boolean", + "description": "Whether a private vulnerability report was accepted by the repository's administrators.", + "readOnly": true + } + }, + "required": [ + "accepted" + ] + }, + "vulnerabilities": { + "type": [ + "array", + "null" + ], + "items": { + "description": "A product affected by the vulnerability detailed in a repository security advisory.", + "type": "object", + "properties": { + "package": { + "description": "The name of the package affected by the vulnerability.", + "type": [ + "object", + "null" + ], + "properties": { + "ecosystem": { + "type": "string", + "description": "The package's language or package management ecosystem.", + "enum": [ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift" + ] + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "The unique package name within its ecosystem." + } + }, + "required": [ + "ecosystem", + "name" + ] + }, + "vulnerable_version_range": { + "type": [ + "string", + "null" + ], + "description": "The range of the package versions affected by the vulnerability." + }, + "patched_versions": { + "type": [ + "string", + "null" + ], + "description": "The package version(s) that resolve the vulnerability." + }, + "vulnerable_functions": { + "type": [ + "array", + "null" + ], + "description": "The functions in the package that are affected.", + "items": { + "type": "string" + } + } + }, + "required": [ + "package", + "vulnerable_version_range", + "patched_versions", + "vulnerable_functions" + ], + "additionalProperties": false + } + }, + "cvss": { + "type": [ + "object", + "null" + ], + "properties": { + "vector_string": { + "type": [ + "string", + "null" + ], + "description": "The CVSS vector." + }, + "score": { + "type": [ + "number", + "null" + ], + "description": "The CVSS score.", + "minimum": 0, + "maximum": 10, + "readOnly": true + } + }, + "required": [ + "vector_string", + "score" + ] + }, + "cwes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "cwe_id": { + "type": "string", + "description": "The Common Weakness Enumeration (CWE) identifier." + }, + "name": { + "type": "string", + "description": "The name of the CWE.", + "readOnly": true + } + }, + "required": [ + "cwe_id", + "name" + ] + }, + "readOnly": true + }, + "cwe_ids": { + "type": [ + "array", + "null" + ], + "description": "A list of only the CWE IDs.", + "items": { + "type": "string" + } + }, + "credits": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "login": { + "type": "string", + "description": "The username of the user credited." + }, + "type": { + "type": "string", + "description": "The type of credit the user is receiving.", + "enum": [ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other" + ] + } + } + } + }, + "credits_detailed": { + "type": [ + "array", + "null" + ], + "items": { + "description": "A credit given to a user for a repository security advisory.", + "type": "object", + "properties": { + "user": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "type": { + "type": "string", + "description": "The type of credit the user is receiving.", + "enum": [ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other" + ] + }, + "state": { + "type": "string", + "description": "The state of the user's acceptance of the credit.", + "enum": [ + "accepted", + "declined", + "pending" + ] + } + }, + "required": [ + "user", + "type", + "state" + ], + "additionalProperties": false + }, + "readOnly": true + }, + "collaborating_users": { + "type": [ + "array", + "null" + ], + "description": "A list of users that collaborate on the advisory.", + "items": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + }, + "collaborating_teams": { + "type": [ + "array", + "null" + ], + "description": "A list of teams that collaborate on the advisory.", + "items": { + "title": "Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "privacy": { + "type": "string" + }, + "notification_setting": { + "type": "string" + }, + "permission": { + "type": "string" + }, + "permissions": { + "type": "object", + "properties": { + "pull": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" + }, + "admin": { + "type": "boolean" + } + }, + "required": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + }, + "url": { + "type": "string", + "format": "uri" + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "members_url": { + "type": "string" + }, + "repositories_url": { + "type": "string", + "format": "uri" + }, + "parent": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Justice League" + ] + }, + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "admin" + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "examples": [ + "notifications_enabled" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "type": "string", + "examples": [ + "uid=example,ou=users,dc=github,dc=com" + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ] + } + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "parent" + ] + } + }, + "private_fork": { + "readOnly": true, + "description": "A temporary private fork of the advisory's repository for collaborating on a fix.", + "allOf": [ + { + "title": "Simple Repository", + "description": "A GitHub repository.", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "A unique identifier of the repository.", + "examples": [ + 1296269 + ] + }, + "node_id": { + "type": "string", + "description": "The GraphQL identifier of the repository.", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the repository.", + "examples": [ + "Hello-World" + ] + }, + "full_name": { + "type": "string", + "description": "The full, globally unique, name of the repository.", + "examples": [ + "octocat/Hello-World" + ] + }, + "owner": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "private": { + "type": "boolean", + "description": "Whether the repository is private." + }, + "html_url": { + "type": "string", + "format": "uri", + "description": "The URL to view the repository on GitHub.com.", + "examples": [ + "https://github.com/octocat/Hello-World" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The repository description.", + "examples": [ + "This your first repo!" + ] + }, + "fork": { + "type": "boolean", + "description": "Whether the repository is a fork." + }, + "url": { + "type": "string", + "format": "uri", + "description": "The URL to get more information about the repository from the GitHub API.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World" + ] + }, + "archive_url": { + "type": "string", + "description": "A template for the API URL to download the repository as an archive.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" + ] + }, + "assignees_url": { + "type": "string", + "description": "A template for the API URL to list the available assignees for issues in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/assignees{/user}" + ] + }, + "blobs_url": { + "type": "string", + "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" + ] + }, + "branches_url": { + "type": "string", + "description": "A template for the API URL to get information about branches in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/branches{/branch}" + ] + }, + "collaborators_url": { + "type": "string", + "description": "A template for the API URL to get information about collaborators of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" + ] + }, + "comments_url": { + "type": "string", + "description": "A template for the API URL to get information about comments on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/comments{/number}" + ] + }, + "commits_url": { + "type": "string", + "description": "A template for the API URL to get information about commits on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/commits{/sha}" + ] + }, + "compare_url": { + "type": "string", + "description": "A template for the API URL to compare two commits or refs.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + ] + }, + "contents_url": { + "type": "string", + "description": "A template for the API URL to get the contents of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/contents/{+path}" + ] + }, + "contributors_url": { + "type": "string", + "format": "uri", + "description": "A template for the API URL to list the contributors to the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/contributors" + ] + }, + "deployments_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the deployments of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/deployments" + ] + }, + "downloads_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the downloads on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/downloads" + ] + }, + "events_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the events of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/events" + ] + }, + "forks_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the forks of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/forks" + ] + }, + "git_commits_url": { + "type": "string", + "description": "A template for the API URL to get information about Git commits of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" + ] + }, + "git_refs_url": { + "type": "string", + "description": "A template for the API URL to get information about Git refs of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" + ] + }, + "git_tags_url": { + "type": "string", + "description": "A template for the API URL to get information about Git tags of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" + ] + }, + "issue_comment_url": { + "type": "string", + "description": "A template for the API URL to get information about issue comments on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + ] + }, + "issue_events_url": { + "type": "string", + "description": "A template for the API URL to get information about issue events on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + ] + }, + "issues_url": { + "type": "string", + "description": "A template for the API URL to get information about issues on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/issues{/number}" + ] + }, + "keys_url": { + "type": "string", + "description": "A template for the API URL to get information about deploy keys on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + ] + }, + "labels_url": { + "type": "string", + "description": "A template for the API URL to get information about labels of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/labels{/name}" + ] + }, + "languages_url": { + "type": "string", + "format": "uri", + "description": "The API URL to get information about the languages of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/languages" + ] + }, + "merges_url": { + "type": "string", + "format": "uri", + "description": "The API URL to merge branches in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/merges" + ] + }, + "milestones_url": { + "type": "string", + "description": "A template for the API URL to get information about milestones of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/milestones{/number}" + ] + }, + "notifications_url": { + "type": "string", + "description": "A template for the API URL to get information about notifications on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + ] + }, + "pulls_url": { + "type": "string", + "description": "A template for the API URL to get information about pull requests on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/pulls{/number}" + ] + }, + "releases_url": { + "type": "string", + "description": "A template for the API URL to get information about releases on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/releases{/id}" + ] + }, + "stargazers_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the stargazers on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/stargazers" + ] + }, + "statuses_url": { + "type": "string", + "description": "A template for the API URL to get information about statuses of a commit.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}" + ] + }, + "subscribers_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the subscribers on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/subscribers" + ] + }, + "subscription_url": { + "type": "string", + "format": "uri", + "description": "The API URL to subscribe to notifications for this repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/subscription" + ] + }, + "tags_url": { + "type": "string", + "format": "uri", + "description": "The API URL to get information about tags on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/tags" + ] + }, + "teams_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the teams on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/teams" + ] + }, + "trees_url": { + "type": "string", + "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + ] + }, + "hooks_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the hooks on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/hooks" + ] + } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url" + ] + } + ], + "type": [ + "null" + ] + } + }, + "required": [ + "ghsa_id", + "cve_id", + "url", + "html_url", + "summary", + "description", + "severity", + "author", + "publisher", + "identifiers", + "state", + "created_at", + "updated_at", + "published_at", + "closed_at", + "withdrawn_at", + "submission", + "vulnerabilities", + "cvss", + "cwes", + "cwe_ids", + "credits", + "credits_detailed", + "collaborating_users", + "collaborating_teams", + "private_fork" + ], + "additionalProperties": false + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists repository security advisories for an organization.
\nTo use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the repo
scope or repository_advisories:write
permission.
OK
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ] + }, { "serverUrl": "https://api.github.com", "verb": "get", @@ -529452,7 +531817,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -543654,7 +546019,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -548808,7 +551173,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -550559,7 +552924,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -550934,7 +553299,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -69314,7 +69314,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -95759,7 +95759,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -133952,7 +133952,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -143278,7 +143278,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Response
", + "example": { + "total_commit_comments": 5000, + "total_gist_comments": 400, + "total_issue_comments": 10900, + "total_pull_request_comments": 9900 + }, "schema": { "title": "Enterprise Comment Stats", "type": "object", @@ -147971,6 +147977,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_gists": 500, + "private_gists": 30, + "public_gists": 470 + }, "schema": { "title": "Enterprise Gist Stats", "type": "object", @@ -148024,6 +148035,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_hooks": 50, + "active_hooks": 47, + "inactive_hooks": 3 + }, "schema": { "title": "Hooks Enterprise Stats", "type": "object", @@ -148077,6 +148093,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_issues": 5000, + "open_issues": 300, + "closed_issues": 4700 + }, "schema": { "title": "Enterprise Issue Stats", "type": "object", @@ -148130,6 +148151,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_milestones": 90, + "open_milestones": 10, + "closed_milestones": 80 + }, "schema": { "title": "Enterprise Milestone Stats", "type": "object", @@ -148183,6 +148209,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_orgs": 50, + "disabled_orgs": 1, + "total_teams": 70, + "total_team_members": 700 + }, "schema": { "title": "Enterprise Organization Stats", "type": "object", @@ -148240,6 +148272,9 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pages": 20 + }, "schema": { "title": "Enterprise Pages Stats", "type": "object", @@ -148285,6 +148320,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pulls": 1200, + "merged_pulls": 1100, + "mergeable_pulls": 90, + "unmergeable_pulls": 10 + }, "schema": { "title": "Enterprise Pull Request Stats", "type": "object", @@ -148342,6 +148383,14 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_repos": 200, + "root_repos": 1, + "fork_repos": 10, + "org_repos": 150, + "total_pushes": 39000, + "total_wikis": 5 + }, "schema": { "title": "Repository Enterprise Stats", "type": "object", @@ -148407,6 +148456,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_users": 100, + "admin_users": 3, + "suspended_users": 1 + }, "schema": { "title": "Enterprise User Stats", "type": "object", @@ -169131,10 +169185,10 @@ }, { "name": "ref", - "description": "The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -244724,8 +244778,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -245686,7 +245740,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -264896,7 +264950,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -265355,7 +265409,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -288131,7 +288185,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub AE creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub AE has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub AE creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub AE has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -292864,7 +292918,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -293338,7 +293392,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -312748,7 +312802,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -312797,40 +312851,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -313097,7 +313181,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -313470,7 +313554,7 @@ } } ], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -314080,7 +314164,7 @@ } } ], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -314525,7 +314609,7 @@ } } ], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -315124,7 +315208,7 @@ } } ], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -315559,7 +315643,7 @@ } } ], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -315571,7 +315655,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -316162,7 +316246,7 @@ } } ], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -316259,7 +316343,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -316605,7 +316689,7 @@ } } ], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -316617,7 +316701,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -317208,7 +317292,7 @@ } } ], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -317301,7 +317385,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -317647,7 +317731,7 @@ } } ], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -317663,7 +317747,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -318254,7 +318338,7 @@ } } ], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -318347,7 +318431,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -318693,7 +318777,7 @@ } } ], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -318705,7 +318789,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -319296,7 +319380,7 @@ } } ], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -319389,7 +319473,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -319733,7 +319817,7 @@ } } ], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -319749,7 +319833,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -320338,7 +320422,7 @@ } } ], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -320431,7 +320515,7 @@ } ], "previews": [ - "An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
An additional reactions
object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the blog post for full details.
To access the API you must provide a custom media type in the Accept
header:
application/vnd.github.squirrel-girl-preview\n
\nThe reactions
key will have the following payload where url
can be used to construct the API location for listing and creating reactions.
This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub AE expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub AE expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.
\nThis API supports files up to 1 megabyte in size.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.
\nThis API supports files up to 1 megabyte in size.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -353306,7 +353390,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -353515,7 +353599,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -353727,7 +353811,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -360929,7 +361013,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -360939,7 +361023,7 @@ { "name": "sort", "deprecated": true, - "description": "This field is deprecated. Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub AE search infrastructure. Default: best match
This field is deprecated. Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub AE search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
", + "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
", "statusCodes": [ { "httpStatusCode": "200", @@ -362044,7 +362128,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -362053,7 +362137,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -363516,7 +363600,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -366600,7 +366684,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -366826,7 +366910,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -366835,7 +366919,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -368058,7 +368142,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub AE. The REST API supports the same qualifiers as the web interface for GitHub AE. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -368089,7 +368173,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub AE. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub AE. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -386404,7 +386488,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -400560,7 +400644,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub AE plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub AE plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub AE profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub AE. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub AE plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub AE plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub AE profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub AE. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -403858,7 +403942,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -405608,7 +405692,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -405983,7 +406067,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -108855,7 +108855,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -141227,7 +141227,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint.
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint. For troubleshooting information, see \"Troubleshooting SARIF uploads.\"
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
Value for your secret, encrypted with LibSodium using the public key retrieved from the Get the public key for the authenticated user endpoint.
" + "description": "Value for your secret, encrypted with LibSodium using the public key retrieved from the Get the public key for the authenticated user endpoint.
" }, { "type": "string", @@ -206419,7 +206431,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -221826,7 +221838,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -243092,7 +243104,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -342789,8 +342801,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -343817,7 +343829,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -368680,7 +368692,7 @@ } ], "previews": [], - "descriptionHTML": "Note: This operation is deprecated and will be removed after September 6th 2023.\nUse the \"List fine-grained repository permissions\" endpoint instead.
\nLists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see \"About custom repository roles.\"
\nTo use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization and must use an access token with the admin:org
or repo
scope.\nGitHub Apps must have the organization_custom_roles:read
or organization_administration:read
organization permission to use this endpoint.
Note: This operation is deprecated and will be removed after September 6th 2023.\nUse the \"List fine-grained repository permissions\" endpoint instead.
\nLists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see \"About custom repository roles.\"
\nTo use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization and must use an access token with the admin:org
or repo
scope.\nGitHub Apps must have the organization_custom_roles:read
or organization_administration:read
organization permission to use this endpoint.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -383177,7 +383189,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -420117,7 +420129,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Cloud creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Cloud has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Cloud creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Cloud has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -424850,7 +424862,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -425324,7 +425336,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -445084,7 +445096,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -445133,40 +445145,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -445457,7 +445499,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -445831,7 +445873,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -446439,7 +446481,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -446880,7 +446922,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -447477,7 +447519,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -447908,7 +447950,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -447961,7 +448003,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -448509,7 +448551,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -448637,7 +448679,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -448944,7 +448986,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -448997,7 +449039,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -449545,7 +449587,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -449673,7 +449715,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -449980,7 +450022,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -450037,7 +450079,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -450585,7 +450627,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -450713,7 +450755,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -451020,7 +451062,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -451073,7 +451115,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -451621,7 +451663,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -451749,7 +451791,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -452054,7 +452096,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -452107,7 +452149,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -452653,7 +452695,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -452781,7 +452823,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -453088,7 +453130,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -453420,7 +453462,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -453762,7 +453804,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -454084,7 +454126,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -460269,7 +460311,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Cloud expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Cloud expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. The number of results per page (max 100).
", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "Page number of the results to fetch.
", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } } ], "bodyParameters": [], @@ -477051,94 +477075,29 @@ } }, "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": [ - { - "name": "v0.1", - "commit": { - "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", - "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" - }, - "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1", - "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1", - "node_id": "MDQ6VXNlcjE=" - } - ], - "schema": { - "type": "array", - "items": { - "title": "Tag", - "description": "Tag", - "type": "object", - "properties": { - "name": { - "type": "string", - "examples": [ - "v0.1" - ] - }, - "commit": { - "type": "object", - "properties": { - "sha": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "sha", - "url" - ] - }, - "zipball_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World/zipball/v0.1" - ] - }, - "tarball_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World/tarball/v0.1" - ] - }, - "node_id": { - "type": "string" - } - }, - "required": [ - "name", - "node_id", - "commit", - "zipball_url", - "tarball_url" - ] - } - } + "statusCode": "204", + "description": "A header with no content is returned.
" } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability.\"
", "statusCodes": [ { - "httpStatusCode": "200", - "description": "OK
" + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "422", + "description": "Bad Request
" } ] }, { "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/repos/{owner}/{repo}/teams", - "title": "List repository teams", + "verb": "delete", + "requestPath": "/repos/{owner}/{repo}/private-vulnerability-reporting", + "title": "Disable private vulnerability reporting for a repository", "category": "repos", "subcategory": "repos", "parameters": [ @@ -477159,24 +477118,6 @@ "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100).
", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "Page number of the results to fetch.
", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } } ], "bodyParameters": [], @@ -477193,260 +477134,479 @@ } }, "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": [ - { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "permission": "admin", - "members_url": "https://api.github.com/teams/1/members{/member}", - "repositories_url": "https://api.github.com/teams/1/repos", - "parent": null - } - ], - "schema": { - "type": "array", - "items": { - "title": "Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "node_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "slug": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "privacy": { - "type": "string" - }, - "notification_setting": { - "type": "string" - }, - "permission": { - "type": "string" - }, - "permissions": { - "type": "object", - "properties": { - "pull": { - "type": "boolean" - }, - "triage": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "maintain": { - "type": "boolean" - }, - "admin": { - "type": "boolean" - } - }, - "required": [ - "pull", - "triage", - "push", - "maintain", - "admin" - ] - }, - "url": { - "type": "string", - "format": "uri" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "members_url": { - "type": "string" - }, - "repositories_url": { - "type": "string", - "format": "uri" - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Team Simple", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug" - ] - } - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "parent" - ] - } - } + "statusCode": "204", + "description": "A header with no content is returned.
" } } ], "previews": [], - "descriptionHTML": "Lists the teams that have access to the specified repository and that are also visible to the authenticated user.
\nFor a public repository, a team is listed only if that team added the public repository explicitly.
\nPersonal access tokens require the following scopes:
\npublic_repo
to call this endpoint on a public repositoryrepo
to call this endpoint on a private repository (this scope also includes public repositories)This endpoint is not compatible with fine-grained personal access tokens.
", + "descriptionHTML": "Disables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see \"Privately reporting a security vulnerability\".
", "statusCodes": [ { - "httpStatusCode": "200", - "description": "OK
" + "httpStatusCode": "204", + "description": "A header with no content is returned.
" }, { - "httpStatusCode": "404", - "description": "Resource not found
" + "httpStatusCode": "422", + "description": "Bad Request
" } ] }, { "serverUrl": "https://api.github.com", "verb": "get", - "requestPath": "/repos/{owner}/{repo}/topics", - "title": "Get all repository topics", + "requestPath": "/repos/{owner}/{repo}/tags", + "title": "List repository tags", + "category": "repos", + "subcategory": "repos", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git
extension. The name is not case sensitive.
The number of results per page (max 100).
", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "Page number of the results to fetch.
", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": true, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": [ + { + "name": "v0.1", + "commit": { + "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" + }, + "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1", + "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1", + "node_id": "MDQ6VXNlcjE=" + } + ], + "schema": { + "type": "array", + "items": { + "title": "Tag", + "description": "Tag", + "type": "object", + "properties": { + "name": { + "type": "string", + "examples": [ + "v0.1" + ] + }, + "commit": { + "type": "object", + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + } + }, + "required": [ + "sha", + "url" + ] + }, + "zipball_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat/Hello-World/zipball/v0.1" + ] + }, + "tarball_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat/Hello-World/tarball/v0.1" + ] + }, + "node_id": { + "type": "string" + } + }, + "required": [ + "name", + "node_id", + "commit", + "zipball_url", + "tarball_url" + ] + } + } + } + } + ], + "descriptionHTML": "", + "previews": [], + "statusCodes": [ + { + "httpStatusCode": "200", + "description": "OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/teams", + "title": "List repository teams", + "category": "repos", + "subcategory": "repos", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git
extension. The name is not case sensitive.
The number of results per page (max 100).
", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "Page number of the results to fetch.
", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": true, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ], + "schema": { + "type": "array", + "items": { + "title": "Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "privacy": { + "type": "string" + }, + "notification_setting": { + "type": "string" + }, + "permission": { + "type": "string" + }, + "permissions": { + "type": "object", + "properties": { + "pull": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" + }, + "admin": { + "type": "boolean" + } + }, + "required": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + }, + "url": { + "type": "string", + "format": "uri" + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "members_url": { + "type": "string" + }, + "repositories_url": { + "type": "string", + "format": "uri" + }, + "parent": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Justice League" + ] + }, + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "admin" + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "examples": [ + "notifications_enabled" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "type": "string", + "examples": [ + "uid=example,ou=users,dc=github,dc=com" + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ] + } + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "parent" + ] + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists the teams that have access to the specified repository and that are also visible to the authenticated user.
\nFor a public repository, a team is listed only if that team added the public repository explicitly.
\nPersonal access tokens require the following scopes:
\npublic_repo
to call this endpoint on a public repositoryrepo
to call this endpoint on a private repository (this scope also includes public repositories)This endpoint is not compatible with fine-grained personal access tokens.
", + "statusCodes": [ + { + "httpStatusCode": "200", + "description": "OK
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/topics", + "title": "Get all repository topics", "category": "repos", "subcategory": "repos", "parameters": [ @@ -488876,7 +489036,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -489835,7 +489995,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -490044,7 +490204,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -490256,7 +490416,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -506520,7 +506680,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -506530,7 +506690,7 @@ { "name": "sort", "deprecated": true, - "description": "This field is deprecated. Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Cloud search infrastructure. Default: best match
This field is deprecated. Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Cloud search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
", + "descriptionHTML": "Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
", "statusCodes": [ { "httpStatusCode": "200", @@ -507635,7 +507795,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -507644,7 +507804,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -509107,7 +509267,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -512276,7 +512436,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -512502,7 +512662,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -512511,7 +512671,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -513734,7 +513894,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Cloud. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Cloud. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -513765,7 +513925,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Cloud. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Cloud. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -518981,7 +519141,7 @@ { "name": "cwes", "in": "query", - "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
", + "description": "If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
\nExample: cwes=79,284,22
or cwes[]=79&cwes[]=284&cwes[]=22
If specified, return advisories that affect any of package
or package@version
. A maximum of 1000 packages can be specified. If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
If specified, only return advisories that affect any of package
or package@version
. A maximum of 1000 packages can be specified.\nIf the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
Example: affects=package1,package2@1.0.0,package3@^2.0.0
or affects[]=package1&affects[]=package2@1.0.0
List global security advisories and filter using parameters such as ecosystem, GHSA ID, CVE ID, etc.
", + "descriptionHTML": "Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
\nBy default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type
parameter in your request, with the value malware
. For more information about the different types of security advisories, see \"About the GitHub Advisory database.\"
The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "direction", + "description": "The direction to sort the results by.
", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } + }, + { + "name": "sort", + "description": "The property to sort the results by.
", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "created", + "updated", + "published" + ], + "default": "created" + } + }, + { + "name": "before", + "description": "A cursor, as given in the Link header. If specified, the query only searches for results before this cursor.
", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "after", + "description": "A cursor, as given in the Link header. If specified, the query only searches for results after this cursor.
", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "per_page", + "description": "The number of advisories to return per page.
", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 30 + } + }, + { + "name": "state", + "description": "Filter by the state of the repository advisories. Only advisories of this state will be returned.
", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "triage", + "draft", + "published", + "closed" + ] + } + } + ], + "bodyParameters": [], + "enabledForGitHubApps": true, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": [ + { + "ghsa_id": "GHSA-abcd-1234-efgh", + "cve_id": "CVE-2050-00000", + "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-abcd-1234-efgh", + "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-abcd-1234-efgh", + "summary": "A short summary of the advisory.", + "description": "A detailed description of what the advisory entails.", + "severity": "critical", + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "publisher": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "identifiers": [ + { + "type": "GHSA", + "value": "GHSA-abcd-1234-efgh" + }, + { + "type": "CVE", + "value": "CVE-2050-00000" + } + ], + "state": "published", + "created_at": "2020-01-01T00:00:00Z", + "updated_at": "2020-01-02T00:00:00Z", + "published_at": "2020-01-03T00:00:00Z", + "closed_at": null, + "withdrawn_at": null, + "submission": null, + "vulnerabilities": [ + { + "package": { + "ecosystem": "pip", + "name": "a-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.1", + "patched_versions": "1.0.1", + "vulnerable_functions": [ + "function1" + ] + }, + { + "package": { + "ecosystem": "pip", + "name": "another-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.2", + "patched_versions": "1.0.2", + "vulnerable_functions": [ + "function2" + ] + } + ], + "cvss": { + "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", + "score": 9.8 + }, + "cwes": [ + { + "cwe_id": "CWE-123", + "name": "A CWE" + } + ], + "cwe_ids": [ + "CWE-123" + ], + "credits": [ + { + "login": "octocat", + "type": "analyst" + } + ], + "credits_detailed": [ + { + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "type": "analyst", + "state": "accepted" + } + ], + "collaborating_users": [ + { + "login": "octokitten", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octokitten_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octokitten", + "html_url": "https://github.com/octokitten", + "followers_url": "https://api.github.com/users/octokitten/followers", + "following_url": "https://api.github.com/users/octokitten/following{/other_user}", + "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions", + "organizations_url": "https://api.github.com/users/octokitten/orgs", + "repos_url": "https://api.github.com/users/octokitten/repos", + "events_url": "https://api.github.com/users/octokitten/events{/privacy}", + "received_events_url": "https://api.github.com/users/octokitten/received_events", + "type": "User", + "site_admin": false + } + ], + "collaborating_teams": [ + { + "name": "Justice League", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "permission": "admin", + "parent": null + } + ] + }, + { + "ghsa_id": "GHSA-1234-5678-9012", + "cve_id": "CVE-2051-0000", + "url": "https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012", + "html_url": "https://github.com/repo/a-package/security/advisories/GHSA-1234-5678-9012", + "summary": "A short summary of the advisory.", + "description": "A detailed description of what the advisory entails.", + "severity": "low", + "author": { + "login": "monauser", + "id": 2, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/monauser", + "html_url": "https://github.com/monauser", + "followers_url": "https://api.github.com/users/monauser/followers", + "following_url": "https://api.github.com/users/monauser/following{/other_user}", + "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monauser/subscriptions", + "organizations_url": "https://api.github.com/users/monauser/orgs", + "repos_url": "https://api.github.com/users/monauser/repos", + "events_url": "https://api.github.com/users/monauser/events{/privacy}", + "received_events_url": "https://api.github.com/users/monauser/received_events", + "type": "User", + "site_admin": false + }, + "publisher": { + "login": "monalisa", + "id": 3, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/monalisa", + "html_url": "https://github.com/monalisa", + "followers_url": "https://api.github.com/users/monalisa/followers", + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", + "organizations_url": "https://api.github.com/users/monalisa/orgs", + "repos_url": "https://api.github.com/users/monalisa/repos", + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", + "received_events_url": "https://api.github.com/users/monalisa/received_events", + "type": "User", + "site_admin": false + }, + "identifiers": [ + { + "type": "GHSA", + "value": "GHSA-1234-5678-9012" + }, + { + "type": "CVE", + "value": "CVE-2051-00000" + } + ], + "state": "published", + "created_at": "2020-01-03T00:00:00Z", + "updated_at": "2020-01-04T00:00:00Z", + "published_at": "2020-01-04T00:00:00Z", + "closed_at": null, + "withdrawn_at": null, + "submission": [ + { + "accepted": true + } + ], + "vulnerabilities": [ + { + "package": { + "ecosystem": "pip", + "name": "a-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.1", + "patched_versions": "1.0.1", + "vulnerable_functions": [ + "function1" + ] + }, + { + "package": { + "ecosystem": "pip", + "name": "another-package" + }, + "vulnerable_version_range": ">= 1.0.0, < 1.0.2", + "patched_versions": "1.0.2", + "vulnerable_functions": [ + "function2" + ] + } + ], + "cvss": { + "vector_string": "AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N", + "score": 1.6 + }, + "cwes": [ + { + "cwe_id": "CWE-456", + "name": "A CWE 2.0" + } + ], + "cwe_ids": [ + "CWE-456" + ], + "credits": [ + { + "login": "monauser", + "type": "reporter" + } + ], + "credits_detailed": [ + { + "user": { + "login": "monauser", + "id": 2, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/monauser", + "html_url": "https://github.com/monauser", + "followers_url": "https://api.github.com/users/monauser/followers", + "following_url": "https://api.github.com/users/monauser/following{/other_user}", + "gists_url": "https://api.github.com/users/monauser/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monauser/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monauser/subscriptions", + "organizations_url": "https://api.github.com/users/monauser/orgs", + "repos_url": "https://api.github.com/users/monauser/repos", + "events_url": "https://api.github.com/users/monauser/events{/privacy}", + "received_events_url": "https://api.github.com/users/monauser/received_events", + "type": "User", + "site_admin": false + }, + "type": "reporter", + "state": "accepted" + } + ], + "collaborating_users": [ + { + "login": "octokitten", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octokitten_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octokitten", + "html_url": "https://github.com/octokitten", + "followers_url": "https://api.github.com/users/octokitten/followers", + "following_url": "https://api.github.com/users/octokitten/following{/other_user}", + "gists_url": "https://api.github.com/users/octokitten/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octokitten/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octokitten/subscriptions", + "organizations_url": "https://api.github.com/users/octokitten/orgs", + "repos_url": "https://api.github.com/users/octokitten/repos", + "events_url": "https://api.github.com/users/octokitten/events{/privacy}", + "received_events_url": "https://api.github.com/users/octokitten/received_events", + "type": "User", + "site_admin": false + } + ], + "collaborating_teams": [ + { + "name": "Justice League", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "permission": "admin", + "parent": null + } + ] + } + ], + "schema": { + "type": "array", + "items": { + "description": "A repository security advisory.", + "type": "object", + "properties": { + "ghsa_id": { + "type": "string", + "description": "The GitHub Security Advisory ID.", + "readOnly": true + }, + "cve_id": { + "type": [ + "string", + "null" + ], + "description": "The Common Vulnerabilities and Exposures (CVE) ID." + }, + "url": { + "type": "string", + "description": "The API URL for the advisory." + }, + "html_url": { + "type": "string", + "format": "uri", + "description": "The URL for the advisory.", + "readOnly": true + }, + "summary": { + "type": "string", + "description": "A short summary of the advisory.", + "maxLength": 1024 + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "A detailed description of what the advisory entails.", + "maxLength": 65535 + }, + "severity": { + "type": [ + "string", + "null" + ], + "description": "The severity of the advisory.", + "enum": [ + "critical", + "high", + "medium", + "low", + null + ] + }, + "author": { + "readOnly": true, + "description": "The author of the advisory.", + "allOf": [ + { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + ], + "type": [ + "null" + ] + }, + "publisher": { + "readOnly": true, + "description": "The publisher of the advisory.", + "allOf": [ + { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + ], + "type": [ + "null" + ] + }, + "identifiers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of identifier.", + "enum": [ + "CVE", + "GHSA" + ] + }, + "value": { + "type": "string", + "description": "The identifier value." + } + }, + "required": [ + "type", + "value" + ] + }, + "readOnly": true + }, + "state": { + "type": "string", + "description": "The state of the advisory.", + "enum": [ + "published", + "closed", + "withdrawn", + "draft", + "triage" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was created, in ISO 8601 format.", + "readOnly": true + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was last updated, in ISO 8601 format.", + "readOnly": true + }, + "published_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was published, in ISO 8601 format.", + "readOnly": true + }, + "closed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was closed, in ISO 8601 format.", + "readOnly": true + }, + "withdrawn_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "The date and time of when the advisory was withdrawn, in ISO 8601 format.", + "readOnly": true + }, + "submission": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "properties": { + "accepted": { + "type": "boolean", + "description": "Whether a private vulnerability report was accepted by the repository's administrators.", + "readOnly": true + } + }, + "required": [ + "accepted" + ] + }, + "vulnerabilities": { + "type": [ + "array", + "null" + ], + "items": { + "description": "A product affected by the vulnerability detailed in a repository security advisory.", + "type": "object", + "properties": { + "package": { + "description": "The name of the package affected by the vulnerability.", + "type": [ + "object", + "null" + ], + "properties": { + "ecosystem": { + "type": "string", + "description": "The package's language or package management ecosystem.", + "enum": [ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift" + ] + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "The unique package name within its ecosystem." + } + }, + "required": [ + "ecosystem", + "name" + ] + }, + "vulnerable_version_range": { + "type": [ + "string", + "null" + ], + "description": "The range of the package versions affected by the vulnerability." + }, + "patched_versions": { + "type": [ + "string", + "null" + ], + "description": "The package version(s) that resolve the vulnerability." + }, + "vulnerable_functions": { + "type": [ + "array", + "null" + ], + "description": "The functions in the package that are affected.", + "items": { + "type": "string" + } + } + }, + "required": [ + "package", + "vulnerable_version_range", + "patched_versions", + "vulnerable_functions" + ], + "additionalProperties": false + } + }, + "cvss": { + "type": [ + "object", + "null" + ], + "properties": { + "vector_string": { + "type": [ + "string", + "null" + ], + "description": "The CVSS vector." + }, + "score": { + "type": [ + "number", + "null" + ], + "description": "The CVSS score.", + "minimum": 0, + "maximum": 10, + "readOnly": true + } + }, + "required": [ + "vector_string", + "score" + ] + }, + "cwes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "cwe_id": { + "type": "string", + "description": "The Common Weakness Enumeration (CWE) identifier." + }, + "name": { + "type": "string", + "description": "The name of the CWE.", + "readOnly": true + } + }, + "required": [ + "cwe_id", + "name" + ] + }, + "readOnly": true + }, + "cwe_ids": { + "type": [ + "array", + "null" + ], + "description": "A list of only the CWE IDs.", + "items": { + "type": "string" + } + }, + "credits": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "login": { + "type": "string", + "description": "The username of the user credited." + }, + "type": { + "type": "string", + "description": "The type of credit the user is receiving.", + "enum": [ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other" + ] + } + } + } + }, + "credits_detailed": { + "type": [ + "array", + "null" + ], + "items": { + "description": "A credit given to a user for a repository security advisory.", + "type": "object", + "properties": { + "user": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "type": { + "type": "string", + "description": "The type of credit the user is receiving.", + "enum": [ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other" + ] + }, + "state": { + "type": "string", + "description": "The state of the user's acceptance of the credit.", + "enum": [ + "accepted", + "declined", + "pending" + ] + } + }, + "required": [ + "user", + "type", + "state" + ], + "additionalProperties": false + }, + "readOnly": true + }, + "collaborating_users": { + "type": [ + "array", + "null" + ], + "description": "A list of users that collaborate on the advisory.", + "items": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + }, + "collaborating_teams": { + "type": [ + "array", + "null" + ], + "description": "A list of teams that collaborate on the advisory.", + "items": { + "title": "Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "privacy": { + "type": "string" + }, + "notification_setting": { + "type": "string" + }, + "permission": { + "type": "string" + }, + "permissions": { + "type": "object", + "properties": { + "pull": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" + }, + "admin": { + "type": "boolean" + } + }, + "required": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + }, + "url": { + "type": "string", + "format": "uri" + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "members_url": { + "type": "string" + }, + "repositories_url": { + "type": "string", + "format": "uri" + }, + "parent": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Justice League" + ] + }, + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "admin" + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "examples": [ + "notifications_enabled" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "type": "string", + "examples": [ + "uid=example,ou=users,dc=github,dc=com" + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ] + } + ] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "parent" + ] + } + }, + "private_fork": { + "readOnly": true, + "description": "A temporary private fork of the advisory's repository for collaborating on a fix.", + "allOf": [ + { + "title": "Simple Repository", + "description": "A GitHub repository.", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "A unique identifier of the repository.", + "examples": [ + 1296269 + ] + }, + "node_id": { + "type": "string", + "description": "The GraphQL identifier of the repository.", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "type": "string", + "description": "The name of the repository.", + "examples": [ + "Hello-World" + ] + }, + "full_name": { + "type": "string", + "description": "The full, globally unique, name of the repository.", + "examples": [ + "octocat/Hello-World" + ] + }, + "owner": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "private": { + "type": "boolean", + "description": "Whether the repository is private." + }, + "html_url": { + "type": "string", + "format": "uri", + "description": "The URL to view the repository on GitHub.com.", + "examples": [ + "https://github.com/octocat/Hello-World" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The repository description.", + "examples": [ + "This your first repo!" + ] + }, + "fork": { + "type": "boolean", + "description": "Whether the repository is a fork." + }, + "url": { + "type": "string", + "format": "uri", + "description": "The URL to get more information about the repository from the GitHub API.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World" + ] + }, + "archive_url": { + "type": "string", + "description": "A template for the API URL to download the repository as an archive.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" + ] + }, + "assignees_url": { + "type": "string", + "description": "A template for the API URL to list the available assignees for issues in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/assignees{/user}" + ] + }, + "blobs_url": { + "type": "string", + "description": "A template for the API URL to create or retrieve a raw Git blob in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" + ] + }, + "branches_url": { + "type": "string", + "description": "A template for the API URL to get information about branches in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/branches{/branch}" + ] + }, + "collaborators_url": { + "type": "string", + "description": "A template for the API URL to get information about collaborators of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" + ] + }, + "comments_url": { + "type": "string", + "description": "A template for the API URL to get information about comments on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/comments{/number}" + ] + }, + "commits_url": { + "type": "string", + "description": "A template for the API URL to get information about commits on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/commits{/sha}" + ] + }, + "compare_url": { + "type": "string", + "description": "A template for the API URL to compare two commits or refs.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + ] + }, + "contents_url": { + "type": "string", + "description": "A template for the API URL to get the contents of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/contents/{+path}" + ] + }, + "contributors_url": { + "type": "string", + "format": "uri", + "description": "A template for the API URL to list the contributors to the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/contributors" + ] + }, + "deployments_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the deployments of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/deployments" + ] + }, + "downloads_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the downloads on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/downloads" + ] + }, + "events_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the events of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/events" + ] + }, + "forks_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the forks of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/forks" + ] + }, + "git_commits_url": { + "type": "string", + "description": "A template for the API URL to get information about Git commits of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" + ] + }, + "git_refs_url": { + "type": "string", + "description": "A template for the API URL to get information about Git refs of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" + ] + }, + "git_tags_url": { + "type": "string", + "description": "A template for the API URL to get information about Git tags of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" + ] + }, + "issue_comment_url": { + "type": "string", + "description": "A template for the API URL to get information about issue comments on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + ] + }, + "issue_events_url": { + "type": "string", + "description": "A template for the API URL to get information about issue events on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + ] + }, + "issues_url": { + "type": "string", + "description": "A template for the API URL to get information about issues on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/issues{/number}" + ] + }, + "keys_url": { + "type": "string", + "description": "A template for the API URL to get information about deploy keys on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + ] + }, + "labels_url": { + "type": "string", + "description": "A template for the API URL to get information about labels of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/labels{/name}" + ] + }, + "languages_url": { + "type": "string", + "format": "uri", + "description": "The API URL to get information about the languages of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/languages" + ] + }, + "merges_url": { + "type": "string", + "format": "uri", + "description": "The API URL to merge branches in the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/merges" + ] + }, + "milestones_url": { + "type": "string", + "description": "A template for the API URL to get information about milestones of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/milestones{/number}" + ] + }, + "notifications_url": { + "type": "string", + "description": "A template for the API URL to get information about notifications on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + ] + }, + "pulls_url": { + "type": "string", + "description": "A template for the API URL to get information about pull requests on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/pulls{/number}" + ] + }, + "releases_url": { + "type": "string", + "description": "A template for the API URL to get information about releases on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/releases{/id}" + ] + }, + "stargazers_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the stargazers on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/stargazers" + ] + }, + "statuses_url": { + "type": "string", + "description": "A template for the API URL to get information about statuses of a commit.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}" + ] + }, + "subscribers_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the subscribers on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/subscribers" + ] + }, + "subscription_url": { + "type": "string", + "format": "uri", + "description": "The API URL to subscribe to notifications for this repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/subscription" + ] + }, + "tags_url": { + "type": "string", + "format": "uri", + "description": "The API URL to get information about tags on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/tags" + ] + }, + "teams_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the teams on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/teams" + ] + }, + "trees_url": { + "type": "string", + "description": "A template for the API URL to create or retrieve a raw Git tree of the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + ] + }, + "hooks_url": { + "type": "string", + "format": "uri", + "description": "The API URL to list the hooks on the repository.", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World/hooks" + ] + } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url" + ] + } + ], + "type": [ + "null" + ] + } + }, + "required": [ + "ghsa_id", + "cve_id", + "url", + "html_url", + "summary", + "description", + "severity", + "author", + "publisher", + "identifiers", + "state", + "created_at", + "updated_at", + "published_at", + "closed_at", + "withdrawn_at", + "submission", + "vulnerabilities", + "cvss", + "cwes", + "cwe_ids", + "credits", + "credits_detailed", + "collaborating_users", + "collaborating_teams", + "private_fork" + ], + "additionalProperties": false + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists repository security advisories for an organization.
\nTo use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the repo
scope or repository_advisories:write
permission.
OK
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ] + }, { "serverUrl": "https://api.github.com", "verb": "get", @@ -548985,7 +551471,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -564755,7 +567241,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Cloud plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Cloud plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Cloud profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Cloud. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Cloud plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Cloud plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Cloud profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Cloud. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -569909,7 +572395,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -571660,7 +574146,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -572035,7 +574521,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -108392,7 +108392,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -137356,7 +137356,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint.
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint. For troubleshooting information, see \"Troubleshooting SARIF uploads.\"
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -177499,7 +177499,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -196316,7 +196316,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Response
", + "example": { + "total_commit_comments": 5000, + "total_gist_comments": 400, + "total_issue_comments": 10900, + "total_pull_request_comments": 9900 + }, "schema": { "title": "Enterprise Comment Stats", "type": "object", @@ -201756,6 +201762,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_gists": 500, + "private_gists": 30, + "public_gists": 470 + }, "schema": { "title": "Enterprise Gist Stats", "type": "object", @@ -201809,6 +201820,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_hooks": 50, + "active_hooks": 47, + "inactive_hooks": 3 + }, "schema": { "title": "Hooks Enterprise Stats", "type": "object", @@ -201862,6 +201878,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_issues": 5000, + "open_issues": 300, + "closed_issues": 4700 + }, "schema": { "title": "Enterprise Issue Stats", "type": "object", @@ -201915,6 +201936,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_milestones": 90, + "open_milestones": 10, + "closed_milestones": 80 + }, "schema": { "title": "Enterprise Milestone Stats", "type": "object", @@ -201968,6 +201994,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_orgs": 50, + "disabled_orgs": 1, + "total_teams": 70, + "total_team_members": 700 + }, "schema": { "title": "Enterprise Organization Stats", "type": "object", @@ -202025,6 +202057,9 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pages": 20 + }, "schema": { "title": "Enterprise Pages Stats", "type": "object", @@ -202070,6 +202105,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pulls": 1200, + "merged_pulls": 1100, + "mergeable_pulls": 90, + "unmergeable_pulls": 10 + }, "schema": { "title": "Enterprise Pull Request Stats", "type": "object", @@ -202127,6 +202168,14 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_repos": 200, + "root_repos": 1, + "fork_repos": 10, + "org_repos": 150, + "total_pushes": 39000, + "total_wikis": 5 + }, "schema": { "title": "Repository Enterprise Stats", "type": "object", @@ -202293,6 +202342,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_users": 100, + "admin_users": 3, + "suspended_users": 1 + }, "schema": { "title": "Enterprise User Stats", "type": "object", @@ -204182,7 +204236,7 @@ } ], "previews": [], - "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", + "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", "statusCodes": [ { "httpStatusCode": "200", @@ -233619,10 +233673,10 @@ }, { "name": "ref", - "description": "The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -310232,8 +310286,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -311082,7 +311136,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -324426,7 +324480,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -324798,7 +324852,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", "statusCodes": [ { "httpStatusCode": "204", @@ -325690,7 +325744,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -326589,7 +326643,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", "statusCodes": [ { "httpStatusCode": "201", @@ -327523,7 +327577,7 @@ "response": { "statusCode": "201", "contentType": "application/json", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "example": { "id": 1, "url": "https://api.github.com/authorizations/1", @@ -328331,7 +328385,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -328339,7 +328393,7 @@ }, { "httpStatusCode": "201", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" }, { "httpStatusCode": "304", @@ -330078,7 +330132,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -330935,7 +330989,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -331843,7 +331897,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", "statusCodes": [ { "httpStatusCode": "200", @@ -331892,7 +331946,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "204", @@ -344468,7 +344522,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -344927,7 +344981,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -381431,7 +381485,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -386164,7 +386218,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -386638,7 +386692,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -406398,7 +406452,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -406447,40 +406501,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -406747,7 +406831,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -407121,7 +407205,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -407729,7 +407813,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -408170,7 +408254,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -408767,7 +408851,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -409198,7 +409282,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -409251,7 +409335,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -409799,7 +409883,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -409927,7 +410011,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -410234,7 +410318,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -410287,7 +410371,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -410835,7 +410919,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -410963,7 +411047,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -411270,7 +411354,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -411327,7 +411411,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -411875,7 +411959,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -412003,7 +412087,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -412310,7 +412394,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -412363,7 +412447,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -412911,7 +412995,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -413039,7 +413123,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -413344,7 +413428,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -413397,7 +413481,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -413943,7 +414027,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -414071,7 +414155,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -414378,7 +414462,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -414710,7 +414794,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -415052,7 +415136,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -415374,7 +415458,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -421509,7 +421593,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
+ "You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
"The is_template
and template_repository
keys are currently available for developer to preview. See Create a repository using a template to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.baptiste-preview+json\n
"
]
},
@@ -449745,7 +449829,7 @@
}
],
"previews": [],
- "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -450704,7 +450788,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -450913,7 +450997,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -451125,7 +451209,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -458947,7 +459031,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -458956,7 +459040,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -460069,7 +460153,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -461532,7 +461616,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -464701,7 +464785,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -464927,7 +465011,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -464936,7 +465020,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -466159,7 +466243,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -466190,7 +466274,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -486657,7 +486741,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -500925,7 +501009,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -505515,7 +505599,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -507266,7 +507350,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -507641,7 +507725,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -102236,7 +102236,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -130707,7 +130707,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -168531,7 +168531,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -180139,7 +180139,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Response
", + "example": { + "total_commit_comments": 5000, + "total_gist_comments": 400, + "total_issue_comments": 10900, + "total_pull_request_comments": 9900 + }, "schema": { "title": "Enterprise Comment Stats", "type": "object", @@ -184832,6 +184838,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_gists": 500, + "private_gists": 30, + "public_gists": 470 + }, "schema": { "title": "Enterprise Gist Stats", "type": "object", @@ -184885,6 +184896,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_hooks": 50, + "active_hooks": 47, + "inactive_hooks": 3 + }, "schema": { "title": "Hooks Enterprise Stats", "type": "object", @@ -184938,6 +184954,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_issues": 5000, + "open_issues": 300, + "closed_issues": 4700 + }, "schema": { "title": "Enterprise Issue Stats", "type": "object", @@ -184991,6 +185012,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_milestones": 90, + "open_milestones": 10, + "closed_milestones": 80 + }, "schema": { "title": "Enterprise Milestone Stats", "type": "object", @@ -185044,6 +185070,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_orgs": 50, + "disabled_orgs": 1, + "total_teams": 70, + "total_team_members": 700 + }, "schema": { "title": "Enterprise Organization Stats", "type": "object", @@ -185101,6 +185133,9 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pages": 20 + }, "schema": { "title": "Enterprise Pages Stats", "type": "object", @@ -185146,6 +185181,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pulls": 1200, + "merged_pulls": 1100, + "mergeable_pulls": 90, + "unmergeable_pulls": 10 + }, "schema": { "title": "Enterprise Pull Request Stats", "type": "object", @@ -185203,6 +185244,14 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_repos": 200, + "root_repos": 1, + "fork_repos": 10, + "org_repos": 150, + "total_pushes": 39000, + "total_wikis": 5 + }, "schema": { "title": "Repository Enterprise Stats", "type": "object", @@ -185268,6 +185317,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_users": 100, + "admin_users": 3, + "suspended_users": 1 + }, "schema": { "title": "Enterprise User Stats", "type": "object", @@ -186870,7 +186924,7 @@ } ], "previews": [], - "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", + "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", "statusCodes": [ { "httpStatusCode": "200", @@ -215551,10 +215605,10 @@ }, { "name": "ref", - "description": "The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -292008,8 +292062,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -292858,7 +292912,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -306018,7 +306072,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -306390,7 +306444,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", "statusCodes": [ { "httpStatusCode": "204", @@ -307266,7 +307320,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -308149,7 +308203,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", "statusCodes": [ { "httpStatusCode": "201", @@ -309067,7 +309121,7 @@ "response": { "statusCode": "201", "contentType": "application/json", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "example": { "id": 1, "url": "https://api.github.com/authorizations/1", @@ -309859,7 +309913,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -309867,7 +309921,7 @@ }, { "httpStatusCode": "201", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" }, { "httpStatusCode": "304", @@ -311574,7 +311628,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -312415,7 +312469,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -313307,7 +313361,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", "statusCodes": [ { "httpStatusCode": "200", @@ -313356,7 +313410,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "204", @@ -320314,7 +320368,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -320773,7 +320827,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -343675,7 +343729,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -348399,7 +348453,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -348873,7 +348927,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -368552,7 +368606,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -368601,40 +368655,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -368901,7 +368985,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -369275,7 +369359,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -369883,7 +369967,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -370324,7 +370408,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -370921,7 +371005,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -371352,7 +371436,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -371405,7 +371489,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -371953,7 +372037,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -372081,7 +372165,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -372388,7 +372472,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -372441,7 +372525,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -372989,7 +373073,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -373117,7 +373201,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -373424,7 +373508,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -373481,7 +373565,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -374029,7 +374113,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -374157,7 +374241,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -374464,7 +374548,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -374517,7 +374601,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -375065,7 +375149,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -375193,7 +375277,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -375498,7 +375582,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -375551,7 +375635,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -376097,7 +376181,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -376225,7 +376309,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -376532,7 +376616,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -376864,7 +376948,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -377206,7 +377290,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -377528,7 +377612,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -383639,7 +383723,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
+ "You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
"The is_template
and template_repository
keys are currently available for developer to preview. See Create a repository using a template to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.baptiste-preview+json\n
"
]
},
@@ -411186,7 +411270,7 @@
}
],
"previews": [],
- "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -412145,7 +412229,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -412354,7 +412438,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -412566,7 +412650,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -420271,7 +420355,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -420280,7 +420364,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -421332,7 +421416,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -422734,7 +422818,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -425895,7 +425979,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -426121,7 +426205,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -426130,7 +426214,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -427350,7 +427434,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -427381,7 +427465,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -447357,7 +447441,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -461596,7 +461680,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -465336,7 +465420,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -467087,7 +467171,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -467462,7 +467546,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -103199,7 +103199,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -131678,7 +131678,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -170977,7 +170977,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -182948,7 +182948,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Response
", + "example": { + "total_commit_comments": 5000, + "total_gist_comments": 400, + "total_issue_comments": 10900, + "total_pull_request_comments": 9900 + }, "schema": { "title": "Enterprise Comment Stats", "type": "object", @@ -187641,6 +187647,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_gists": 500, + "private_gists": 30, + "public_gists": 470 + }, "schema": { "title": "Enterprise Gist Stats", "type": "object", @@ -187694,6 +187705,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_hooks": 50, + "active_hooks": 47, + "inactive_hooks": 3 + }, "schema": { "title": "Hooks Enterprise Stats", "type": "object", @@ -187747,6 +187763,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_issues": 5000, + "open_issues": 300, + "closed_issues": 4700 + }, "schema": { "title": "Enterprise Issue Stats", "type": "object", @@ -187800,6 +187821,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_milestones": 90, + "open_milestones": 10, + "closed_milestones": 80 + }, "schema": { "title": "Enterprise Milestone Stats", "type": "object", @@ -187853,6 +187879,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_orgs": 50, + "disabled_orgs": 1, + "total_teams": 70, + "total_team_members": 700 + }, "schema": { "title": "Enterprise Organization Stats", "type": "object", @@ -187910,6 +187942,9 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pages": 20 + }, "schema": { "title": "Enterprise Pages Stats", "type": "object", @@ -187955,6 +187990,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pulls": 1200, + "merged_pulls": 1100, + "mergeable_pulls": 90, + "unmergeable_pulls": 10 + }, "schema": { "title": "Enterprise Pull Request Stats", "type": "object", @@ -188012,6 +188053,14 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_repos": 200, + "root_repos": 1, + "fork_repos": 10, + "org_repos": 150, + "total_pushes": 39000, + "total_wikis": 5 + }, "schema": { "title": "Repository Enterprise Stats", "type": "object", @@ -188077,6 +188126,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_users": 100, + "admin_users": 3, + "suspended_users": 1 + }, "schema": { "title": "Enterprise User Stats", "type": "object", @@ -189679,7 +189733,7 @@ } ], "previews": [], - "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", + "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", "statusCodes": [ { "httpStatusCode": "200", @@ -218380,10 +218434,10 @@ }, { "name": "ref", - "description": "The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -294933,8 +294987,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -295783,7 +295837,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -308989,7 +309043,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -309361,7 +309415,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", "statusCodes": [ { "httpStatusCode": "204", @@ -310237,7 +310291,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -311120,7 +311174,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", "statusCodes": [ { "httpStatusCode": "201", @@ -312038,7 +312092,7 @@ "response": { "statusCode": "201", "contentType": "application/json", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "example": { "id": 1, "url": "https://api.github.com/authorizations/1", @@ -312830,7 +312884,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -312838,7 +312892,7 @@ }, { "httpStatusCode": "201", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" }, { "httpStatusCode": "304", @@ -314545,7 +314599,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -315386,7 +315440,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -316278,7 +316332,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", "statusCodes": [ { "httpStatusCode": "200", @@ -316327,7 +316381,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "204", @@ -323783,7 +323837,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -324242,7 +324296,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -347305,7 +347359,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -352029,7 +352083,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -352503,7 +352557,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -372214,7 +372268,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -372263,40 +372317,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -372563,7 +372647,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -372937,7 +373021,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -373545,7 +373629,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -373986,7 +374070,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -374583,7 +374667,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -375014,7 +375098,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -375067,7 +375151,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -375615,7 +375699,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -375743,7 +375827,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -376050,7 +376134,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -376103,7 +376187,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -376651,7 +376735,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -376779,7 +376863,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -377086,7 +377170,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -377143,7 +377227,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -377691,7 +377775,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -377819,7 +377903,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -378126,7 +378210,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -378179,7 +378263,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -378727,7 +378811,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -378855,7 +378939,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -379160,7 +379244,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -379213,7 +379297,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -379759,7 +379843,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -379887,7 +379971,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -380194,7 +380278,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -380526,7 +380610,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -380868,7 +380952,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -381190,7 +381274,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -387301,7 +387385,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
+ "You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
"The is_template
and template_repository
keys are currently available for developer to preview. See Create a repository using a template to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.baptiste-preview+json\n
"
]
},
@@ -414986,7 +415070,7 @@
}
],
"previews": [],
- "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -415945,7 +416029,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -416154,7 +416238,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -416366,7 +416450,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -424116,7 +424200,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -424125,7 +424209,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -425180,7 +425264,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -426585,7 +426669,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -429754,7 +429838,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -429980,7 +430064,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -429989,7 +430073,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -431212,7 +431296,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -431243,7 +431327,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -451277,7 +451361,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -465516,7 +465600,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -469741,7 +469825,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -471492,7 +471576,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -471867,7 +471951,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -106304,7 +106304,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -135009,7 +135009,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -174364,7 +174364,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -192734,7 +192734,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Response
", + "example": { + "total_commit_comments": 5000, + "total_gist_comments": 400, + "total_issue_comments": 10900, + "total_pull_request_comments": 9900 + }, "schema": { "title": "Enterprise Comment Stats", "type": "object", @@ -197427,6 +197433,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_gists": 500, + "private_gists": 30, + "public_gists": 470 + }, "schema": { "title": "Enterprise Gist Stats", "type": "object", @@ -197480,6 +197491,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_hooks": 50, + "active_hooks": 47, + "inactive_hooks": 3 + }, "schema": { "title": "Hooks Enterprise Stats", "type": "object", @@ -197533,6 +197549,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_issues": 5000, + "open_issues": 300, + "closed_issues": 4700 + }, "schema": { "title": "Enterprise Issue Stats", "type": "object", @@ -197586,6 +197607,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_milestones": 90, + "open_milestones": 10, + "closed_milestones": 80 + }, "schema": { "title": "Enterprise Milestone Stats", "type": "object", @@ -197639,6 +197665,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_orgs": 50, + "disabled_orgs": 1, + "total_teams": 70, + "total_team_members": 700 + }, "schema": { "title": "Enterprise Organization Stats", "type": "object", @@ -197696,6 +197728,9 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pages": 20 + }, "schema": { "title": "Enterprise Pages Stats", "type": "object", @@ -197741,6 +197776,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pulls": 1200, + "merged_pulls": 1100, + "mergeable_pulls": 90, + "unmergeable_pulls": 10 + }, "schema": { "title": "Enterprise Pull Request Stats", "type": "object", @@ -197798,6 +197839,14 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_repos": 200, + "root_repos": 1, + "fork_repos": 10, + "org_repos": 150, + "total_pushes": 39000, + "total_wikis": 5 + }, "schema": { "title": "Repository Enterprise Stats", "type": "object", @@ -197863,6 +197912,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_users": 100, + "admin_users": 3, + "suspended_users": 1 + }, "schema": { "title": "Enterprise User Stats", "type": "object", @@ -199692,7 +199746,7 @@ } ], "previews": [], - "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", + "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", "statusCodes": [ { "httpStatusCode": "200", @@ -228417,10 +228471,10 @@ }, { "name": "ref", - "description": "The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -304970,8 +305024,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -305820,7 +305874,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -319026,7 +319080,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -319398,7 +319452,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", "statusCodes": [ { "httpStatusCode": "204", @@ -320282,7 +320336,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -321173,7 +321227,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", "statusCodes": [ { "httpStatusCode": "201", @@ -322099,7 +322153,7 @@ "response": { "statusCode": "201", "contentType": "application/json", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "example": { "id": 1, "url": "https://api.github.com/authorizations/1", @@ -322899,7 +322953,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -322907,7 +322961,7 @@ }, { "httpStatusCode": "201", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" }, { "httpStatusCode": "304", @@ -324630,7 +324684,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -325479,7 +325533,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -326379,7 +326433,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", "statusCodes": [ { "httpStatusCode": "200", @@ -326428,7 +326482,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "204", @@ -333942,7 +333996,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -334401,7 +334455,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -357470,7 +357524,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -362194,7 +362248,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -362668,7 +362722,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -382379,7 +382433,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -382428,40 +382482,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -382728,7 +382812,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -383102,7 +383186,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -383710,7 +383794,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -384151,7 +384235,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -384748,7 +384832,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -385179,7 +385263,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -385232,7 +385316,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -385780,7 +385864,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -385908,7 +385992,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -386215,7 +386299,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -386268,7 +386352,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -386816,7 +386900,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -386944,7 +387028,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -387251,7 +387335,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -387308,7 +387392,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -387856,7 +387940,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -387984,7 +388068,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -388291,7 +388375,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -388344,7 +388428,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -388892,7 +388976,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -389020,7 +389104,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -389325,7 +389409,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -389378,7 +389462,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -389924,7 +390008,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -390052,7 +390136,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -390359,7 +390443,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -390691,7 +390775,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -391033,7 +391117,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -391355,7 +391439,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -397490,7 +397574,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
+ "You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
"The is_template
and template_repository
keys are currently available for developer to preview. See Create a repository using a template to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.baptiste-preview+json\n
"
]
},
@@ -425175,7 +425259,7 @@
}
],
"previews": [],
- "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -426134,7 +426218,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -426343,7 +426427,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -426555,7 +426639,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -434305,7 +434389,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -434314,7 +434398,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -435369,7 +435453,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -436774,7 +436858,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -439943,7 +440027,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -440169,7 +440253,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -440178,7 +440262,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -441401,7 +441485,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -441432,7 +441516,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -461570,7 +461654,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -475809,7 +475893,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -480034,7 +480118,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -481785,7 +481869,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -482160,7 +482244,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", + "descriptionHTML": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"Suspend an app installation\" endpoint.
\nYou must use a JWT to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -107410,7 +107410,7 @@ } ], "previews": [], - "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", + "descriptionHTML": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.
\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"Create an installation access token for an app\" endpoint.
\nYou must use an installation access token to access this endpoint.
", "statusCodes": [ { "httpStatusCode": "204", @@ -136163,7 +136163,7 @@ "type": "array of objects", "name": "actions", "in": "body", - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. See the actions
object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Possible further actions the integrator can perform, which a user may trigger. Each action includes a label
, identifier
and description
. A maximum of three actions are accepted. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests
array and a null
value for head_branch
.
By default, check suites are automatically created when you create a check run. You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"Update repository preferences for check suites\". Your GitHub App must have the checks:write
permission to create check suites.
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint.
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the security_events
scope to use this endpoint for private repositories. You can also use tokens with the public_repo
scope for public repositories only. GitHub Apps must have the security_events
write permission to use this endpoint. For troubleshooting information, see \"Troubleshooting SARIF uploads.\"
There are two places where you can upload code scanning results.
\n--ref refs/pull/42/merge
or --ref refs/pull/42/head
, then the results appear as alerts in a pull request check. For more information, see \"Triaging code scanning alerts in pull requests.\"--ref refs/heads/my-branch
, then the results appear in the Security tab for your repository. For more information, see \"Managing code scanning alerts for your repository.\"You must compress the SARIF-formatted analysis data that you want to upload, using gzip
, and then encode it as a Base64 format string. For example:
gzip -c analysis-data.sarif | base64 -w0\n
\nSARIF data | Maximum values | Additional limits |
---|---|---|
Runs per file | 20 | |
Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. |
Rules per run | 25,000 | |
Tool extensions per run | 100 | |
Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
Location per result | 1,000 | Only 100 locations will be included. |
Tags per rule | 20 | Only 10 tags will be included. |
The 202 Accepted
response includes an id
value.\nYou can use this ID to check the status of the upload by using it in the /sarifs/{sarif_id}
endpoint.\nFor more information, see \"Get information about a SARIF upload.\"
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the repository invitations API endpoints.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", + "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nAdding an outside collaborator may be restricted by enterprise administrators. For more information, see \"Enforcing repository management policies in your enterprise.\"
\nFor more information on permission levels, see \"Repository permission levels for an organization\". There are restrictions on which permissions can be granted to organization members when an organization base role is in place. In this case, the permission being given must be equal to or higher than the org base permission. Otherwise, the request will fail with:
\nCannot assign {member} permission of {role name}\n
\nNote that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the API.
\nUpdating an existing collaborator's permission level
\nThe endpoint can also be used to change the permissions of an existing collaborator without first removing and re-adding the collaborator. To change the permissions, use the same endpoint and pass a different permission
parameter. The response will be a 204
, with no other indication that the permission level changed.
Rate limits
\nYou are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.
", "statusCodes": [ { "httpStatusCode": "201", @@ -176163,7 +176163,7 @@ } ], "previews": [], - "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", + "descriptionHTML": "Commit Comments use these custom media types. You can read more about the use of media types in the API here.
\nComments are ordered by ascending ID.
", "statusCodes": [ { "httpStatusCode": "200", @@ -194919,7 +194919,7 @@ } ], "previews": [], - "descriptionHTML": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"Secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"Environments.\"
\nNote: To create or update name patterns that branches must match in order to deploy to this environment, see \"Deployment branch policies.\"
\nNote: To create or update secrets for an environment, see \"GitHub Actions secrets.\"
\nYou must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.
Response
", + "example": { + "total_commit_comments": 5000, + "total_gist_comments": 400, + "total_issue_comments": 10900, + "total_pull_request_comments": 9900 + }, "schema": { "title": "Enterprise Comment Stats", "type": "object", @@ -199612,6 +199618,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_gists": 500, + "private_gists": 30, + "public_gists": 470 + }, "schema": { "title": "Enterprise Gist Stats", "type": "object", @@ -199665,6 +199676,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_hooks": 50, + "active_hooks": 47, + "inactive_hooks": 3 + }, "schema": { "title": "Hooks Enterprise Stats", "type": "object", @@ -199718,6 +199734,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_issues": 5000, + "open_issues": 300, + "closed_issues": 4700 + }, "schema": { "title": "Enterprise Issue Stats", "type": "object", @@ -199771,6 +199792,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_milestones": 90, + "open_milestones": 10, + "closed_milestones": 80 + }, "schema": { "title": "Enterprise Milestone Stats", "type": "object", @@ -199824,6 +199850,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_orgs": 50, + "disabled_orgs": 1, + "total_teams": 70, + "total_team_members": 700 + }, "schema": { "title": "Enterprise Organization Stats", "type": "object", @@ -199881,6 +199913,9 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pages": 20 + }, "schema": { "title": "Enterprise Pages Stats", "type": "object", @@ -199926,6 +199961,12 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_pulls": 1200, + "merged_pulls": 1100, + "mergeable_pulls": 90, + "unmergeable_pulls": 10 + }, "schema": { "title": "Enterprise Pull Request Stats", "type": "object", @@ -199983,6 +200024,14 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_repos": 200, + "root_repos": 1, + "fork_repos": 10, + "org_repos": 150, + "total_pushes": 39000, + "total_wikis": 5 + }, "schema": { "title": "Repository Enterprise Stats", "type": "object", @@ -200048,6 +200097,11 @@ "statusCode": "200", "contentType": "application/json", "description": "Response
", + "example": { + "total_users": 100, + "admin_users": 3, + "suspended_users": 1 + }, "schema": { "title": "Enterprise User Stats", "type": "object", @@ -201934,7 +201988,7 @@ } ], "previews": [], - "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", + "descriptionHTML": "Updates the distinguished name (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the Create a team endpoint to create a team with LDAP mapping.
", "statusCodes": [ { "httpStatusCode": "200", @@ -231106,10 +231160,10 @@ }, { "name": "ref", - "description": "The name of the fully qualified reference to update. For example, refs/heads/master
. If the value doesn't start with refs
and have at least two slashes, it will be rejected.
The name of the reference to update (for example, heads/featureA
). Can be a branch name (heads/BRANCH_NAME
) or tag name (tags/TAG_NAME
). For more information, see \"Git References\" in the Git documentation.
Lists the most commonly used licenses on GitHub. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -307659,8 +307713,8 @@ } } ], - "descriptionHTML": "", "previews": [], + "descriptionHTML": "Gets information about a specific license. For more information, see \"Licensing a repository .\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -308509,7 +308563,7 @@ }, "response": { "statusCode": "200", - "contentType": "text/plain", + "contentType": "application/json", "description": "Example response
", "example": "Responsive is better than fast", "schema": { @@ -321825,7 +321879,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the list your authorizations API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on the application authorizations settings screen within GitHub. The scopes
returned are the union of scopes authorized for the application. For example, if an application has one token with repo
scope and another token with user
scope, the grant will return [\"repo\", \"user\"]
.
Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -322197,7 +322251,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on the application authorizations settings screen within GitHub.
", "statusCodes": [ { "httpStatusCode": "204", @@ -323089,7 +323143,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -323988,7 +324042,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates OAuth tokens using Basic Authentication. If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use fingerprint
to differentiate between them.
You can also create tokens on GitHub Enterprise Server from the personal access tokens settings page. Read more about these tokens in the GitHub Help documentation.
\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in the GitHub Help documentation.
", "statusCodes": [ { "httpStatusCode": "201", @@ -324922,7 +324976,7 @@ "response": { "statusCode": "201", "contentType": "application/json", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "example": { "id": 1, "url": "https://api.github.com/authorizations/1", @@ -325730,7 +325784,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nDeprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -325738,7 +325792,7 @@ }, { "httpStatusCode": "201", - "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" + "description": "Deprecation Notice: GitHub will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
" }, { "httpStatusCode": "304", @@ -327477,7 +327531,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nWarning: Apps must use the web application flow to obtain OAuth tokens that work with GitHub Enterprise Server SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub Enterprise Server SAML organizations. For more information, see the blog post.
\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. fingerprint
is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.
If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -328334,7 +328388,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "200", @@ -329242,7 +329296,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"Working with two-factor authentication.\"
\nYou can only send one of these scope keys at a time.
", "statusCodes": [ { "httpStatusCode": "200", @@ -329291,7 +329345,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", + "descriptionHTML": "Deprecation Notice: GitHub Enterprise Server will discontinue the OAuth Authorizations API, which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our web application flow. The OAuth Authorizations API will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the blog post.
", "statusCodes": [ { "httpStatusCode": "204", @@ -338555,7 +338609,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "isRequired": true, "childParamsGroups": [ { @@ -339014,7 +339068,7 @@ "type": "object", "name": "config", "in": "body", - "description": "Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -375363,7 +375417,7 @@ } ], "previews": [], - "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", + "descriptionHTML": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub's products in the GitHub Help documentation.
\nLists details of a pull request by providing its number.
\nWhen you get, create, or edit a pull request, GitHub Enterprise Server creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the mergeable
key. For more information, see \"Checking mergeability of pull requests\".
The value of the mergeable
attribute can be true
, false
, or null
. If the value is null
, then GitHub Enterprise Server has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null
value for the mergeable
attribute in the response. If mergeable
is true
, then merge_commit_sha
will be the SHA of the test merge commit.
The value of the merge_commit_sha
attribute changes depending on the state of the pull request. Before merging a pull request, the merge_commit_sha
attribute holds the SHA of the test merge commit. After merging a pull request, the merge_commit_sha
attribute changes depending on how you merged the pull request:
merge_commit_sha
represents the SHA of the merge commit.merge_commit_sha
represents the SHA of the squashed commit on the base branch.merge_commit_sha
represents the commit that the base branch was updated to.Pass the appropriate media type to fetch diff and patch formats.
", "statusCodes": [ { "httpStatusCode": "200", @@ -380087,7 +380141,7 @@ } ], "previews": [], - "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", + "descriptionHTML": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
", "statusCodes": [ { "httpStatusCode": "200", @@ -380561,7 +380615,7 @@ "type": "string", "name": "expected_head_sha", "in": "body", - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a 422 Unprocessable Entity
status. You can use the \"List commits\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See \"Secondary rate limits\" and \"Dealing with secondary rate limits\" for details.
\nPull request reviews created in the PENDING
state are not submitted and therefore do not include the submitted_at
property in the response. To create a pending review for a pull request, leave the event
parameter blank. For more information about submitting a PENDING
review, see \"Submit a review for a pull request.\"
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", + "descriptionHTML": "Note: To dismiss a pull request review on a protected branch, you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.
", "statusCodes": [ { "httpStatusCode": "200", @@ -400282,7 +400336,7 @@ } ], "previews": [], - "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", + "descriptionHTML": "Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see \"Create a review for a pull request.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -400331,40 +400385,70 @@ "resources": { "core": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1691591363 }, "search": { "limit": 30, + "used": 12, "remaining": 18, - "reset": 1372697452, - "used": 12 + "reset": 1691591091 }, "graphql": { "limit": 5000, + "used": 7, "remaining": 4993, - "reset": 1372700389, - "used": 7 + "reset": 1691593228 }, "integration_manifest": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "source_import": { + "limit": 100, + "used": 1, + "remaining": 99, + "reset": 1691591091 }, "code_scanning_upload": { "limit": 500, + "used": 1, "remaining": 499, - "reset": 1551806725, - "used": 1 + "reset": 1691594631 + }, + "actions_runner_registration": { + "limit": 10000, + "used": 0, + "remaining": 10000, + "reset": 1691594631 + }, + "scim": { + "limit": 15000, + "used": 0, + "remaining": 15000, + "reset": 1691594631 + }, + "dependency_snapshots": { + "limit": 100, + "used": 0, + "remaining": 100, + "reset": 1691591091 + }, + "code_search": { + "limit": 10, + "used": 0, + "remaining": 10, + "reset": 1691591091 } }, "rate": { "limit": 5000, + "used": 1, "remaining": 4999, - "reset": 1372700873, - "used": 1 + "reset": 1372700873 } }, "schema": { @@ -400631,7 +400715,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Accessing this endpoint does not count against your REST API rate limit.
\nNote: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Note: Accessing this endpoint does not count against your REST API rate limit.
\nSome categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under resources
, you'll see objects relating to different categories:
core
object provides your rate limit status for all non-search-related resources in the REST API.search
object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see \"Search.\"code_search
object provides your rate limit status for the REST API for searching code. For more information, see \"Search code.\"graphql
object provides your rate limit status for the GraphQL API. For more information, see \"Resource limitations.\"integration_manifest
object provides your rate limit status for the POST /app-manifests/{code}/conversions
operation. For more information, see \"Creating a GitHub App from a manifest.\"dependency_snapshots
object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see \"Dependency graph.\"code_scanning_upload
object provides your rate limit status for uploading SARIF results to code scanning. For more information, see \"Uploading a SARIF file to GitHub.\"actions_runner_registration
object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see \"Self-hosted runners.\"source_import
object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see \"API Versions.\"Note: The rate
object is deprecated. If you're writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -401005,7 +401089,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -401613,7 +401697,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
.
Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -402054,7 +402138,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -402651,7 +402735,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions
.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team or organization with team_id
and org_id
using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id
.
Delete a reaction to a team discussion. OAuth access tokens require the write:discussion
scope.
Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
", "in": "query", "required": false, "schema": { @@ -403082,7 +403166,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a commit comment.
", + "descriptionHTML": "List the reactions to a commit comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -403135,7 +403219,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the commit comment.
", + "description": "The reaction type to add to the commit comment.
", "isRequired": true, "enum": [ "+1", @@ -403683,7 +403767,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Create a reaction to a commit comment. A response with an HTTP 200
status means that you already added the reaction type to this commit comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to a commit comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -403811,7 +403895,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
", "in": "query", "required": false, "schema": { @@ -404118,7 +404202,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue comment.
", + "descriptionHTML": "List the reactions to an issue comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -404171,7 +404255,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue comment.
", + "description": "The reaction type to add to the issue comment.
", "isRequired": true, "enum": [ "+1", @@ -404719,7 +404803,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Create a reaction to an issue comment. A response with an HTTP 200
status means that you already added the reaction type to this issue comment.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
Delete a reaction to an issue comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -404847,7 +404931,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to an issue.
", "in": "query", "required": false, "schema": { @@ -405154,7 +405238,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to an issue.
", + "descriptionHTML": "List the reactions to an issue.
", "statusCodes": [ { "httpStatusCode": "200", @@ -405211,7 +405295,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the issue.
", + "description": "The reaction type to add to the issue.
", "isRequired": true, "enum": [ "+1", @@ -405759,7 +405843,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id
.
Delete a reaction to an issue.
", "statusCodes": [ { "httpStatusCode": "204", @@ -405887,7 +405971,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
", "in": "query", "required": false, "schema": { @@ -406194,7 +406278,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a pull request review comment.
", + "descriptionHTML": "List the reactions to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "200", @@ -406247,7 +406331,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the pull request review comment.
", + "description": "The reaction type to add to the pull request review comment.
", "isRequired": true, "enum": [ "+1", @@ -406795,7 +406879,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Create a reaction to a pull request review comment. A response with an HTTP 200
status means that you already added the reaction type to this pull request review comment.
Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.
Delete a reaction to a pull request review comment.
", "statusCodes": [ { "httpStatusCode": "204", @@ -406923,7 +407007,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a release.
", "in": "query", "required": false, "schema": { @@ -407228,7 +407312,7 @@ } ], "previews": [], - "descriptionHTML": "List the reactions to a release.
", + "descriptionHTML": "List the reactions to a release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -407281,7 +407365,7 @@ "type": "string", "name": "content", "in": "body", - "description": "The reaction type to add to the release.
", + "description": "The reaction type to add to the release.
", "isRequired": true, "enum": [ "+1", @@ -407827,7 +407911,7 @@ } ], "previews": [], - "descriptionHTML": "Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", + "descriptionHTML": "Note: You can also specify a repository by repository_id
using the route DELETE delete /repositories/:repository_id/releases/:release_id/reactions/:reaction_id
.
Delete a reaction to a release.
", "statusCodes": [ { "httpStatusCode": "204", @@ -407955,7 +408039,7 @@ }, { "name": "content", - "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
", "in": "query", "required": false, "schema": { @@ -408262,7 +408346,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment
endpoint.
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion comment.
", + "description": "The reaction type to add to the team discussion comment.
", "isRequired": true, "enum": [ "+1", @@ -408594,7 +408678,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Create reaction for a team discussion comment\" endpoint.
\nCreate a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", + "description": "Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.
", "in": "query", "required": false, "schema": { @@ -408936,7 +409020,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion
endpoint.
List the reactions to a team discussion. OAuth access tokens require the read:discussion
scope.
The reaction type to add to the team discussion.
", + "description": "The reaction type to add to the team discussion.
", "isRequired": true, "enum": [ "+1", @@ -409258,7 +409342,7 @@ } ], "previews": [], - "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion
endpoint.
Create a reaction to a team discussion. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion.
Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", + "descriptionHTML": "Generate a name and body describing a release. The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release.
", "statusCodes": [ { "httpStatusCode": "200", @@ -415393,7 +415477,7 @@ } ], "previews": [], - "descriptionHTML": "This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in\nthe response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
\nMost libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.
\nWhen an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
\nrelease_id
query the GET /repos/{owner}/{repo}/releases/latest
endpoint. You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
+ "You can set the visibility of a repository using the new visibility
parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.nebula-preview+json\n
",
"The is_template
and template_repository
keys are currently available for developer to preview. See Create a repository using a template to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom media type in the Accept
header:
application/vnd.github.baptiste-preview+json\n
"
]
},
@@ -443445,7 +443529,7 @@
}
],
"previews": [],
- "descriptionHTML": "Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Gets the contents of a file or directory in a repository. Specify the file path or directory in :path
. If you omit\n:path
, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories.
Files and symlinks support a custom media type for\nretrieving the raw content or rendered HTML (when supported). All content types support a custom media\ntype to ensure the content is returned in a consistent\nobject format.
\nNotes:
\nTo get a repository's contents recursively, you can recursively get the tree.
\nThis API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the Git Trees\nAPI.
\nDownload URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.\nSize limits:\nIf the requested file's size is:
\n1 MB or smaller: All features of this endpoint are supported.
\nBetween 1-100 MB: Only the raw
or object
custom media types are supported. Both will work as normal, except that when using the object
media type, the content
field will be an empty string and the encoding
field will be \"none\"
. To get the contents of these larger files, use the raw
media type.
Greater than 100 MB: This endpoint is not supported.
\nIf the content is a directory:\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\nshould be \"submodule\". This behavior exists in API v3 for backwards compatibility purposes.\nIn the next major version of the API, the type will be returned as \"submodule\".
\n If the content is a symlink:\nIf the requested :path
points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object\ndescribing the symlink itself.
If the content is a submodule:\nThe submodule_git_url
identifies the location of the submodule repository, and the sha
identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.
If the submodule repository is not hosted on github.com, the Git URLs (git_url
and _links[\"git\"]
) and the\ngithub.com URLs (html_url
and _links[\"html\"]
) will have null values.
Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the workflow
scope to use this endpoint.
Note: If you use this endpoint and the \"Delete a file\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -444404,7 +444488,7 @@ } ], "previews": [], - "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", + "descriptionHTML": "Deletes a file in a repository.
\nYou can provide an additional committer
parameter, which is an object containing information about the committer. Or, you can provide an author
parameter, which is an object containing information about the author.
The author
section is optional and is filled in with the committer
information if omitted. If the committer
information is omitted, the authenticated user's information is used.
You must provide values for both name
and email
, whether you choose to use author
or committer
. Otherwise, you'll receive a 422
status code.
Note: If you use this endpoint and the \"Create or update file contents\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
", "statusCodes": [ { "httpStatusCode": "200", @@ -444613,7 +444697,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the preferred README for a repository.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -444825,7 +444909,7 @@ } ], "previews": [], - "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", + "descriptionHTML": "Gets the README from a repository directory.
\nREADMEs support custom media types for retrieving the raw content or rendered HTML.
", "statusCodes": [ { "httpStatusCode": "200", @@ -452619,7 +452703,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -452628,7 +452712,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Sorts the results of your query. Can only be indexed
, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: best match
Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.Searches for query terms inside of a file. This method returns up to 100 results per page.
\nWhen searching for code, you can get text match metadata for the file content and file path fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find the definition of the addClass
function inside jQuery repository, your query would look something like this:
q=addClass+in:file+language:js+repo:jquery/jquery
This query searches for the keyword addClass
within a file's contents. The query limits the search to files where the language is JavaScript in the jquery/jquery
repository.
Considerations for code search:
\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:
\nmaster
branch.language:go
is not valid, while amazing language:go
is.The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -453727,7 +453811,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by author-date
or committer-date
. Default: best match
Sorts the results of your query by author-date
or committer-date
. Default: best match
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
Find commits via various criteria on the default branch (usually main
). This method returns up to 100 results per page.
When searching for commits, you can get text match metadata for the message field when you provide the text-match
media type. For more details about how to receive highlighted search results, see Text match\nmetadata.
For example, if you want to find commits related to CSS in the octocat/Spoon-Knife repository. Your query would look something like this:
\nq=repo:octocat/Spoon-Knife+css
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -455176,7 +455260,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Sorts the results of your query by the number of comments
, reactions
, reactions-+1
, reactions--1
, reactions-smile
, reactions-thinking_face
, reactions-heart
, reactions-tada
, or interactions
. You can also sort results by how recently the items were created
or updated
, Default: best match
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
Find issues by state and keyword. This method returns up to 100 results per page.
\nWhen searching for issues, you can get text match metadata for the issue title, issue body, and issue comment body fields when you pass the text-match
media type. For more details about how to receive highlighted\nsearch results, see Text match metadata.
For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
\nq=windows+label:bug+language:python+state:open&sort=created&order=asc
This query searches for the keyword windows
, within any open issue that is labeled as bug
. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
Note: For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the is:issue
or is:pull-request
qualifier will receive an HTTP 422 Unprocessable Entity
response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the is
qualifier, see \"Searching only issues or pull requests.\"
The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -458345,7 +458429,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by when the label was created
or updated
. Default: best match
Sorts the results of your query by when the label was created
or updated
. Default: best match
Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", + "descriptionHTML": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results per page.
\nWhen searching for labels, you can get text match metadata for the label name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to find labels in the linguist
repository that match bug
, defect
, or enhancement
. Your query might look like this:
q=bug+defect+enhancement&repository_id=64778136
The labels that best match the query appear first in the search results.
", "statusCodes": [ { "httpStatusCode": "200", @@ -458571,7 +458655,7 @@ "parameters": [ { "name": "q", - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -458580,7 +458664,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Sorts the results of your query by number of stars
, forks
, or help-wanted-issues
or how recently the items were updated
. Default: best match
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
Find repositories via various criteria. This method returns up to 100 results per page.
\nWhen searching for repositories, you can get text match metadata for the name and description fields when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:
\nq=tetris+language:assembly&sort=stars&order=desc
This query searches for repositories with the word tetris
in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query.
", "in": "query", "required": true, "schema": { @@ -459803,7 +459887,7 @@ } ], "previews": [], - "descriptionHTML": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results per page. See \"Searching topics\" for a detailed list of qualifiers.
\nWhen searching for topics, you can get text match metadata for the topic's short_description, description, name, or display_name field when you pass the text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:
\nq=ruby+is:featured
This query searches for topics with the keyword ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub Enterprise Server. The REST API supports the same qualifiers as the web interface for GitHub Enterprise Server. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers.
", "in": "query", "required": true, "schema": { @@ -459834,7 +459918,7 @@ }, { "name": "sort", - "description": "Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Sorts the results of your query by number of followers
or repositories
, or when the person joined
GitHub Enterprise Server. Default: best match
Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", + "descriptionHTML": "Find users via various criteria. This method returns up to 100 results per page.
\nWhen searching for users, you can get text match metadata for the issue login, public email, and name fields when you pass the text-match
media type. For more details about highlighting search results, see Text match metadata. For more details about how to receive highlighted search results, see Text match metadata.
For example, if you're looking for a list of popular users, you might try this query:
\nq=tom+repos:%3E42+followers:%3E1000
This query searches for users with the name tom
. The results are restricted to users with more than 42 repositories and over 1,000 followers.
This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see \"GraphQL Queries.\"
", "statusCodes": [ { "httpStatusCode": "200", @@ -480082,7 +480166,7 @@ } ], "previews": [], - "descriptionHTML": "Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Note: Repositories inherited through a parent team will also be checked.
\nDeprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a repository endpoint.
\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom media type via the Accept
header:
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new \"Add or update team repository permissions\" endpoint.
\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a 422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.
Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see \"HTTP verbs.\"
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", + "descriptionHTML": "Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
", "statusCodes": [ { "httpStatusCode": "204", @@ -494321,7 +494405,7 @@ } ], "previews": [], - "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", + "descriptionHTML": "Provides publicly available information about someone with a GitHub account.
\nGitHub Apps with the Plan
user permission can use this endpoint to retrieve information about a user's GitHub Enterprise Server plan. The GitHub App must be authenticated as a user. See \"Identifying and authorizing users for GitHub Apps\" for details about authentication. For an example response, see 'Response with GitHub Enterprise Server plan information' below\"
The email
key in the following response is the publicly visible email address from your GitHub Enterprise Server profile page. When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for email
, then it will have a value of null
. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see Authentication.
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"Emails API\".
", "statusCodes": [ { "httpStatusCode": "200", @@ -498911,7 +498995,7 @@ } ], "previews": [], - "descriptionHTML": "Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Returns the webhook configuration for a repository. To get more information about the webhook, including the active
state and events
, use \"Get a repository webhook.\"
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use \"Update a repository webhook.\"
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -500662,7 +500746,7 @@ } ], "previews": [], - "descriptionHTML": "Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Returns a webhook configured in a repository. To get only the webhook config
properties, see \"Get a webhook configuration for a repository.\"
Key/value pairs to provide settings for this webhook. These are defined below.
", + "description": "Key/value pairs to provide settings for this webhook.
", "childParamsGroups": [ { "type": "string", @@ -501037,7 +501121,7 @@ } ], "previews": [], - "descriptionHTML": "Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use \"Update a webhook configuration for a repository.\"
A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9437,7 +9437,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10335,7 +10335,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11231,7 +11231,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14340,7 +14340,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -18939,7 +18939,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -30006,7 +30006,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -30736,7 +30736,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -46477,7 +46477,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46694,7 +46694,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46797,7 +46797,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46900,7 +46900,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47003,7 +47003,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47108,7 +47108,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47372,7 +47372,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47641,9 +47641,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -47844,6 +47844,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -47928,7 +47931,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -47952,7 +47955,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48483,7 +48486,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -48537,7 +48540,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49069,7 +49072,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -49145,7 +49148,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49677,7 +49680,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -49867,7 +49870,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51212,7 +51215,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -51280,7 +51283,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -52947,7 +52950,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -54342,7 +54345,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -56088,7 +56091,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58102,7 +58105,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59445,7 +59448,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -60846,7 +60849,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -62872,7 +62875,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -64334,7 +64337,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -65679,7 +65682,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -67142,7 +67145,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -70891,7 +70894,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -71579,10 +71582,10 @@ "category": "merge_group" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -71590,6 +71593,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -71601,39 +71607,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -71641,26 +71672,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -71670,3294 +71714,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -79963,7 +76801,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -119234,7 +116072,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -139354,7 +136192,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -142796,7 +139634,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -146259,7 +143097,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -159386,7 +156224,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -166124,7 +162962,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -166151,7 +162989,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -168905,7 +165746,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -168943,7 +165784,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -169465,7 +166306,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -169551,7 +166392,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -170072,7 +166913,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -170139,7 +166980,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -170206,7 +167047,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -170244,7 +167085,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -170765,7 +167606,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -173415,7 +170256,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -173425,6 +170266,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -173483,7 +170327,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -184094,7 +180938,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", @@ -188163,7 +185007,7 @@ }, "waiting": { "descriptionHtml": "A job in a workflow run was created and is waiting for approvals.
", - "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow.
\nFor more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, see the workflow_run
event.
To install this event on a GitHub App, the app must have at least read-level access for the Actions metadata permission.
", + "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see \"Workflow jobs\" in the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, use the workflow_run
event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Actions\" repository permission.
", "bodyParameters": [ { "type": "string", diff --git a/src/webhooks/data/ghae/schema.json b/src/webhooks/data/ghae/schema.json index da498ea5ba41..59a7d3ed5198 100644 --- a/src/webhooks/data/ghae/schema.json +++ b/src/webhooks/data/ghae/schema.json @@ -2,7 +2,7 @@ "branch_protection_rule": { "created": { "descriptionHtml": "A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9437,7 +9437,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10335,7 +10335,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11231,7 +11231,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14340,7 +14340,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -18939,7 +18939,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -30006,7 +30006,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -30736,7 +30736,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -45234,7 +45234,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45451,7 +45451,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45554,7 +45554,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45657,7 +45657,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45760,7 +45760,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45865,7 +45865,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46129,7 +46129,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46398,9 +46398,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -46601,6 +46601,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -46685,7 +46688,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -46709,7 +46712,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -47240,7 +47243,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -47294,7 +47297,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -47826,7 +47829,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -47902,7 +47905,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48434,7 +48437,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -48624,7 +48627,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49969,7 +49972,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -50037,7 +50040,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51704,7 +51707,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -53099,7 +53102,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -54845,7 +54848,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -56859,7 +56862,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58202,7 +58205,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59603,7 +59606,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -61629,7 +61632,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -63091,7 +63094,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -64436,7 +64439,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -65899,7 +65902,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -68576,7 +68579,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -68941,10 +68944,10 @@ "category": "membership" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -68952,6 +68955,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -68963,39 +68969,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -69003,26 +69034,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -69032,3294 +69076,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -76959,7 +73797,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -106680,7 +103518,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -126800,7 +123638,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -130242,7 +127080,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -133705,7 +130543,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -146832,7 +143670,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -153570,7 +150408,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -153597,7 +150435,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -156351,7 +153192,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -156389,7 +153230,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -156911,7 +153752,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -156984,7 +153825,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -157505,7 +154346,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -157572,7 +154413,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -157639,7 +154480,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -157677,7 +154518,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -158198,7 +155039,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -159264,7 +156105,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -159274,6 +156115,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -159332,7 +156176,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -164011,7 +160855,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", diff --git a/src/webhooks/data/ghec/schema.json b/src/webhooks/data/ghec/schema.json index 86f63a70f455..86eb50ede5ac 100644 --- a/src/webhooks/data/ghec/schema.json +++ b/src/webhooks/data/ghec/schema.json @@ -2,7 +2,7 @@ "branch_protection_rule": { "created": { "descriptionHtml": "A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9437,7 +9437,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10335,7 +10335,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11231,7 +11231,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14340,7 +14340,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -18939,7 +18939,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -30006,7 +30006,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -30736,7 +30736,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -46477,7 +46477,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46694,7 +46694,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46797,7 +46797,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46900,7 +46900,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47003,7 +47003,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47108,7 +47108,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47372,7 +47372,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -47641,9 +47641,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -47844,6 +47844,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -47928,7 +47931,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -47952,7 +47955,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48483,7 +48486,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -48537,7 +48540,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49069,7 +49072,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -49145,7 +49148,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49677,7 +49680,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -49867,7 +49870,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51212,7 +51215,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -51280,7 +51283,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -52947,7 +52950,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -54342,7 +54345,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -56088,7 +56091,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58102,7 +58105,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59445,7 +59448,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -60846,7 +60849,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -62872,7 +62875,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -64334,7 +64337,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -65679,7 +65682,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -67142,7 +67145,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -70891,7 +70894,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -71579,10 +71582,10 @@ "category": "merge_group" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -71590,6 +71593,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -71601,39 +71607,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -71641,26 +71672,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -71670,3294 +71714,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -79963,7 +76801,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -119234,7 +116072,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -139354,7 +136192,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -142796,7 +139634,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -146259,7 +143097,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -159386,7 +156224,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -166124,7 +162962,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -166151,7 +162989,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -168905,7 +165746,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -168943,7 +165784,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -169465,7 +166306,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -169551,7 +166392,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -170072,7 +166913,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -170139,7 +166980,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -170206,7 +167047,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -170244,7 +167085,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -170765,7 +167606,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -173415,7 +170256,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -173425,6 +170266,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -173483,7 +170327,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -184094,7 +180938,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", @@ -188163,7 +185007,7 @@ }, "waiting": { "descriptionHtml": "A job in a workflow run was created and is waiting for approvals.
", - "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow.
\nFor more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, see the workflow_run
event.
To install this event on a GitHub App, the app must have at least read-level access for the Actions metadata permission.
", + "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see \"Workflow jobs\" in the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, use the workflow_run
event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Actions\" repository permission.
", "bodyParameters": [ { "type": "string", diff --git a/src/webhooks/data/ghes-3.10/schema.json b/src/webhooks/data/ghes-3.10/schema.json index 821abdaaf1c7..2a6249c4f429 100644 --- a/src/webhooks/data/ghes-3.10/schema.json +++ b/src/webhooks/data/ghes-3.10/schema.json @@ -2,7 +2,7 @@ "branch_protection_rule": { "created": { "descriptionHtml": "A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9515,7 +9515,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10413,7 +10413,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11309,7 +11309,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14418,7 +14418,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -17853,7 +17853,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -28920,7 +28920,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -29650,7 +29650,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -45451,7 +45451,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45668,7 +45668,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45771,7 +45771,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45874,7 +45874,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -45977,7 +45977,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46082,7 +46082,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46346,7 +46346,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -46615,9 +46615,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -46813,6 +46813,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -46897,7 +46900,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -46921,7 +46924,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -47452,7 +47455,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -47506,7 +47509,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48038,7 +48041,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -48114,7 +48117,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48646,7 +48649,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -48836,7 +48839,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -50181,7 +50184,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -50249,7 +50252,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51916,7 +51919,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -53311,7 +53314,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -55057,7 +55060,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -57071,7 +57074,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58414,7 +58417,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59815,7 +59818,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -61841,7 +61844,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -63303,7 +63306,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -64648,7 +64651,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -66111,7 +66114,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -68788,7 +68791,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -69153,10 +69156,10 @@ "category": "membership" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -69164,6 +69167,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -69175,39 +69181,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -69215,26 +69246,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -69244,3294 +69288,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -77171,7 +74009,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -110011,7 +106849,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -130131,7 +126969,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -133573,7 +130411,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -137036,7 +133874,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -150163,7 +147001,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -156901,7 +153739,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -156928,7 +153766,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -159682,7 +156523,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -159720,7 +156561,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -160242,7 +157083,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -160328,7 +157169,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -160849,7 +157690,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -160916,7 +157757,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -160983,7 +157824,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -161021,7 +157862,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -161542,7 +158383,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -162608,7 +159449,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -162618,6 +159459,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -162676,7 +159520,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -169035,7 +165879,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", @@ -173460,7 +170304,7 @@ }, "waiting": { "descriptionHtml": "A job in a workflow run was created and is waiting for approvals.
", - "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow.
\nFor more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, see the workflow_run
event.
To install this event on a GitHub App, the app must have at least read-level access for the Actions metadata permission.
", + "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see \"Workflow jobs\" in the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, use the workflow_run
event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Actions\" repository permission.
", "bodyParameters": [ { "type": "string", diff --git a/src/webhooks/data/ghes-3.7/schema.json b/src/webhooks/data/ghes-3.7/schema.json index f32124f200a5..2cdc80db1b57 100644 --- a/src/webhooks/data/ghes-3.7/schema.json +++ b/src/webhooks/data/ghes-3.7/schema.json @@ -2,7 +2,7 @@ "branch_protection_rule": { "created": { "descriptionHtml": "A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9216,7 +9216,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10114,7 +10114,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11010,7 +11010,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14119,7 +14119,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -17554,7 +17554,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -24882,7 +24882,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -25612,7 +25612,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -40263,7 +40263,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40480,7 +40480,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40583,7 +40583,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40686,7 +40686,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40789,7 +40789,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40894,7 +40894,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -41158,7 +41158,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -41427,9 +41427,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -41625,6 +41625,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -41709,7 +41712,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -41733,7 +41736,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -42264,7 +42267,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -42318,7 +42321,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -42850,7 +42853,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -42926,7 +42929,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -43458,7 +43461,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -43648,7 +43651,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -44993,7 +44996,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -45061,7 +45064,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -46728,7 +46731,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48123,7 +48126,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49869,7 +49872,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51883,7 +51886,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -53226,7 +53229,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -54627,7 +54630,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -56653,7 +56656,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58115,7 +58118,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59460,7 +59463,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -60923,7 +60926,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -63581,7 +63584,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -63927,10 +63930,10 @@ "category": "membership" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -63938,6 +63941,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -63949,39 +63955,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -63989,26 +64020,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -64018,3294 +64062,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -71945,7 +68783,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -100779,7 +97617,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -120899,7 +117737,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -124341,7 +121179,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -127804,7 +124642,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -140931,7 +137769,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -147669,7 +144507,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -147696,7 +144534,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -150450,7 +147291,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -150488,7 +147329,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -151010,7 +147851,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151083,7 +147924,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -151604,7 +148445,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151671,7 +148512,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151738,7 +148579,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151776,7 +148617,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -152297,7 +149138,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -153363,7 +150204,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -153373,6 +150214,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -153431,7 +150275,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -159746,7 +156590,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", diff --git a/src/webhooks/data/ghes-3.8/schema.json b/src/webhooks/data/ghes-3.8/schema.json index c894cdf7561e..7672909fcfd5 100644 --- a/src/webhooks/data/ghes-3.8/schema.json +++ b/src/webhooks/data/ghes-3.8/schema.json @@ -2,7 +2,7 @@ "branch_protection_rule": { "created": { "descriptionHtml": "A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9216,7 +9216,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10114,7 +10114,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11010,7 +11010,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14119,7 +14119,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -17554,7 +17554,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -24882,7 +24882,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -25612,7 +25612,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -40263,7 +40263,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40480,7 +40480,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40583,7 +40583,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40686,7 +40686,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40789,7 +40789,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -40894,7 +40894,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -41158,7 +41158,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -41427,9 +41427,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -41625,6 +41625,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -41709,7 +41712,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -41733,7 +41736,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -42264,7 +42267,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -42318,7 +42321,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -42850,7 +42853,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -42926,7 +42929,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -43458,7 +43461,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -43648,7 +43651,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -44993,7 +44996,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -45061,7 +45064,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -46728,7 +46731,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48123,7 +48126,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49869,7 +49872,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51883,7 +51886,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -53226,7 +53229,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -54627,7 +54630,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -56653,7 +56656,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58115,7 +58118,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59460,7 +59463,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -60923,7 +60926,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -63581,7 +63584,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -63927,10 +63930,10 @@ "category": "membership" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -63938,6 +63941,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -63949,39 +63955,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -63989,26 +64020,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -64018,3294 +64062,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -71945,7 +68783,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -100779,7 +97617,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -120899,7 +117737,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -124341,7 +121179,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -127804,7 +124642,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -140931,7 +137769,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -147669,7 +144507,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -147696,7 +144534,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -150450,7 +147291,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -150488,7 +147329,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -151010,7 +147851,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151083,7 +147924,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -151604,7 +148445,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151671,7 +148512,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151738,7 +148579,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151776,7 +148617,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -152297,7 +149138,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -153363,7 +150204,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -153373,6 +150214,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -153431,7 +150275,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -159774,7 +156618,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", @@ -164072,7 +160916,7 @@ }, "waiting": { "descriptionHtml": "A job in a workflow run was created and is waiting for approvals.
", - "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow.
\nFor more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, see the workflow_run
event.
To install this event on a GitHub App, the app must have at least read-level access for the Actions metadata permission.
", + "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see \"Workflow jobs\" in the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, use the workflow_run
event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Actions\" repository permission.
", "bodyParameters": [ { "type": "string", diff --git a/src/webhooks/data/ghes-3.9/schema.json b/src/webhooks/data/ghes-3.9/schema.json index e82106fc8fab..7df02682bf12 100644 --- a/src/webhooks/data/ghes-3.9/schema.json +++ b/src/webhooks/data/ghes-3.9/schema.json @@ -2,7 +2,7 @@ "branch_protection_rule": { "created": { "descriptionHtml": "A branch protection rule was created.
", - "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission
", + "summaryHtml": "This event occurs when there is activity relating to branch protection rules. For more information, see \"About protected branches.\" For information about the APIs to manage branch protection rules, see the GraphQL documentation or \"Branch protection\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Administration\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -9436,7 +9436,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -10334,7 +10334,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -11230,7 +11230,7 @@ "type": "object", "name": "check_suite", "in": "body", - "description": "The check_suite.
", + "description": "The check_suite.
", "isRequired": true, "childParamsGroups": [ { @@ -14339,7 +14339,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The commit comment resource.
", + "description": "The commit comment resource.
", "isRequired": true, "childParamsGroups": [ { @@ -17774,7 +17774,7 @@ "type": "object", "name": "key", "in": "body", - "description": "The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deploy key
resource.
The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -25102,7 +25102,7 @@ "type": "object", "name": "deployment", "in": "body", - "description": "The deployment.
", + "description": "The deployment.
", "isRequired": true, "childParamsGroups": [ { @@ -25832,7 +25832,7 @@ "type": "object", "name": "deployment_status", "in": "body", - "description": "The deployment status.
", + "description": "The deployment status.
", "isRequired": true, "childParamsGroups": [ { @@ -41633,7 +41633,7 @@ "installation": { "created": { "descriptionHtml": "Someone installed a GitHub App on a user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -41850,7 +41850,7 @@ }, "deleted": { "descriptionHtml": "Someone uninstalled a GitHub App from their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -41953,7 +41953,7 @@ }, "new_permissions_accepted": { "descriptionHtml": "Someone granted new permissions to a GitHub App.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -42056,7 +42056,7 @@ }, "suspend": { "descriptionHtml": "Someone blocked access by a GitHub App to their user or organization account.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -42159,7 +42159,7 @@ }, "unsuspend": { "descriptionHtml": "A GitHub App that was blocked from accessing a user or organization account was given access the account again.
", - "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -42264,7 +42264,7 @@ "installation_repositories": { "added": { "descriptionHtml": "A GitHub App installation was granted access to one or more repositories.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -42528,7 +42528,7 @@ }, "removed": { "descriptionHtml": "Access to one or more repositories was revoked for a GitHub App installation.
", - "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.
\nFor more information about GitHub Apps, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "string", @@ -42797,9 +42797,9 @@ } }, "installation_target": { - "default": { + "renamed": { "descriptionHtml": "Somebody renamed the user or organization account that a GitHub App is installed on.
", - "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", + "summaryHtml": "This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see \"About apps.\" For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or \"Apps\" in the REST API documentation.
", "bodyParameters": [ { "type": "object", @@ -42995,6 +42995,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "renamed" + ], "childParamsGroups": [] }, { @@ -43079,7 +43082,7 @@ "availability": [ "app" ], - "action": "default", + "action": "renamed", "category": "installation_target" } }, @@ -43103,7 +43106,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -43634,7 +43637,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -43688,7 +43691,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -44220,7 +44223,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -44296,7 +44299,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -44828,7 +44831,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue the comment belongs to.
", + "description": "The issue the comment belongs to.
", "isRequired": true }, { @@ -45018,7 +45021,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -46363,7 +46366,7 @@ "type": "", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true }, { @@ -46431,7 +46434,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -48098,7 +48101,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -49493,7 +49496,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -51239,7 +51242,7 @@ { "type": "object or null", "name": "old_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -53253,7 +53256,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -54596,7 +54599,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -55997,7 +56000,7 @@ { "type": "object", "name": "new_issue", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -58023,7 +58026,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -59485,7 +59488,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -60830,7 +60833,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -62293,7 +62296,7 @@ "type": "object", "name": "issue", "in": "body", - "description": "The issue itself.
", + "description": "The issue itself.
", "isRequired": true, "childParamsGroups": [ { @@ -64951,7 +64954,7 @@ }, "removed": { "descriptionHtml": "An organization member was removed from a team.
", - "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the API to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", + "summaryHtml": "This event occurs when there is activity relating to team membership. For more information, see \"About teams.\" For more information about the APIs to manage team memberships, see the GraphQL API documentation or \"Team members\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Members\" organization permission.
", "bodyParameters": [ { "type": "string", @@ -65297,10 +65300,10 @@ "category": "membership" } }, - "merge_queue_entry": { - "default": { - "descriptionHtml": "A pull request was removed from a merge queue.
", - "summaryHtml": "This event occurs when there is activity relating to a pull requests in a merge queue. For more information, see \"Automatically merging a pull request.\"
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
\nNote: The pull request merge queue feature is currently in limited private beta and subject to change.
", + "meta": { + "deleted": { + "descriptionHtml": "The webhook was deleted.
", + "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", "bodyParameters": [ { "type": "string", @@ -65308,6 +65311,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "deleted" + ], "childParamsGroups": [] }, { @@ -65319,39 +65325,64 @@ }, { "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "merge_queue", + "name": "hook", "in": "body", - "description": "", + "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", "isRequired": true, "childParamsGroups": [ { - "type": "integer", - "name": "id", + "type": "boolean", + "name": "active", "description": "", "isRequired": true }, + { + "type": "object", + "name": "config", + "description": "", + "isRequired": true, + "childParamsGroups": [ + { + "type": "string", + "name": "content_type", + "description": "", + "isRequired": true, + "enum": [ + "json", + "form" + ] + }, + { + "type": "string", + "name": "insecure_ssl", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "secret", + "description": "" + }, + { + "type": "string", + "name": "url", + "description": "", + "isRequired": true + } + ] + }, { "type": "string", - "name": "node_id", + "name": "created_at", "description": "", "isRequired": true - } - ] - }, - { - "type": "object or null", - "name": "merge_queue_entry", - "in": "body", - "description": "", - "isRequired": true, - "childParamsGroups": [ + }, + { + "type": "array of strings", + "name": "events", + "description": "", + "isRequired": true + }, { "type": "integer", "name": "id", @@ -65359,26 +65390,39 @@ "isRequired": true }, { - "type": "boolean", - "name": "is_solo", + "type": "string", + "name": "name", "description": "", "isRequired": true }, { "type": "string", - "name": "node_id", + "name": "type", + "description": "", + "isRequired": true + }, + { + "type": "string", + "name": "updated_at", "description": "", "isRequired": true } ] }, { - "type": "string or null", - "name": "message", + "type": "integer", + "name": "hook_id", "in": "body", - "description": "", + "description": "The id of the modified webhook.
", "isRequired": true }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, { "type": "object", "name": "organization", @@ -65388,3294 +65432,88 @@ }, { "type": "object", - "name": "pull_request", + "name": "repository", + "in": "body", + "description": "A repository on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "sender", + "in": "body", + "description": "A GitHub user.
", + "childParamsGroups": [] + } + ], + "availability": [ + "marketplace", + "business", + "repository", + "organization", + "app" + ], + "action": "deleted", + "category": "meta" + } + }, + "milestone": { + "closed": { + "descriptionHtml": "A milestone was closed.
", + "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", + "bodyParameters": [ + { + "type": "string", + "name": "action", "in": "body", "description": "", "isRequired": true, + "enum": [ + "closed" + ], + "childParamsGroups": [] + }, + { + "type": "object", + "name": "enterprise", + "in": "body", + "description": "An enterprise on GitHub.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "installation", + "in": "body", + "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", + "childParamsGroups": [] + }, + { + "type": "object", + "name": "milestone", + "in": "body", + "description": "A collection of related issues and pull requests.
", + "isRequired": true, "childParamsGroups": [ { - "type": "object", - "name": "_links", + "type": "string or null", + "name": "closed_at", "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "object", - "name": "comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "commits", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "html", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "issue", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comment", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "review_comments", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "self", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "object", - "name": "statuses", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "href", - "description": "", - "isRequired": true - } - ] - } - ] + "isRequired": true }, { - "type": "string or null", - "name": "active_lock_reason", + "type": "integer", + "name": "closed_issues", "description": "", - "isRequired": true, - "enum": [ - "resolved", - "off-topic", - "too heated", - "spam", - null - ] + "isRequired": true }, { - "type": "integer", - "name": "additions", - "description": "" + "type": "string", + "name": "created_at", + "description": "", + "isRequired": true }, { "type": "object or null", - "name": "assignee", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "array of object,nulls", - "name": "assignees", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "author_association", - "description": "How the author is associated with the repository.
", - "isRequired": true, - "enum": [ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER" - ] - }, - { - "type": "object or null", - "name": "auto_merge", - "description": "The status of auto merging a pull request.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "commit_message", - "description": "Commit message for the merge commit.
", - "isRequired": true - }, - { - "type": "string", - "name": "commit_title", - "description": "Title for the merge commit message.
", - "isRequired": true - }, - { - "type": "object or null", - "name": "enabled_by", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string", - "name": "merge_method", - "description": "The merge method to use.
", - "isRequired": true, - "enum": [ - "merge", - "squash", - "rebase" - ] - } - ] - }, - { - "type": "object", - "name": "base", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string or null", - "name": "body", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "changed_files", - "description": "" - }, - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "comments", - "description": "" - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "commits", - "description": "" - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "deletions", - "description": "" - }, - { - "type": "string", - "name": "diff_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "draft", - "description": "Indicates whether or not the pull request is a draft.
", - "isRequired": true - }, - { - "type": "object", - "name": "head", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "label", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ref", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "repo", - "description": "A git repository
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "allow_auto_merge", - "description": "Whether to allow auto-merge for pull requests.
", - "default": false - }, - { - "type": "boolean", - "name": "allow_forking", - "description": "Whether to allow private forks
" - }, - { - "type": "boolean", - "name": "allow_merge_commit", - "description": "Whether to allow merge commits for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_rebase_merge", - "description": "Whether to allow rebase merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_squash_merge", - "description": "Whether to allow squash merges for pull requests.
", - "default": true - }, - { - "type": "boolean", - "name": "allow_update_branch", - "description": "" - }, - { - "type": "string", - "name": "archive_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "archived", - "description": "Whether the repository is archived.
", - "isRequired": true, - "default": false - }, - { - "type": "string", - "name": "assignees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "blobs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "branches_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "clone_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "collaborators_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "compare_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contents_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "contributors_url", - "description": "", - "isRequired": true - }, - { - "type": "integer or string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "default_branch", - "description": "The default branch of the repository.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "delete_branch_on_merge", - "description": "Whether to delete head branches when pull requests are merged
", - "default": false - }, - { - "type": "string", - "name": "deployments_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "disabled", - "description": "Returns whether or not this repository is disabled.
" - }, - { - "type": "string", - "name": "downloads_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "events_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "fork", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "forks_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "forks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "full_name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_commits_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_refs_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "git_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_downloads", - "description": "Whether downloads are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_issues", - "description": "Whether issues are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_pages", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "has_projects", - "description": "Whether projects are enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_wiki", - "description": "Whether the wiki is enabled.
", - "isRequired": true, - "default": true - }, - { - "type": "boolean", - "name": "has_discussions", - "description": "Whether discussions are enabled.
", - "isRequired": true, - "default": false - }, - { - "type": "string or null", - "name": "homepage", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "hooks_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the repository
", - "isRequired": true - }, - { - "type": "boolean", - "name": "is_template", - "description": "" - }, - { - "type": "string", - "name": "issue_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_events_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issues_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "keys_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "language", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "languages_url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "license", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "key", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "spdx_id", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "master_branch", - "description": "" - }, - { - "type": "string", - "name": "merges_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "milestones_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "mirror_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "notifications_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "organization", - "description": "" - }, - { - "type": "object or null", - "name": "owner", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object", - "name": "permissions", - "description": "", - "childParamsGroups": [ - { - "type": "boolean", - "name": "admin", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintain", - "description": "" - }, - { - "type": "boolean", - "name": "pull", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "push", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "triage", - "description": "" - } - ] - }, - { - "type": "boolean", - "name": "private", - "description": "Whether the repository is private or public.
", - "isRequired": true - }, - { - "type": "boolean", - "name": "public", - "description": "" - }, - { - "type": "string", - "name": "pulls_url", - "description": "", - "isRequired": true - }, - { - "type": "null or integer or string", - "name": "pushed_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "releases_url", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "role_name", - "description": "" - }, - { - "type": "integer", - "name": "size", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "ssh_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "stargazers", - "description": "" - }, - { - "type": "integer", - "name": "stargazers_count", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "stargazers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "statuses_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscribers_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "subscription_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "svn_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "tags_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "teams_url", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "topics", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "trees_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "visibility", - "description": "", - "isRequired": true, - "enum": [ - "public", - "private", - "internal" - ] - }, - { - "type": "integer", - "name": "watchers", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "watchers_count", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "web_commit_signoff_required", - "description": "Whether to require contributors to sign off on web-based commits
" - } - ] - }, - { - "type": "string", - "name": "sha", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "issue_url", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "labels", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "color", - "description": "6-character hex code, without the leading #, identifying the color
", - "isRequired": true - }, - { - "type": "boolean", - "name": "default", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "The name of the label.
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the label
", - "isRequired": true - } - ] - }, - { - "type": "boolean", - "name": "locked", - "description": "", - "isRequired": true - }, - { - "type": "boolean", - "name": "maintainer_can_modify", - "description": "Indicates whether maintainers can modify the pull request.
" - }, - { - "type": "string or null", - "name": "merge_commit_sha", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "mergeable", - "description": "" - }, - { - "type": "string", - "name": "mergeable_state", - "description": "" - }, - { - "type": "boolean or null", - "name": "merged", - "description": "" - }, - { - "type": "string or null", - "name": "merged_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "merged_by", - "description": "", - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "object or null", - "name": "milestone", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - }, - { - "type": "string or null", - "name": "description", - "description": "", - "isRequired": true - }, - { - "type": "string or null", - "name": "due_on", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "labels_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "The number of the milestone.
", - "isRequired": true - }, - { - "type": "integer", - "name": "open_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "The state of the milestone.
", - "isRequired": true, - "enum": [ - "open", - "closed" - ] - }, - { - "type": "string", - "name": "title", - "description": "The title of the milestone.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "number", - "description": "Number uniquely identifying the pull request within its repository.
", - "isRequired": true - }, - { - "type": "string", - "name": "patch_url", - "description": "", - "isRequired": true - }, - { - "type": "boolean or null", - "name": "rebaseable", - "description": "" - }, - { - "type": "array", - "name": "requested_reviewers", - "description": "", - "isRequired": true - }, - { - "type": "array of objects", - "name": "requested_teams", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "description", - "description": "Description of the team
" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "" - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "object or null", - "name": "parent", - "description": "", - "childParamsGroups": [ - { - "type": "string or null", - "name": "description", - "description": "Description of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "html_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "Unique identifier of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "members_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "Name of the team
", - "isRequired": true - }, - { - "type": "string", - "name": "node_id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
", - "isRequired": true - }, - { - "type": "string", - "name": "privacy", - "description": "", - "isRequired": true, - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "slug", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "permission", - "description": "Permission that the team will have for its repositories
" - }, - { - "type": "string", - "name": "privacy", - "description": "", - "enum": [ - "open", - "closed", - "secret" - ] - }, - { - "type": "string", - "name": "repositories_url", - "description": "" - }, - { - "type": "string", - "name": "slug", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "URL for the team
" - } - ] - }, - { - "type": "string", - "name": "review_comment_url", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "review_comments", - "description": "" - }, - { - "type": "string", - "name": "review_comments_url", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "state", - "description": "State of this Pull Request. Either open
or closed
.
The title of the pull request.
", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "user", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "avatar_url", - "description": "" - }, - { - "type": "boolean", - "name": "deleted", - "description": "" - }, - { - "type": "string or null", - "name": "email", - "description": "" - }, - { - "type": "string", - "name": "events_url", - "description": "" - }, - { - "type": "string", - "name": "followers_url", - "description": "" - }, - { - "type": "string", - "name": "following_url", - "description": "" - }, - { - "type": "string", - "name": "gists_url", - "description": "" - }, - { - "type": "string", - "name": "gravatar_id", - "description": "" - }, - { - "type": "string", - "name": "html_url", - "description": "" - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "login", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "" - }, - { - "type": "string", - "name": "node_id", - "description": "" - }, - { - "type": "string", - "name": "organizations_url", - "description": "" - }, - { - "type": "string", - "name": "received_events_url", - "description": "" - }, - { - "type": "string", - "name": "repos_url", - "description": "" - }, - { - "type": "boolean", - "name": "site_admin", - "description": "" - }, - { - "type": "string", - "name": "starred_url", - "description": "" - }, - { - "type": "string", - "name": "subscriptions_url", - "description": "" - }, - { - "type": "string", - "name": "type", - "description": "", - "enum": [ - "Bot", - "User", - "Organization" - ] - }, - { - "type": "string", - "name": "url", - "description": "" - } - ] - } - ] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "app" - ], - "action": "default", - "category": "merge_queue_entry" - } - }, - "meta": { - "deleted": { - "descriptionHtml": "The webhook was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to a webhook itself.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Meta\" app permission.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "deleted" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "hook", - "in": "body", - "description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "boolean", - "name": "active", - "description": "", - "isRequired": true - }, - { - "type": "object", - "name": "config", - "description": "", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string", - "name": "content_type", - "description": "", - "isRequired": true, - "enum": [ - "json", - "form" - ] - }, - { - "type": "string", - "name": "insecure_ssl", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "secret", - "description": "" - }, - { - "type": "string", - "name": "url", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "array of strings", - "name": "events", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "id", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "name", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "type", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "updated_at", - "description": "", - "isRequired": true - } - ] - }, - { - "type": "integer", - "name": "hook_id", - "in": "body", - "description": "The id of the modified webhook.
", - "isRequired": true - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "organization", - "in": "body", - "description": "A GitHub organization.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "repository", - "in": "body", - "description": "A repository on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "sender", - "in": "body", - "description": "A GitHub user.
", - "childParamsGroups": [] - } - ], - "availability": [ - "marketplace", - "business", - "repository", - "organization", - "app" - ], - "action": "deleted", - "category": "meta" - } - }, - "milestone": { - "closed": { - "descriptionHtml": "A milestone was closed.
", - "summaryHtml": "This event occurs when there is activity relating to milestones. For more information, see \"About milestones.\" For information about the APIs to manage milestones, see the GraphQL documentation or \"Milestones\" in the REST API documentation.
\nIf you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned
or demilestoned
action type for the issues
or pull_request
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Issues\" or \"Pull requests\" repository permissions.
", - "bodyParameters": [ - { - "type": "string", - "name": "action", - "in": "body", - "description": "", - "isRequired": true, - "enum": [ - "closed" - ], - "childParamsGroups": [] - }, - { - "type": "object", - "name": "enterprise", - "in": "body", - "description": "An enterprise on GitHub.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "installation", - "in": "body", - "description": "The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.
", - "childParamsGroups": [] - }, - { - "type": "object", - "name": "milestone", - "in": "body", - "description": "A collection of related issues and pull requests.
", - "isRequired": true, - "childParamsGroups": [ - { - "type": "string or null", - "name": "closed_at", - "description": "", - "isRequired": true - }, - { - "type": "integer", - "name": "closed_issues", - "description": "", - "isRequired": true - }, - { - "type": "string", - "name": "created_at", - "description": "", - "isRequired": true - }, - { - "type": "object or null", - "name": "creator", + "name": "creator", "description": "", "isRequired": true, "childParamsGroups": [ @@ -73315,7 +70153,7 @@ "type": "object", "name": "build", "in": "body", - "description": "The List GitHub Pages builds itself.
", + "description": "The List GitHub Pages builds itself.
", "isRequired": true, "childParamsGroups": [ { @@ -104793,7 +101631,7 @@ }, "reopened": { "descriptionHtml": "A previously closed pull request was reopened.
", - "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments,or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity on a pull request. For more information, see \"About pull requests.\" For information about the APIs to manage pull requests, see the GraphQL API documentation or \"Pulls\" in the REST API documentation.
\nFor activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review
, pull_request_review_comment
, issue_comment
, or pull_request_review_thread
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -124913,7 +121751,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -128355,7 +125193,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -131818,7 +128656,7 @@ "type": "object", "name": "comment", "in": "body", - "description": "The comment itself.
", + "description": "The comment itself.
", "isRequired": true, "childParamsGroups": [ { @@ -144945,7 +141783,7 @@ "pull_request_review_thread": { "resolved": { "descriptionHtml": "A comment thread on a pull request was marked as resolved.
", - "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or \"Pull request reviews\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to a comment thread on a pull request. For more information, see \"About pull request reviews.\" For information about the APIs to manage pull request reviews, see the GraphQL API documentation or \"Pull request review comments\" in the REST API documentation.
\nFor activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment
, issue_comment
, or pull_request_review
events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Pull requests\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -151683,7 +148521,7 @@ "push": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when a commit or tag is pushed.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", + "summaryHtml": "This event occurs when a commit or tag is pushed, or when a repository is cloned.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
\nNote: An event will not be created when more than three tags are pushed at once.
", "bodyParameters": [ { "type": "string", @@ -151710,7 +148548,7 @@ "type": "array of objects", "name": "commits", "in": "body", - "description": "An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare
between the before
commit and the after
commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
A package that was previously published to a registry was updated.
", - "summaryHtml": "This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead
This event occurs when there is activity relating to GitHub Packages. For more information, see \"Introduction to GitHub Packages.\" For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or \"Packages\" in the REST API documentation.
\nTo install this event on a GitHub App, the app must have at least read-level access for the \"Packages\" repository permission.
\nNote: GitHub recommends that you use the newer package
event instead.
The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -154464,7 +151305,7 @@ }, "deleted": { "descriptionHtml": "A release, pre-release, or draft release was deleted.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -154502,7 +151343,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -155024,7 +151865,7 @@ }, "edited": { "descriptionHtml": "The details of a release, pre-release, or draft release were edited. For more information, see \"Managing releases in a repository.\"
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -155110,7 +151951,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -155631,7 +152472,7 @@ }, "prereleased": { "descriptionHtml": "A release was created and identified as a pre-release. A pre-release is a release that is not ready for production and may be unstable.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -155698,7 +152539,7 @@ }, "published": { "descriptionHtml": "A release, pre-release, or draft of a release was published.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -155765,7 +152606,7 @@ }, "released": { "descriptionHtml": "A release was published, or a pre-release was changed to a release.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -155803,7 +152644,7 @@ "type": "object", "name": "release", "in": "body", - "description": "The release object.
", + "description": "The release object.
", "isRequired": true, "childParamsGroups": [ { @@ -156324,7 +153165,7 @@ }, "unpublished": { "descriptionHtml": "A release or pre-release was unpublished.
", - "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", + "summaryHtml": "This event occurs when there is activity relating to releases. For more information, see \"About releases.\" For information about the APIs to manage releases, see the GraphQL API documentation or \"Releases\" in the REST API documentation.
\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ { "type": "string", @@ -157390,7 +154231,7 @@ } }, "repository_dispatch": { - "default": { + "sample.collected": { "descriptionHtml": "The event_type
that was specified in the POST /repos/{owner}/{repo}/dispatches
request body.
This event occurs when a GitHub App sends a POST
request to /repos/{owner}/{repo}/dispatches
. For more information, see the REST API documentation for creating a repository dispatch event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.
", "bodyParameters": [ @@ -157400,6 +154241,9 @@ "in": "body", "description": "", "isRequired": true, + "enum": [ + "sample.collected" + ], "childParamsGroups": [] }, { @@ -157458,7 +154302,7 @@ "availability": [ "app" ], - "action": "default", + "action": "sample.collected", "category": "repository_dispatch" } }, @@ -163801,7 +160645,7 @@ "status": { "default": { "descriptionHtml": "", - "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", + "summaryHtml": "This event occurs when the status of a Git commit changes. For example, commits can be marked as error
, failure
, pending
, or success
. For more information, see \"About status checks.\" For information about the APIs to manage commit statuses, see the GraphQL documentation or \"Commit statuses\" in the REST API documentation.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Commit statuses\" repository permission.
", "bodyParameters": [ { "type": "string or null", @@ -168099,7 +164943,7 @@ }, "waiting": { "descriptionHtml": "A job in a workflow run was created and is waiting for approvals.
", - "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow.
\nFor more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, see the workflow_run
event.
To install this event on a GitHub App, the app must have at least read-level access for the Actions metadata permission.
", + "summaryHtml": "This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see \"Using jobs in a workflow.\" For information about the API to manage workflow jobs, see \"Workflow jobs\" in the REST API documentation.
\nFor activity relating to a workflow run instead of a job in a workflow run, use the workflow_run
event.
To subscribe to this event, a GitHub App must have at least read-level access for the \"Actions\" repository permission.
", "bodyParameters": [ { "type": "string", diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json index acefeb2865d0..6151ea40ffc2 100644 --- a/src/webhooks/lib/config.json +++ b/src/webhooks/lib/config.json @@ -1,3 +1,3 @@ { - "sha": "45ba714d4fde4f522d5cad95427eea033423da8f" + "sha": "da33840287fe37f6173edf958b888e02ca2b4110" } \ No newline at end of file diff --git a/tests/fixtures/article-with-redirect-from-string.md b/tests/fixtures/article-with-redirect-from-string.md index b131c1284df8..79a3c7d9e3c3 100644 --- a/tests/fixtures/article-with-redirect-from-string.md +++ b/tests/fixtures/article-with-redirect-from-string.md @@ -1,5 +1,9 @@ --- title: Article with redirect_from string -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' redirect_from: /redirect-string --- diff --git a/tests/fixtures/content/early-access/index.md b/tests/fixtures/content/early-access/index.md index 21a549b103c0..9279a1d6a7a7 100644 --- a/tests/fixtures/content/early-access/index.md +++ b/tests/fixtures/content/early-access/index.md @@ -1,7 +1,11 @@ --- title: Early Access documentation hidden: true -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' children: - /secrets --- diff --git a/tests/fixtures/content/early-access/secrets/deeper/index.md b/tests/fixtures/content/early-access/secrets/deeper/index.md index 767020a471bb..9f804e9159ac 100644 --- a/tests/fixtures/content/early-access/secrets/deeper/index.md +++ b/tests/fixtures/content/early-access/secrets/deeper/index.md @@ -1,6 +1,10 @@ --- title: Deeper secrets -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' hidden: true children: - /mariana-trench diff --git a/tests/fixtures/content/early-access/secrets/deeper/mariana-trench.md b/tests/fixtures/content/early-access/secrets/deeper/mariana-trench.md index 0f8ff8c531f1..9d07fc1aff83 100644 --- a/tests/fixtures/content/early-access/secrets/deeper/mariana-trench.md +++ b/tests/fixtures/content/early-access/secrets/deeper/mariana-trench.md @@ -1,6 +1,10 @@ --- title: Mariana Trench -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' hidden: true --- diff --git a/tests/fixtures/content/early-access/secrets/index.md b/tests/fixtures/content/early-access/secrets/index.md index f0b3eb3dda8b..c95a719683a6 100644 --- a/tests/fixtures/content/early-access/secrets/index.md +++ b/tests/fixtures/content/early-access/secrets/index.md @@ -1,6 +1,10 @@ --- title: GitHub Secrets -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' hidden: true children: - /early-days diff --git a/tests/fixtures/content/index.md b/tests/fixtures/content/index.md index 5821abe8f9a4..a8c0aecc86cf 100644 --- a/tests/fixtures/content/index.md +++ b/tests/fixtures/content/index.md @@ -12,7 +12,11 @@ featuredLinks: - /actions/category/map-topic redirect_from: - /olden-days -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' children: # The list of childen in the fixtures has to be the same names # as we use in the real content. It can have fewer but can't include diff --git a/tests/fixtures/liquid-tags/bad-data-variable.md b/tests/fixtures/liquid-tags/bad-data-variable.md index e2d66f64bde3..669c888d0c89 100644 --- a/tests/fixtures/liquid-tags/bad-data-variable.md +++ b/tests/fixtures/liquid-tags/bad-data-variable.md @@ -1,6 +1,10 @@ --- title: Sample page -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' --- {% data foo.bar.tipu %} diff --git a/tests/fixtures/liquid-tags/good-data-variable.md b/tests/fixtures/liquid-tags/good-data-variable.md index 8b838798f10e..bdce079cf982 100644 --- a/tests/fixtures/liquid-tags/good-data-variable.md +++ b/tests/fixtures/liquid-tags/good-data-variable.md @@ -1,6 +1,10 @@ --- title: Good sample page -versions: '*' +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' --- {% data variables.stuff.foo %} diff --git a/tests/rendering-fixtures/playwright-rendering.spec.ts b/tests/rendering-fixtures/playwright-rendering.spec.ts index d3802bdacdda..3794a84f7db7 100644 --- a/tests/rendering-fixtures/playwright-rendering.spec.ts +++ b/tests/rendering-fixtures/playwright-rendering.spec.ts @@ -155,34 +155,6 @@ test.describe('tool picker', () => { }) }) -test('filter article cards', async ({ page }) => { - await page.goto('/code-security/guides') - const articleCards = page.getByTestId('article-cards') - await expect(articleCards.getByText('Secure quickstart')).toBeVisible() - await expect(articleCards.getByText('Securing your organization')).toBeVisible() - - // For both the type and topic dropdowns, with the Primer component we use it - // ends creating a button to open the dropdowns so that's why we're clicking - // a button here to expand the option items. - - // all the articles are displayed, filter by topic - await page.getByTestId('card-filter-topics').getByRole('button', { name: 'All' }).click() - await page.getByTestId('topics-dropdown').getByText('Organizations').click() - await expect(articleCards.getByText('Secure quickstart')).not.toBeVisible() - await expect(articleCards.getByText('Securing your organization')).toBeVisible() - - // now show all the articles again and then filter by type - await page - .getByTestId('card-filter-topics') - .getByRole('button', { name: 'Organizations' }) - .click() - await page.getByTestId('topics-dropdown').getByText('All').click() - await page.getByTestId('card-filter-types').getByRole('button', { name: 'All' }).click() - await page.getByTestId('types-dropdown').getByText('Quickstart').click() - await expect(articleCards.getByText('Secure quickstart')).toBeVisible() - await expect(articleCards.getByText('Securing your organization')).not.toBeVisible() -}) - test('navigate with side bar into article inside a map-topic inside a category', async ({ page, }) => { @@ -449,9 +421,9 @@ test.describe('test nav at different viewports', () => { test.describe('survey', () => { test('happy path, thumbs up and enter email', async ({ page }) => { - await page.goto('/get-started/foo/for-playwright') - let fulfilled = 0 + // Important to set this up *before* interacting with the page + // in case of possible race conditions. await page.route('**/api/events', (route, request) => { route.fulfill({}) expect(request.method()).toBe('POST') @@ -462,21 +434,24 @@ test.describe('survey', () => { // See https://github.com/microsoft/playwright/issues/12231 }) + await page.goto('/get-started/foo/for-playwright') + // The label is visually an SVG. Finding it by its `for` value feels easier. await page.locator('[for=survey-yes]').click() await page.getByPlaceholder('email@example.com').click() await page.getByPlaceholder('email@example.com').fill('test@example.com') await page.getByRole('button', { name: 'Send' }).click() - // Because it sent one about the thumbs and then another with the email. - expect(fulfilled).toBe(2) + // One for the page view event, one for the thumbs up click, one for + // the submission. + expect(fulfilled).toBe(1 + 2) await expect(page.getByTestId('survey-end')).toBeVisible() }) test('thumbs down without filling in the form sends an API POST', async ({ page }) => { - await page.goto('/get-started/foo/for-playwright') - let fulfilled = 0 + // Important to set this up *before* interacting with the page + // in case of possible race conditions. await page.route('**/api/events', (route, request) => { route.fulfill({}) expect(request.method()).toBe('POST') @@ -487,8 +462,11 @@ test.describe('survey', () => { // See https://github.com/microsoft/playwright/issues/12231 }) + await page.goto('/get-started/foo/for-playwright') + await page.locator('[for=survey-yes]').click() - expect(fulfilled).toBe(1) + // One for the page view event and one for the thumbs up click + expect(fulfilled).toBe(1 + 1) await expect(page.getByRole('button', { name: 'Send' })).toBeVisible() await page.getByRole('button', { name: 'Cancel' }).click() diff --git a/tests/unit/get-applicable-versions.js b/tests/unit/get-applicable-versions.js index 89eb18c7a51e..2bd251697a2f 100644 --- a/tests/unit/get-applicable-versions.js +++ b/tests/unit/get-applicable-versions.js @@ -35,10 +35,18 @@ describe('Versions frontmatter', () => { }) describe('general cases', () => { - test('simply a wildcard', () => { - const applicableVersions = getApplicableVersions('*') - expect(applicableVersions.length).toBe(Object.keys(allVersions).length) - expect(Object.keys(allVersions).every((v) => applicableVersions.includes(v))) + test('wildcard * is no longer used', () => { + // docs engineering 3110 + expect.assertions(2) + try { + getApplicableVersions('*') + } catch (e) { + expect(e).toBeInstanceOf(Error) + expect(e).toHaveProperty( + 'message', + 'undefined contains the invalid versions frontmatter: *. Please explicitly list out all the versions that apply to this article.', + ) + } }) test("using 'features'", () => { const possibleFeatures = fs diff --git a/tests/unit/page.js b/tests/unit/page.js index 0f8ac750da81..5e72428e03df 100644 --- a/tests/unit/page.js +++ b/tests/unit/page.js @@ -341,7 +341,7 @@ describe('Page class', () => { basePath: path.join(__dirname, '../../content'), languageCode: 'en', }) - expect(page.versions).toBe('*') + expect(page.versions).toEqual({ fpt: '*', ghae: '*', ghec: '*', ghes: '*' }) }) test('enterprise admin index page', async () => {