` to place after the specified column.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -320940,10 +318977,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -326654,75 +324688,55 @@
"bodyParameters": [
{
"type": "string",
- "description": "The title of the new pull request.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the new pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests\" in the GitHub Help documentation to learn more.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
",
"examples": [
1
],
"name": "issue",
"in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -330489,7 +328503,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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nYou can create a new pull request.
\nThis 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.
",
+ "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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis 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.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -334362,20 +332376,14 @@
"description": "The title of the pull request.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -334386,30 +332394,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of this Pull Request. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -339356,30 +337355,21 @@
"description": "Title for the automatic commit message.
",
"name": "commit_title",
"in": "body",
- "rawType": "string",
- "rawDescription": "Title for the automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Extra detail to append to automatic commit message.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Extra detail to append to automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "SHA that pull request head must match to allow merge.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "SHA that pull request head must match to allow merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -339391,10 +337381,7 @@
],
"name": "merge_method",
"in": "body",
- "rawType": "string",
- "rawDescription": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -339515,10 +337502,7 @@
"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.
",
"name": "expected_head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -340918,10 +338902,7 @@
"description": "The text of the reply to the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the reply to the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -342301,30 +340282,21 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The relative path to the file that necessitates a comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -342335,10 +340307,7 @@
},
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342349,30 +340318,21 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Required with comfort-fade preview. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "Required when using multi-line comments. To create multi-line comments, you must use the comfort-fade preview header. The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request\" in the GitHub Help documentation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342384,10 +340344,7 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -342397,10 +340354,7 @@
],
"name": "in_reply_to",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -343054,10 +341008,7 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -343655,7 +341606,7 @@
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "List requested reviewers for a pull request",
+ "title": "Get all requested reviewers for a pull request",
"category": "pulls",
"subcategory": "review-requests",
"parameters": [
@@ -343685,24 +341636,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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": [],
@@ -344145,7 +342078,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -344193,28 +342126,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "An array of team slugs that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -349740,28 +347661,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be removed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of team slugs that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be removed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -355668,24 +353577,18 @@
"description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit in the pull request when you do not specify a value.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
- "description": "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.
",
+ "description": "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.
",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -355693,105 +353596,13 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.2/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The relative path to the file that necessitates a review comment.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "position": {
- "type": "integer",
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
- "name": "position",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "body": {
- "type": "string",
- "description": "Text of the review comment.
",
- "name": "body",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "line": {
- "type": "integer",
- "examples": [
- 28
- ],
- "name": "line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "side": {
- "type": "string",
- "examples": [
- "RIGHT"
- ],
- "name": "side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "examples": [
- 26
- ],
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_side": {
- "type": "string",
- "examples": [
- "LEFT"
- ],
- "name": "start_side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "body"
- ]
- },
"name": "comments",
"in": "body",
- "rawType": "array",
- "rawDescription": "Use the following table to specify the location, destination, and contents of the draft review comment.",
"isRequired": false,
"childParamsGroups": [
{
@@ -355804,30 +353615,21 @@
"description": "The relative path to the file that necessitates a review comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -355836,10 +353638,8 @@
],
"name": "line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -355848,10 +353648,8 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -355860,10 +353658,8 @@
],
"name": "start_line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -355872,10 +353668,8 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -356248,7 +354042,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.
\nPull request reviews created in the PENDING state do not include the submitted_at property in the response.
\nNote: 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 v3 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.
\nThe 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.
",
+ "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.
\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.\"
\nNote: 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 v3 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.
\nThe 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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -356727,10 +354521,7 @@
"description": "The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -358203,10 +355994,7 @@
"description": "The message for the pull request review dismissal
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The message for the pull request review dismissal",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -358218,10 +356006,8 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -358650,10 +356436,7 @@
"description": "The body text of the pull request review
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -358665,10 +356448,7 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -359029,8 +356809,8 @@
}
}
],
- "descriptionHTML": "",
"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.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -359799,10 +357579,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -360848,10 +358625,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -361952,10 +359726,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the commit comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -363001,10 +360772,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the issue comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -364050,10 +361818,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -365095,10 +362860,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the pull request review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -366140,10 +363902,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the release.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -367181,10 +364940,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -367853,10 +365609,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.2/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -368908,40 +366661,28 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -368949,10 +366690,7 @@
"default": false,
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -368960,10 +366698,7 @@
"default": false,
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -371850,60 +369585,42 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true makes the release a draft, and false publishes the release.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` makes the release a draft, and `false` publishes the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true to identify the release as a prerelease, false to identify the release as a full release.
",
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -373054,20 +370771,14 @@
"description": "The file name of the asset.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The file name of the asset.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An alternate short description of the asset. Used in place of the filename.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "An alternate short description of the asset. Used in place of the filename.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -373076,10 +370787,8 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -376536,30 +374245,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376567,10 +374267,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -376582,10 +374279,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376593,10 +374287,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376604,10 +374295,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376615,10 +374303,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376626,20 +374311,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376647,30 +374326,21 @@
"default": false,
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Pass `true` to create an initial commit with empty README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
",
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
",
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376678,10 +374348,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376689,10 +374356,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376700,10 +374364,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376711,10 +374372,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -376722,10 +374380,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -389787,30 +387442,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -389818,10 +387464,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -389833,10 +387476,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object or null",
@@ -389870,10 +387510,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -389907,10 +387544,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -389944,10 +387578,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -389956,11 +387587,6 @@
},
"name": "security_and_analysis",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.2/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.",
"isRequired": false,
"childParamsGroups": [
{
@@ -389984,8 +387610,6 @@
},
"name": "advanced_security",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see \"[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security).\"",
"childParamsGroups": [
{
"parentName": "advanced_security",
@@ -389996,10 +387620,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -390021,8 +387642,6 @@
},
"name": "secret_scanning",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning for this repository. For more information, see \"[About secret scanning](/code-security/secret-security/about-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning",
@@ -390033,10 +387652,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -390058,8 +387674,6 @@
},
"name": "secret_scanning_push_protection",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \"[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning_push_protection",
@@ -390070,10 +387684,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -390090,10 +387701,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -390106,10 +387714,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -390122,10 +387727,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -390137,10 +387739,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390148,10 +387747,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390159,10 +387755,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390170,20 +387763,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Updates the default branch for this repository.
",
"name": "default_branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "Updates the default branch for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390191,10 +387778,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390202,10 +387786,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390213,10 +387794,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390224,10 +387802,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390235,10 +387810,7 @@
"default": false,
"name": "allow_update_branch",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390246,10 +387818,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390257,10 +387826,7 @@
"default": false,
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390268,10 +387834,7 @@
"default": false,
"name": "allow_forking",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow private forks, or `false` to prevent private forks.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -396342,10 +393905,7 @@
"maxLength": 100,
"name": "event_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "A custom webhook event name. Must be 100 characters or fewer.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -396354,10 +393914,7 @@
"maxProperties": 10,
"name": "client_payload",
"in": "body",
- "rawType": "object",
- "rawDescription": "JSON payload with extra information about the webhook event that your action or workflow may use.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -397041,15 +394598,9 @@
{
"type": "array of strings",
"description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names cannot contain uppercase letters.
",
- "items": {
- "type": "string"
- },
"name": "names",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -397160,23 +394711,14 @@
"description": "The username or organization name the repository will be transferred to.
",
"name": "new_owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The username or organization name the repository will be transferred to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
",
- "items": {
- "type": "integer"
- },
"name": "team_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -399571,30 +397113,21 @@
"description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
",
"name": "owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the new repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the new repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the new repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the new repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -399602,10 +397135,7 @@
"default": false,
"name": "include_all_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -399613,10 +397143,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to create a new private repository or `false` to create a new public one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -405043,30 +402570,21 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A short description of the repository.
",
"type": "string",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL with more information about the repository.
",
"type": "string",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is private.
",
@@ -405074,10 +402592,7 @@
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether issues are enabled.
",
@@ -405088,10 +402603,7 @@
],
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether issues are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether projects are enabled.
",
@@ -405102,10 +402614,7 @@
],
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether projects are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the wiki is enabled.
",
@@ -405116,20 +402625,14 @@
],
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the wiki is enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"type": "integer",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is initialized with a minimal README.
",
@@ -405137,10 +402640,7 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is initialized with a minimal README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The desired language or platform to apply to the .gitignore.
",
@@ -405150,10 +402650,7 @@
],
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The desired language or platform to apply to the .gitignore.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The license keyword of the open source license for this repository.
",
@@ -405163,10 +402660,7 @@
],
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The license keyword of the open source license for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow squash merges for pull requests.
",
@@ -405177,10 +402671,7 @@
],
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow squash merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow merge commits for pull requests.
",
@@ -405191,10 +402682,7 @@
],
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow merge commits for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow rebase merges for pull requests.
",
@@ -405205,10 +402693,7 @@
],
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow rebase merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to delete head branches when pull requests are merged
",
@@ -405219,10 +402704,7 @@
],
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to delete head branches when pull requests are merged",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether downloads are enabled.
",
@@ -405233,10 +402715,7 @@
],
"name": "has_downloads",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether downloads are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether this repository acts as a template that can be used to generate new repositories.
",
@@ -405247,10 +402726,7 @@
],
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether this repository acts as a template that can be used to generate new repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -410923,40 +408399,28 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The new file content, using Base64 encoding.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new file content, using Base64 encoding.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required if you are updating a file. The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -411001,8 +408465,6 @@
],
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "The person that committed the file. Default: the authenticated user.",
"isRequired": false,
"childParamsGroups": [
{
@@ -411015,20 +408477,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -411037,10 +408493,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -411089,8 +408543,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -411103,20 +408555,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -411125,10 +408571,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -411681,30 +409125,21 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The blob SHA of the file being replaced.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -411731,8 +409166,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the committer.",
"isRequired": false,
"childParamsGroups": [
{
@@ -411744,19 +409177,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -411787,8 +409214,6 @@
},
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the author.",
"isRequired": false,
"childParamsGroups": [
{
@@ -411800,19 +409225,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -414954,10 +412373,7 @@
"description": "Optional parameter to specify the organization name if forking into an organization.
",
"name": "organization",
"in": "body",
- "rawType": "string",
- "rawDescription": "Optional parameter to specify the organization name if forking into an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -431581,10 +428997,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -431598,13 +429011,7 @@
],
"name": "resolution",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -432245,46 +429652,28 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "List GitHub IDs for organization members who will become team maintainers.
",
- "items": {
- "type": "string"
- },
"name": "maintainers",
"in": "body",
- "rawType": "array",
- "rawDescription": "List GitHub IDs for organization members who will become team maintainers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
",
- "items": {
- "type": "string"
- },
"name": "repo_names",
"in": "body",
- "rawType": "array",
- "rawDescription": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -432295,10 +429684,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -432310,30 +429696,21 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "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 \"Update LDAP mapping for a team\" endpoint to change the LDAP DN. For more information, see \"Using LDAP.\"
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.2/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.2/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -433775,20 +431152,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -433799,10 +431170,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -433815,23 +431183,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -435357,10 +432716,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -440372,20 +437728,10 @@
{
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -441527,20 +438873,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -441551,10 +438891,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -441567,23 +438904,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -443770,10 +441098,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -448769,10 +446094,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -450413,10 +447735,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -451299,10 +448618,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -452260,10 +449576,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -453126,10 +450439,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -454131,20 +451441,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -454152,10 +451456,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -455107,20 +452408,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -456136,20 +453431,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -456157,10 +453446,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -457092,20 +454378,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -458034,10 +455314,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -458784,10 +456061,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -460251,10 +457525,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The publicly visible email address of the user.
",
@@ -460264,10 +457535,7 @@
],
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new blog URL of the user.
",
@@ -460277,10 +457545,7 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blog URL of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new Twitter username of the user.
",
@@ -460290,13 +457555,7 @@
],
"name": "twitter_username",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new Twitter username of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new company of the user.
",
@@ -460306,10 +457565,7 @@
],
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new company of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new location of the user.
",
@@ -460319,30 +457575,21 @@
],
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new location of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new hiring availability of the user.
",
"type": "boolean",
"name": "hireable",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "The new hiring availability of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new short biography of the user.
",
"type": "string",
"name": "bio",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new short biography of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -462569,20 +459816,10 @@
{
"description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. Note: Alternatively, you can pass a single email address or an array of emails addresses directly, but we recommend that you pass an object using the emails key.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"examples": [],
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -462713,19 +459950,9 @@
{
"description": "Email addresses associated with the GitHub user account.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Email addresses associated with the GitHub user account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -464441,10 +461668,7 @@
"type": "string",
"name": "armored_public_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "A GPG key in ASCII-armored format.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -465466,10 +462690,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The public SSH key to add to your GitHub account.
",
@@ -465477,10 +462698,7 @@
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key to add to your GitHub account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -466000,10 +463218,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466013,10 +463228,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466026,10 +463238,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.2/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -466048,8 +463257,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -467087,10 +464295,7 @@
"description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -467177,8 +464382,6 @@
},
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -467194,10 +464397,7 @@
"https://example.com/webhook"
],
"name": "url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -467206,10 +464406,7 @@
"\"json\""
],
"name": "content_type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -467218,10 +464415,7 @@
"\"********\""
],
"name": "secret",
- "in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.2/webhooks/event-payloads/#delivery-headers).",
- "childParamsGroups": []
+ "in": "body"
},
{
"oneOf": [
@@ -467239,8 +464433,7 @@
"name": "insecure_ssl",
"in": "body",
"type": "string or number",
- "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "childParamsGroups": []
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
"
},
{
"type": "string",
@@ -467249,9 +464442,7 @@
],
"name": "token",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
},
{
"type": "string",
@@ -467260,9 +464451,7 @@
],
"name": "digest",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
}
]
}
@@ -467274,15 +464463,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.2/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -467290,10 +464473,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -468011,8 +465191,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.2/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -468029,10 +465207,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -468042,10 +465217,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -468055,10 +465227,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.2/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -468077,8 +465246,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -468087,10 +465255,8 @@
],
"name": "address",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -468099,10 +465265,8 @@
],
"name": "room",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -468114,41 +465278,23 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.2/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be added to the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "add_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "remove_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -468156,10 +465302,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
diff --git a/lib/rest/static/decorated/ghes-3.3.json b/lib/rest/static/decorated/ghes-3.3.json
index 1dd9111cdc..7b9ee36395 100644
--- a/lib/rest/static/decorated/ghes-3.3.json
+++ b/lib/rest/static/decorated/ghes-3.3.json
@@ -945,10 +945,7 @@
],
"name": "enabled_organizations",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -960,10 +957,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -1216,16 +1210,9 @@
{
"description": "List of organization IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -1469,23 +1456,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -1637,10 +1615,7 @@
],
"name": "enabled_repositories",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -1652,10 +1627,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3292,16 +3264,9 @@
{
"description": "List of repository IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -3545,23 +3510,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -3718,10 +3674,7 @@
"description": "Whether GitHub Actions is enabled on the repository.
",
"name": "enabled",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions is enabled on the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -3733,10 +3686,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3888,23 +3838,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4332,20 +4273,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -4357,23 +4292,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -6811,15 +6737,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -7374,20 +7294,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -7534,7 +7448,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7665,7 +7579,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7774,7 +7688,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7872,7 +7786,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7894,20 +7808,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#get-an-environment-public-key) endpoint.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -7998,7 +7906,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8211,10 +8119,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organization.
",
@@ -8225,38 +8130,21 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -8264,10 +8152,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -8485,10 +8370,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organizations.
",
@@ -8500,10 +8382,7 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organizations.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -8511,10 +8390,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -8886,16 +8762,9 @@
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -9315,16 +9184,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -9669,10 +9531,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.
",
@@ -9685,38 +9544,21 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9724,10 +9566,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -9963,10 +9802,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.
",
@@ -9978,10 +9814,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9989,10 +9822,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -12612,16 +12442,9 @@
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -13041,16 +12864,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -24845,7 +24661,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -35820,22 +35636,13 @@
{
"type": "array of integers",
"description": "The list of environment ids to approve or reject
",
- "items": {
- "type": "integer",
- "examples": [
- 161171787
- ]
- },
"examples": [
161171787,
161171795
],
"name": "environment_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of environment ids to approve or reject",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -35849,10 +35656,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Whether to approve or reject deployment to the specified environments.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -35862,10 +35666,7 @@
],
"name": "comment",
"in": "body",
- "rawType": "string",
- "rawDescription": "A comment to accompany the deployment review",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -36716,7 +36517,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -42111,10 +41912,7 @@
"description": "The git reference for the workflow. The reference can be a branch or tag name.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The git reference for the workflow. The reference can be a branch or tag name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -42125,10 +41923,7 @@
"maxProperties": 10,
"name": "inputs",
"in": "body",
- "rawType": "object",
- "rawDescription": "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -78042,15 +77837,6 @@
"format": "date-time"
}
},
- {
- "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.
",
@@ -78059,6 +77845,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"bodyParameters": [],
@@ -80385,20 +80180,14 @@
"format": "date-time",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the notification has been read.
",
"type": "boolean",
"name": "read",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the notification has been read.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -82982,10 +82771,7 @@
"type": "boolean",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to block all notifications from a thread.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -85572,10 +85358,7 @@
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: The current timestamp.
",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -93226,20 +93009,14 @@
"description": "Determines if notifications should be received from this repository.
",
"name": "subscribed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications should be received from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository.
",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if all notifications should be blocked from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -100778,34 +100555,19 @@
{
"description": "List of repository names that the token should have access to
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository names that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that the token should have access to
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -101224,8 +100986,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -101241,10 +101001,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101254,10 +101011,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101267,10 +101021,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101280,10 +101031,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101293,10 +101041,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101306,10 +101051,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101319,10 +101061,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101332,10 +101071,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101345,10 +101081,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101358,10 +101091,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101371,10 +101101,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101384,10 +101111,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101398,10 +101122,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101411,10 +101132,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101424,10 +101142,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101437,10 +101152,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101450,10 +101162,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101463,10 +101172,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101476,10 +101182,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101488,10 +101191,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101501,10 +101201,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101514,10 +101211,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101527,10 +101221,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101539,10 +101230,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101553,10 +101241,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101566,10 +101251,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101579,10 +101261,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101592,10 +101271,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101605,10 +101281,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101618,10 +101291,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -101631,10 +101301,7 @@
"write"
],
"name": "content_references",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for notification of content references and creation content attachments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -101650,7 +101317,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -108488,10 +108155,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the attachment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The body of the attachment
",
@@ -108502,10 +108166,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body of the attachment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -111398,10 +111059,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -111527,10 +111185,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -112401,10 +112056,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -113271,10 +112923,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -113343,10 +112992,7 @@
],
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The name of the user or organization to scope the user-to-server access token to. Required unless target_id is specified.
",
@@ -113356,10 +113002,7 @@
],
"name": "target",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the user or organization to scope the user-to-server access token to. **Required** unless `target_id` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The ID of the user or organization to scope the user-to-server access token to. Required unless target is specified.
",
@@ -113369,42 +113012,24 @@
],
"name": "target_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the user or organization to scope the user-to-server access token to. **Required** unless `target` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository names to scope the user-to-server access token to. repositories may not be specified if repository_ids is specified.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository IDs to scope the user-to-server access token to. repository_ids may not be specified if repositories is specified.
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -113823,8 +113448,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -113840,10 +113463,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113853,10 +113473,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113866,10 +113483,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113879,10 +113493,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113892,10 +113503,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113905,10 +113513,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113918,10 +113523,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113931,10 +113533,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113944,10 +113543,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113957,10 +113553,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113970,10 +113563,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113983,10 +113573,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113997,10 +113584,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114010,10 +113594,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114023,10 +113604,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114036,10 +113614,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114049,10 +113624,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114062,10 +113634,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114075,10 +113644,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114087,10 +113653,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114100,10 +113663,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114113,10 +113673,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114126,10 +113683,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114138,10 +113692,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114152,10 +113703,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114165,10 +113713,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114178,10 +113723,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114191,10 +113733,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114204,10 +113743,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114217,10 +113753,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -114230,10 +113763,7 @@
"write"
],
"name": "content_references",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for notification of content references and creation content attachments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -117017,10 +116547,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -117030,10 +116557,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -117043,10 +116567,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -117065,8 +116586,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -119139,10 +118659,7 @@
"description": "The new name of the branch.
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the branch.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -121263,10 +120780,7 @@
"description": "The name of the branch which should be updated to match upstream.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch which should be updated to match upstream.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -121368,30 +120882,21 @@
"description": "The name of the base branch that the head will be merged into.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the base branch that the head will be merged into.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The head to merge. This can be a branch name or a commit SHA1.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The head to merge. This can be a branch name or a commit SHA1.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Commit message to use for the merge commit. If omitted, a default message will be used.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -123810,20 +123315,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -123836,11 +123335,6 @@
],
"name": "required_status_checks",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require status checks to pass before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -123853,60 +123347,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -123919,20 +123374,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -123950,20 +123399,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -123974,13 +123417,7 @@
"description": "Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
",
"name": "enforce_admins",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object or null",
@@ -124040,38 +123477,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -124107,11 +123526,6 @@
},
"name": "required_pull_request_reviews",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -124162,8 +123576,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"childParamsGroups": [
{
"parentName": "dismissal_restrictions",
@@ -124173,38 +123585,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -124214,28 +123608,19 @@
"type": "boolean",
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners review them.
",
"name": "require_code_owner_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
"description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.
",
"name": "required_approving_review_count",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -124247,38 +123632,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -124334,11 +123701,6 @@
],
"name": "restrictions",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -124349,41 +123711,23 @@
{
"type": "array of strings",
"description": "The list of user logins with push access
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of team slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of app slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with push access",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -124394,66 +123738,42 @@
"description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true to enforce a linear commit history. Set to false to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false. For more information, see \"Requiring a linear commit history\" in the GitHub Help documentation.
",
"name": "required_linear_history",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean or null",
"description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to true to allow force pushes. Set to false or null to block force pushes. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.\"
",
"name": "allow_force_pushes",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to false to prevent deletion of the protected branch. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.
",
"name": "allow_deletions",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "If set to true, the restrictions branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to true to restrict new branch creation. Default: false.
",
"name": "block_creations",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to false to disable. Default: false.
",
"name": "required_conversation_resolution",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -125866,8 +125186,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"isRequired": false,
"childParamsGroups": [
{
@@ -125878,38 +125196,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -125920,30 +125220,21 @@
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners have reviewed.
",
"name": "require_code_owner_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.
",
"name": "required_approving_review_count",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -127354,24 +126645,15 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"deprecated": true,
"description": "The list of status checks to require in order to merge into this branch
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -127655,15 +126937,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -127759,15 +127035,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -127858,15 +127128,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -128926,15 +128190,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -129383,15 +128641,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -129840,15 +129092,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -130587,15 +129833,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -130892,15 +130132,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -131197,15 +130431,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -131759,15 +130987,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -132031,15 +131253,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -132303,15 +131519,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -132571,40 +131781,28 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -132617,10 +131815,7 @@
"default": "queued",
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -132628,10 +131823,7 @@
"description": "The time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -132648,10 +131840,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -132659,10 +131848,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -132827,50 +132013,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -132882,40 +132053,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -132979,30 +132138,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -133015,8 +132165,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#output-object) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -133029,10 +132177,7 @@
"description": "The title of the check run.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the check run.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -133040,10 +132185,7 @@
"description": "The summary of the check run. This parameter supports Markdown.
",
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "The summary of the check run. This parameter supports Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -133051,126 +132193,14 @@
"description": "The details of the check run. This parameter supports Markdown.
",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The details of the check run. This parameter supports Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the Checks and Files changed tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"About status checks\". See the annotations object description for details about how to use this parameter.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#annotations-object) description for details about how to use this parameter.",
"isRequired": false,
"childParamsGroups": [
{
@@ -133183,50 +132213,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -133238,40 +132253,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -133280,49 +132283,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#images-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -133335,30 +132297,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -133376,50 +132329,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -133431,40 +132369,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -133478,30 +132404,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -133511,53 +132428,8 @@
"type": "array of objects",
"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. See the actions object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -133571,10 +132443,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -133582,10 +132451,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -133593,10 +132459,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -137253,30 +136116,21 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137284,10 +136138,7 @@
"description": "This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137299,10 +136150,7 @@
],
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137319,10 +136167,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137330,10 +136175,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -137498,50 +136340,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137553,40 +136380,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137650,30 +136465,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137685,8 +136491,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#output-object-1) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137699,10 +136503,7 @@
"description": "Required.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required**.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137710,10 +136511,7 @@
"maxLength": 65535,
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -137721,126 +136519,14 @@
"maxLength": 65535,
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"About status checks\". See the annotations object description for details.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137853,50 +136539,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137908,40 +136579,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137950,49 +136609,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -138005,30 +136623,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -138046,50 +136655,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -138101,40 +136695,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -138148,30 +136730,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -138181,53 +136754,8 @@
"type": "array of objects",
"description": "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.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -138241,10 +136769,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -138252,10 +136777,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -138263,10 +136785,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -142380,10 +140899,7 @@
"description": "The sha of the head commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The sha of the head commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -148565,40 +147081,8 @@
{
"type": "array of objects",
"description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the auto_trigger_checks object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "integer",
- "description": "The id of the GitHub App.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "setting": {
- "type": "boolean",
- "description": "Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them.
",
- "default": true,
- "name": "setting",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- },
"name": "auto_trigger_checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#auto_trigger_checks-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -148611,10 +147095,7 @@
"description": "The id of the GitHub App.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -148622,10 +147103,7 @@
"default": true,
"name": "setting",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -158531,10 +157009,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -158547,13 +157022,7 @@
],
"name": "dismissed_reason",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -160071,30 +158540,21 @@
"pattern": "^[0-9a-fA-F]+$",
"name": "commit_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit to which the analysis you are uploading relates.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full Git reference, formatted as refs/heads/<branch name>,\nrefs/pull/<number>/merge, or refs/pull/<number>/head.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full Git reference, formatted as `refs/heads/`,\n`refs/pull//merge`, or `refs/pull//head`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. For more information, see \"SARIF support for code scanning.\"
",
"type": "string",
"name": "sarif",
"in": "body",
- "rawType": "string",
- "rawDescription": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/enterprise-server@3.3/code-security/secure-coding/sarif-support-for-code-scanning).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
",
@@ -160105,10 +158565,7 @@
],
"name": "checkout_uri",
"in": "body",
- "rawType": "string",
- "rawDescription": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
@@ -160116,20 +158573,14 @@
"type": "string",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts.
",
"type": "string",
"name": "tool_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -160938,20 +159389,10 @@
{
"type": "string",
"description": "The permission to grant the collaborator. Only valid on organization-owned repositories.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -166748,10 +165189,7 @@
],
"name": "permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -183153,10 +181591,7 @@
"description": "The contents of the comment
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -184072,40 +182507,28 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Relative path of the file to comment on.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Relative path of the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Line index in the diff to comment on.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Line index in the diff to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Deprecated. Use position parameter instead. Line number in the file to comment on.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -187299,36 +185722,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
"description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.
\nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:
\nhttp://ci.example.com/user/repo/build/sha
",
"name": "target_url",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "A short description of the status.
",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "A short description of the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -187336,10 +185744,7 @@
"default": "default",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "A string label to differentiate this status from the status of other systems. This field is case-insensitive.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -187788,30 +186193,21 @@
"description": "A name for the key.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A name for the key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the key.
",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "If true, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.
\nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"Repository permission levels for an organization\" and \"Permission levels for a user account repository.\"
",
"name": "read_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -188915,10 +187311,7 @@
"description": "The ref to deploy. This can be a branch, tag, or SHA.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The ref to deploy. This can be a branch, tag, or SHA.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -188926,10 +187319,7 @@
"default": "deploy",
"name": "task",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -188937,23 +187327,14 @@
"default": true,
"name": "auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.
",
- "items": {
- "type": "string"
- },
"name": "required_contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [status](https://docs.github.com/enterprise-server@3.3/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -188971,8 +187352,7 @@
"in": "body",
"type": "object or string",
"description": "JSON payload with extra information about the deployment.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -188980,10 +187360,7 @@
"default": "production",
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
@@ -188991,13 +187368,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Short description of the deployment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -189005,20 +187376,14 @@
"default": false,
"name": "transient_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specifies if the given environment is one that end-users directly interact with. Default: true when environment is production and false otherwise.
",
"name": "production_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -190563,12 +188928,639 @@
]
}
],
+ "branch-policies": [
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "List deployment branch policies",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "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": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Lists the deployment branch policies for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "Create a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "example-wildcard",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a wildcard name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ },
+ {
+ "key": "example-single-branch",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a single branch name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "main"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Creates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "303",
+ "description": "Response if the same branch name pattern already exists
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found or deployment_branch_policy.custom_branch_policies property for the environment is set to false
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Get a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Gets a deployment branch policy for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Update a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Updates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Delete a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Deletes a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ]
+ }
+ ],
"environments": [
{
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments",
- "title": "Get all environments",
+ "title": "List environments",
"category": "deployments",
"subcategory": "environments",
"parameters": [
@@ -191291,7 +190283,7 @@
}
],
"previews": [],
- "descriptionHTML": "Get all environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Lists the environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -191329,7 +190321,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -191998,7 +190990,7 @@
}
],
"previews": [],
- "descriptionHTML": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Note: To get information about name patterns that branches must match in order to deploy to this environment, see \"Get a deployment branch policy.\"
\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the repo scope. GitHub\nApps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -192036,7 +191028,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -192051,54 +191043,13 @@
],
"name": "wait_timer",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects or null",
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of reviewer.
",
- "enum": [
- "User",
- "Team"
- ],
- "examples": [
- "User"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
- },
- "id": {
- "type": "integer",
- "description": "The id of the user or team who can review the deployment
",
- "examples": [
- 4532992
- ],
- "name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
- }
- }
- },
"name": "reviewers",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
"isRequired": false,
"childParamsGroups": [
{
@@ -192117,10 +191068,7 @@
"User"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
@@ -192129,10 +191077,7 @@
4532992
],
"name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -192169,11 +191114,6 @@
],
"name": "deployment_branch_policy",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -192186,20 +191126,14 @@
"description": "Whether only branches with branch protection rules can deploy to this environment. If protected_branches is true, custom_branch_policies must be false; if protected_branches is false, custom_branch_policies must be true.
",
"name": "protected_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "Whether only branches that match the specified name patterns can deploy to this environment. If custom_branch_policies is true, protected_branches must be false; if custom_branch_policies is false, protected_branches must be true.
",
"name": "custom_branch_policies",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -192214,6 +191148,23 @@
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
@@ -192869,7 +191820,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: Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"Environments.\"
\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.
",
+ "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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -192911,7 +191862,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -193754,10 +192705,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -193765,10 +192713,7 @@
"default": "",
"name": "target_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -193776,10 +192721,7 @@
"default": "",
"name": "log_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -193787,10 +192729,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the status. The maximum description length is 140 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -193802,10 +192741,7 @@
],
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -193813,20 +192749,14 @@
"default": "",
"name": "environment_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the URL for accessing your environment. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Adds a new inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. An inactive status is only added to deployments that had a success state. Default: true
",
"name": "auto_inactive",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -197912,10 +196842,7 @@
],
"name": "announcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.3/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -197926,13 +196853,7 @@
],
"name": "expires_at",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -198569,10 +197490,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -198624,8 +197542,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": true,
"childParamsGroups": [
{
@@ -198638,40 +197554,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -198680,15 +197584,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -198696,10 +197594,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -198998,8 +197893,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": false,
"childParamsGroups": [
{
@@ -199012,40 +197905,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -199054,15 +197935,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -199070,10 +197945,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -199295,10 +198167,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -199477,10 +198346,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -200253,10 +199119,7 @@
"description": "A JSON string with the attributes enabled and when.
\nThe possible values for enabled are true and false. When it's false, the attribute when is ignored and the maintenance mode is turned off. when defines the time period when the maintenance was enabled.
\nThe possible values for when are now or any date parseable by mojombo/chronic.
",
"name": "maintenance",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the attributes `enabled` and `when`.\n\nThe possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -201012,10 +199875,7 @@
"description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.3/rest/reference/enterprise-admin#get-settings).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -201120,10 +199980,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -201196,10 +200053,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -201272,30 +200126,21 @@
"description": "The content of your .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your _.ghl_ license file.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "You must provide a password only if you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.
",
"name": "password",
"in": "body",
- "rawType": "string",
- "rawDescription": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An optional JSON string containing the installation settings. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "An optional JSON string containing the installation settings. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.3/rest/reference/enterprise-admin#get-settings).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -201336,10 +200181,7 @@
"description": "The content of your new .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your new _.ghl_ license file.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -201609,20 +200451,14 @@
"type": "string",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether repositories can override enforcement.
",
"type": "boolean",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories can override enforcement.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -201784,30 +200620,21 @@
"description": "The organization's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The login of the user who will manage this organization.
",
"name": "admin",
"in": "body",
- "rawType": "string",
- "rawDescription": "The login of the user who will manage this organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The organization's display name.
",
"name": "profile_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's display name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -201977,10 +200804,7 @@
"description": "The organization's new name.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's new name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -202215,20 +201039,14 @@
"description": "The new pre-receive environment's name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new pre-receive environment's name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -202466,20 +201284,14 @@
"description": "This pre-receive environment's new name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "This pre-receive environment's new name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -203005,20 +201817,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -203027,10 +201833,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -203039,30 +201842,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The state of enforcement for this hook. default: disabled
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook. default: `disabled`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level. default: false
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -203408,20 +202202,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -203430,10 +202218,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -203442,30 +202227,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The state of enforcement for this hook.
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level.
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -203935,10 +202711,7 @@
],
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -205209,20 +203982,14 @@
"description": "The user's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required for built-in authentication. The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"About authentication for your enterprise.\"
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required for built-in authentication.** The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.3/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -205459,10 +204226,7 @@
"description": "The user's new username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's new username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -205578,15 +204342,9 @@
{
"type": "array of strings",
"description": "A list of scopes.
",
- "items": {
- "type": "string"
- },
"name": "scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of [scopes](https://docs.github.com/enterprise-server@3.3/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -207354,10 +206112,7 @@
"description": "The reason the user is being suspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Suspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being suspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.3/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -207411,10 +206166,7 @@
"description": "The reason the user is being unsuspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Unsuspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.3/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -208028,10 +206780,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names and content for the files that make up the gist
",
@@ -208066,8 +206815,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names and content for the files that make up the gist",
"isRequired": true,
"childParamsGroups": [
{
@@ -208096,10 +206843,7 @@
"type": "string",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "Content of the file",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -208131,8 +206875,7 @@
"in": "body",
"type": "boolean or string",
"description": "Flag indicating whether the gist is public
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -211786,10 +210529,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names of files to be updated
",
@@ -211851,8 +210591,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names of files to be updated",
"isRequired": false,
"childParamsGroups": [
{
@@ -211879,22 +210617,13 @@
"description": "The new content of the file
",
"type": "string",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The new content of the file",
- "childParamsGroups": []
+ "in": "body"
},
{
"description": "The new filename for the file
",
"type": "string or null",
"name": "filename",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new filename for the file",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -217758,10 +216487,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -218458,10 +217184,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -218877,10 +217600,7 @@
"description": "The new blob's content.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blob's content.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -218888,10 +217608,7 @@
"default": "utf-8",
"name": "encoding",
"in": "body",
- "rawType": "string",
- "rawDescription": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -219125,33 +217842,21 @@
"description": "The commit message
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the tree object this commit points to
",
"name": "tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the tree object this commit points to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
",
- "items": {
- "type": "string"
- },
"name": "parents",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -219195,8 +217900,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -219209,20 +217912,14 @@
"description": "The name of the author (or committer) of the commit
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -219230,10 +217927,7 @@
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -219274,8 +217968,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -219287,29 +217979,20 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"format": "date-time",
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -219320,10 +218003,7 @@
"description": "The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits.
",
"name": "signature",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -220195,20 +218875,14 @@
"description": "The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA1 value for this reference.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value for this reference.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -220217,10 +218891,8 @@
],
"name": "key",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -220347,9 +219019,10 @@
},
{
"name": "ref",
- "description": "ref parameter
",
+ "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.
",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -220362,10 +219035,7 @@
"description": "The SHA1 value to set this reference to
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value to set this reference to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -220373,10 +219043,7 @@
"default": false,
"name": "force",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -220581,30 +219248,21 @@
"description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").
",
"name": "tag",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The tag message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the git object this is tagging.
",
"name": "object",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the git object this is tagging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -220616,10 +219274,7 @@
],
"name": "type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -220663,8 +219318,6 @@
],
"name": "tagger",
"in": "body",
- "rawType": "object",
- "rawDescription": "An object with information about the individual creating the tag.",
"isRequired": false,
"childParamsGroups": [
{
@@ -220677,20 +219330,14 @@
"description": "The name of the author of the tag
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author of the tag
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -220698,10 +219345,7 @@
"description": "When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -221139,75 +219783,8 @@
{
"type": "array of objects",
"description": "Objects (of path, mode, type, and sha) specifying a tree structure.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file referenced in the tree.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
- },
- "mode": {
- "type": "string",
- "description": "The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.
",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ],
- "name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
- },
- "type": {
- "type": "string",
- "description": "Either blob, tree, or commit.
",
- "enum": [
- "blob",
- "tree",
- "commit"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
- },
- "sha": {
- "type": "string or null",
- "description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- },
- "content": {
- "type": "string",
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- }
- }
- },
"name": "tree",
"in": "body",
- "rawType": "array",
- "rawDescription": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
"isRequired": true,
"childParamsGroups": [
{
@@ -221219,10 +219796,7 @@
"type": "string",
"description": "The file referenced in the tree.
",
"name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -221235,10 +219809,7 @@
"120000"
],
"name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -221249,31 +219820,19 @@
"commit"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string or null",
"description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -221284,10 +219843,7 @@
"description": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree and entries defined in the tree parameter. Entries defined in the tree parameter will overwrite items from base_tree with the same path. If you're creating new changes on a branch, then normally you'd set base_tree to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the tree parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the tree parameter will be listed as deleted by the new commit.
",
"name": "base_tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -221443,7 +219999,7 @@
}
],
"previews": [],
- "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
",
+ "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
\nReturns an error if you try to delete a file that does not exist.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -232196,32 +230752,21 @@
"name": "title",
"in": "body",
"type": "string or integer",
- "rawDescription": "The title of the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -232236,67 +230781,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -238799,40 +237299,21 @@
"type": "string or integer or null",
"name": "title",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
- "rawDescription": "The title of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -238843,10 +237324,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the issue. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -238861,67 +237339,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with or null to remove current. NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. Pass one or more Labels to replace the set of Labels on this Issue. Send an empty array ([]) to clear all Labels from the Issue. NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -242192,10 +240625,7 @@
],
"name": "lock_reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -246098,15 +244528,9 @@
{
"type": "array of strings",
"description": "Usernames of people to assign this issue to. NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -249339,15 +247763,9 @@
{
"type": "array of strings",
"description": "Usernames of assignees to remove from an issue. NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -254116,10 +252534,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -255711,10 +254126,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -276475,14 +274887,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also replace all of the labels for an issue. For more information, see \"Set labels for an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.3/rest/reference/issues#set-labels-for-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -276659,14 +275065,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also add labels to the existing labels for an issue. For more information, see \"Add labels to an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see \"[Add labels to an issue](https://docs.github.com/enterprise-server@3.3/rest/reference/issues#add-labels-to-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -277235,30 +275635,21 @@
"description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -277565,30 +275956,21 @@
"description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -278444,10 +276826,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -278459,20 +276838,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -278480,10 +276853,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -279329,10 +277699,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -279344,20 +277711,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -279365,10 +277726,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -296244,10 +294602,7 @@
"type": "string",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Markdown text to render in HTML.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The rendering mode. Can be either markdown or gfm.
",
@@ -296262,20 +294617,14 @@
],
"name": "mode",
"in": "body",
- "rawType": "string",
- "rawDescription": "The rendering mode. Can be either `markdown` or `gfm`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository.
",
"type": "string",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -299134,22 +297483,13 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -299159,20 +297499,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client key for which to create the token.
",
@@ -299180,10 +297514,7 @@
"type": "string",
"name": "client_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client key for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client secret for which to create the token.
",
@@ -299191,20 +297522,14 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -300070,30 +298395,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -300103,30 +298416,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -301806,30 +300110,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -301839,20 +300131,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -304342,48 +302628,27 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to add to this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "add_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to add to this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to remove from this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "remove_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to remove from this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -304393,30 +302658,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -305947,90 +304203,63 @@
"description": "Billing email address. This address is not publicized.
",
"name": "billing_email",
"in": "body",
- "rawType": "string",
- "rawDescription": "Billing email address. This address is not publicized.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The company name.
",
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The company name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The publicly visible email address.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The Twitter username of the company.
",
"name": "twitter_username",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Twitter username of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The location.
",
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The location.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The shorthand name of the company.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The shorthand name of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the company.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether an organization can use organization projects.
",
"name": "has_organization_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether an organization can use organization projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether repositories that belong to the organization can use repository projects.
",
"name": "has_repository_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories that belong to the organization can use repository projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -306044,10 +304273,7 @@
"default": "read",
"name": "default_repository_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "Default permission level members have for organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -306055,40 +304281,28 @@
"default": true,
"name": "members_can_create_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_internal_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -306100,10 +304314,7 @@
],
"name": "members_allowed_repository_creation_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies which types of repositories non-admin organization members can create. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -306111,10 +304322,7 @@
"default": true,
"name": "members_can_create_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -306123,10 +304331,8 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -309193,10 +307399,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -311042,10 +309245,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -311761,10 +309961,7 @@
"default": false,
"name": "async",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -312125,10 +310322,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -312224,8 +310418,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.3/rest/reference/orgs#create-hook-config-params).",
"isRequired": true,
"childParamsGroups": [
{
@@ -312242,10 +310434,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -312255,10 +310444,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -312268,10 +310454,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -312290,8 +310473,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -312300,10 +310482,8 @@
],
"name": "username",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -312312,10 +310492,8 @@
],
"name": "password",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -312327,15 +310505,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -312343,10 +310515,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -312821,8 +310990,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.3/rest/reference/orgs#update-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -312839,10 +311006,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -312852,10 +311016,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -312865,10 +311026,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -312887,8 +311045,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -312900,15 +311057,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -312916,10 +311067,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -312928,10 +311076,8 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -313310,10 +311456,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -313323,10 +311466,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -313336,10 +311476,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -313358,8 +311495,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -314387,10 +312523,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process in which the Page will be built. Possible values are `\"legacy\"` and `\"workflow\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -314427,8 +312560,6 @@
],
"name": "source",
"in": "body",
- "rawType": "object",
- "rawDescription": "The source branch and directory used to publish your Pages site.",
"isRequired": false,
"childParamsGroups": [
{
@@ -314441,10 +312572,7 @@
"description": "The repository branch used to publish your site's source files.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository branch used to publish your site's source files.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -314456,10 +312584,7 @@
"default": "/",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -314748,33 +312873,21 @@
"description": "Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see \"Using a custom domain with GitHub Pages.\"
",
"name": "cname",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specify whether HTTPS should be enforced for the repository.
",
"name": "https_enforced",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specify whether HTTPS should be enforced for the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Configures access controls for the GitHub Pages site. If public is set to true, the site is accessible to anyone on the internet. If set to false, the site will only be accessible to users who have at least read access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal visibility. This feature is only available to repositories in an organization on an Enterprise plan.
",
"name": "public",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility. This feature is only available to repositories in an organization on an Enterprise plan.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -314785,10 +312898,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"anyOf": [
@@ -314828,8 +312938,7 @@
"in": "body",
"type": "",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -316414,20 +314523,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -317211,10 +315314,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Body of the project
",
@@ -317224,13 +315324,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "State of the project; either 'open' or 'closed'
",
@@ -317240,10 +315334,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the project; either 'open' or 'closed'",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The baseline permission that all organization members have on this project
",
@@ -317256,20 +315347,14 @@
],
"name": "organization_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The baseline permission that all organization members have on this project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not this project can be seen by everyone.
",
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not this project can be seen by everyone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -318185,20 +316270,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -318593,10 +316672,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Body of the project
",
@@ -318606,13 +316682,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -319779,13 +317849,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not the card is archived
",
@@ -319795,10 +317859,7 @@
],
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not the card is archived",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -320236,10 +318297,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the column the card should be moved to
",
@@ -320249,10 +318307,7 @@
],
"name": "column_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the column the card should be moved to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -320731,13 +318786,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the content associated with the card
",
@@ -320747,10 +318796,7 @@
],
"name": "content_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The piece of content associated with the card
",
@@ -320760,10 +318806,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The piece of content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -321441,10 +319484,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -322027,10 +320067,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -322243,10 +320280,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -322492,10 +320526,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -328226,75 +326257,55 @@
"bodyParameters": [
{
"type": "string",
- "description": "The title of the new pull request.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the new pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests\" in the GitHub Help documentation to learn more.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
",
"examples": [
1
],
"name": "issue",
"in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -332061,7 +330072,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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nYou can create a new pull request.
\nThis 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.
",
+ "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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis 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.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -335934,20 +333945,14 @@
"description": "The title of the pull request.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -335958,30 +333963,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of this Pull Request. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -340928,30 +338924,21 @@
"description": "Title for the automatic commit message.
",
"name": "commit_title",
"in": "body",
- "rawType": "string",
- "rawDescription": "Title for the automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Extra detail to append to automatic commit message.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Extra detail to append to automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "SHA that pull request head must match to allow merge.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "SHA that pull request head must match to allow merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -340963,10 +338950,7 @@
],
"name": "merge_method",
"in": "body",
- "rawType": "string",
- "rawDescription": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -341087,10 +339071,7 @@
"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.
",
"name": "expected_head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -342482,10 +340463,7 @@
"description": "The text of the reply to the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the reply to the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -343860,30 +341838,21 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The relative path to the file that necessitates a comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -343894,10 +341863,7 @@
},
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343908,30 +341874,21 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
- "rawDescription": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "Required when using multi-line comments unless using in_reply_to. The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request\" in the GitHub Help documentation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343943,10 +341900,7 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -343956,10 +341910,7 @@
],
"name": "in_reply_to",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -344611,10 +342562,7 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -345212,7 +343160,7 @@
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "List requested reviewers for a pull request",
+ "title": "Get all requested reviewers for a pull request",
"category": "pulls",
"subcategory": "review-requests",
"parameters": [
@@ -345242,24 +343190,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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": [],
@@ -345702,7 +343632,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -345750,28 +343680,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "An array of team slugs that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -351319,28 +349237,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be removed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of team slugs that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be removed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -357269,24 +355175,18 @@
"description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit in the pull request when you do not specify a value.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
- "description": "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.
",
+ "description": "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.
",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -357294,105 +355194,13 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.3/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The relative path to the file that necessitates a review comment.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "position": {
- "type": "integer",
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
- "name": "position",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "body": {
- "type": "string",
- "description": "Text of the review comment.
",
- "name": "body",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "line": {
- "type": "integer",
- "examples": [
- 28
- ],
- "name": "line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "side": {
- "type": "string",
- "examples": [
- "RIGHT"
- ],
- "name": "side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "examples": [
- 26
- ],
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_side": {
- "type": "string",
- "examples": [
- "LEFT"
- ],
- "name": "start_side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "body"
- ]
- },
"name": "comments",
"in": "body",
- "rawType": "array",
- "rawDescription": "Use the following table to specify the location, destination, and contents of the draft review comment.",
"isRequired": false,
"childParamsGroups": [
{
@@ -357405,30 +355213,21 @@
"description": "The relative path to the file that necessitates a review comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -357437,10 +355236,8 @@
],
"name": "line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -357449,10 +355246,8 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -357461,10 +355256,8 @@
],
"name": "start_line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -357473,10 +355266,8 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -357849,7 +355640,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.
\nPull request reviews created in the PENDING state do not include the submitted_at property in the response.
\nNote: 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 v3 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.
\nThe 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.
",
+ "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.
\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.\"
\nNote: 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 v3 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.
\nThe 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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -358328,10 +356119,7 @@
"description": "The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -359804,10 +357592,7 @@
"description": "The message for the pull request review dismissal
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The message for the pull request review dismissal",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -359819,10 +357604,8 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -360251,10 +358034,7 @@
"description": "The body text of the pull request review
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -360266,10 +358046,7 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -360630,8 +358407,8 @@
}
}
],
- "descriptionHTML": "",
"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.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -361398,10 +359175,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -362441,10 +360215,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -363537,10 +361308,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the commit comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -364576,10 +362344,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the issue comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -365619,10 +363384,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -366658,10 +364420,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the pull request review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -367693,10 +365452,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the release.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -368728,10 +366484,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -369396,10 +367149,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.3/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -370449,40 +368199,28 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -370490,10 +368228,7 @@
"default": false,
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -370501,10 +368236,7 @@
"default": false,
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -370512,10 +368244,7 @@
"default": false,
"name": "generate_release_notes",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -371244,40 +368973,28 @@
"description": "The tag name for the release. This can be an existing tag or a new one.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag name for the release. This can be an existing tag or a new one.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.
",
"name": "previous_tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.
",
"name": "configuration_file_path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -373537,60 +371254,42 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true makes the release a draft, and false publishes the release.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` makes the release a draft, and `false` publishes the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true to identify the release as a prerelease, false to identify the release as a full release.
",
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -374741,20 +372440,14 @@
"description": "The file name of the asset.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The file name of the asset.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An alternate short description of the asset. Used in place of the filename.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "An alternate short description of the asset. Used in place of the filename.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -374763,10 +372456,8 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -378231,30 +375922,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378262,10 +375944,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -378277,10 +375956,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378288,10 +375964,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378299,10 +375972,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378310,10 +375980,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378321,20 +375988,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378342,30 +376003,21 @@
"default": false,
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Pass `true` to create an initial commit with empty README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
",
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
",
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378373,10 +376025,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378384,10 +376033,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378395,10 +376041,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378406,10 +376049,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378417,10 +376057,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -378428,10 +376065,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -385826,30 +383460,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -385857,10 +383482,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -385872,10 +383494,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object or null",
@@ -385909,10 +383528,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -385946,10 +383562,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -385983,10 +383596,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -385995,11 +383605,6 @@
},
"name": "security_and_analysis",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.3/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.",
"isRequired": false,
"childParamsGroups": [
{
@@ -386023,8 +383628,6 @@
},
"name": "advanced_security",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see \"[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security).\"",
"childParamsGroups": [
{
"parentName": "advanced_security",
@@ -386035,10 +383638,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -386060,8 +383660,6 @@
},
"name": "secret_scanning",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning for this repository. For more information, see \"[About secret scanning](/code-security/secret-security/about-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning",
@@ -386072,10 +383670,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -386097,8 +383692,6 @@
},
"name": "secret_scanning_push_protection",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \"[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning_push_protection",
@@ -386109,10 +383702,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -386129,10 +383719,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -386145,10 +383732,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -386161,10 +383745,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -386176,10 +383757,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386187,10 +383765,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386198,10 +383773,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386209,20 +383781,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Updates the default branch for this repository.
",
"name": "default_branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "Updates the default branch for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386230,10 +383796,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386241,10 +383804,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386252,10 +383812,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386263,10 +383820,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386274,10 +383828,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386285,10 +383836,7 @@
"default": false,
"name": "allow_update_branch",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386296,10 +383844,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386307,10 +383852,7 @@
"default": false,
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -386318,10 +383860,7 @@
"default": false,
"name": "allow_forking",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow private forks, or `false` to prevent private forks.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -392436,10 +389975,7 @@
"maxLength": 100,
"name": "event_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "A custom webhook event name. Must be 100 characters or fewer.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -392448,10 +389984,7 @@
"maxProperties": 10,
"name": "client_payload",
"in": "body",
- "rawType": "object",
- "rawDescription": "JSON payload with extra information about the webhook event that your action or workflow may use.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -393129,15 +390662,9 @@
{
"type": "array of strings",
"description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names cannot contain uppercase letters.
",
- "items": {
- "type": "string"
- },
"name": "names",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -393242,23 +390769,14 @@
"description": "The username or organization name the repository will be transferred to.
",
"name": "new_owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The username or organization name the repository will be transferred to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
",
- "items": {
- "type": "integer"
- },
"name": "team_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -395667,30 +393185,21 @@
"description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
",
"name": "owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the new repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the new repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the new repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the new repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -395698,10 +393207,7 @@
"default": false,
"name": "include_all_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -395709,10 +393215,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to create a new private repository or `false` to create a new public one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -401174,30 +398677,21 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A short description of the repository.
",
"type": "string",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL with more information about the repository.
",
"type": "string",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is private.
",
@@ -401205,10 +398699,7 @@
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether issues are enabled.
",
@@ -401219,10 +398710,7 @@
],
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether issues are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether projects are enabled.
",
@@ -401233,10 +398721,7 @@
],
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether projects are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the wiki is enabled.
",
@@ -401247,20 +398732,14 @@
],
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the wiki is enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"type": "integer",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is initialized with a minimal README.
",
@@ -401268,10 +398747,7 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is initialized with a minimal README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The desired language or platform to apply to the .gitignore.
",
@@ -401281,10 +398757,7 @@
],
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The desired language or platform to apply to the .gitignore.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The license keyword of the open source license for this repository.
",
@@ -401294,10 +398767,7 @@
],
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The license keyword of the open source license for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow squash merges for pull requests.
",
@@ -401308,10 +398778,7 @@
],
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow squash merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow merge commits for pull requests.
",
@@ -401322,10 +398789,7 @@
],
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow merge commits for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow rebase merges for pull requests.
",
@@ -401336,10 +398800,7 @@
],
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow rebase merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow Auto-merge to be used on pull requests.
",
@@ -401350,10 +398811,7 @@
],
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow Auto-merge to be used on pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to delete head branches when pull requests are merged
",
@@ -401364,10 +398822,7 @@
],
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to delete head branches when pull requests are merged",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether downloads are enabled.
",
@@ -401378,10 +398833,7 @@
],
"name": "has_downloads",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether downloads are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether this repository acts as a template that can be used to generate new repositories.
",
@@ -401392,10 +398844,7 @@
],
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether this repository acts as a template that can be used to generate new repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -405416,20 +402865,14 @@
"description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
",
"name": "key_prefix",
"in": "body",
- "rawType": "string",
- "rawDescription": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL must contain <num> for the reference number.
",
"name": "url_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL must contain `` for the reference number.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -407500,40 +404943,28 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The new file content, using Base64 encoding.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new file content, using Base64 encoding.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required if you are updating a file. The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -407578,8 +405009,6 @@
],
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "The person that committed the file. Default: the authenticated user.",
"isRequired": false,
"childParamsGroups": [
{
@@ -407592,20 +405021,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -407614,10 +405037,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -407666,8 +405087,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -407680,20 +405099,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -407702,10 +405115,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -408258,30 +405669,21 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The blob SHA of the file being replaced.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -408308,8 +405710,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the committer.",
"isRequired": false,
"childParamsGroups": [
{
@@ -408321,19 +405721,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -408364,8 +405758,6 @@
},
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the author.",
"isRequired": false,
"childParamsGroups": [
{
@@ -408377,19 +405769,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -411542,10 +408928,7 @@
"description": "Optional parameter to specify the organization name if forking into an organization.
",
"name": "organization",
"in": "body",
- "rawType": "string",
- "rawDescription": "Optional parameter to specify the organization name if forking into an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -429439,10 +426822,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -429456,13 +426836,7 @@
],
"name": "resolution",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -430330,46 +427704,28 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "List GitHub IDs for organization members who will become team maintainers.
",
- "items": {
- "type": "string"
- },
"name": "maintainers",
"in": "body",
- "rawType": "array",
- "rawDescription": "List GitHub IDs for organization members who will become team maintainers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
",
- "items": {
- "type": "string"
- },
"name": "repo_names",
"in": "body",
- "rawType": "array",
- "rawDescription": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -430380,10 +427736,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -430395,30 +427748,21 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "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 \"Update LDAP mapping for a team\" endpoint to change the LDAP DN. For more information, see \"Using LDAP.\"
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.3/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.3/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -431860,20 +429204,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -431884,10 +429222,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -431900,23 +429235,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -433438,10 +430764,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -438473,20 +435796,10 @@
{
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -439628,20 +436941,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -439652,10 +436959,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -439668,23 +436972,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -441867,10 +439162,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -446886,10 +444178,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -448528,10 +445817,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -449410,10 +446696,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -450367,10 +447650,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -451229,10 +448509,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -452230,20 +449507,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -452251,10 +449522,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -453202,20 +450470,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -454227,20 +451489,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -454248,10 +451504,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -455179,20 +452432,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -456119,10 +453366,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -456869,10 +454113,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -458336,10 +455577,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The publicly visible email address of the user.
",
@@ -458349,10 +455587,7 @@
],
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new blog URL of the user.
",
@@ -458362,10 +455597,7 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blog URL of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new Twitter username of the user.
",
@@ -458375,13 +455607,7 @@
],
"name": "twitter_username",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new Twitter username of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new company of the user.
",
@@ -458391,10 +455617,7 @@
],
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new company of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new location of the user.
",
@@ -458404,30 +455627,21 @@
],
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new location of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new hiring availability of the user.
",
"type": "boolean",
"name": "hireable",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "The new hiring availability of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new short biography of the user.
",
"type": "string",
"name": "bio",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new short biography of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -460654,20 +457868,10 @@
{
"description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. Note: Alternatively, you can pass a single email address or an array of emails addresses directly, but we recommend that you pass an object using the emails key.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"examples": [],
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -460798,19 +458002,9 @@
{
"description": "Email addresses associated with the GitHub user account.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Email addresses associated with the GitHub user account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -462526,10 +459720,7 @@
"type": "string",
"name": "armored_public_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "A GPG key in ASCII-armored format.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -463551,10 +460742,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The public SSH key to add to your GitHub account.
",
@@ -463562,10 +460750,7 @@
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key to add to your GitHub account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -464085,10 +461270,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -464098,10 +461280,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -464111,10 +461290,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -464133,8 +461309,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -465172,10 +462347,7 @@
"description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -465262,8 +462434,6 @@
},
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -465279,10 +462449,7 @@
"https://example.com/webhook"
],
"name": "url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -465291,10 +462458,7 @@
"\"json\""
],
"name": "content_type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -465303,10 +462467,7 @@
"\"********\""
],
"name": "secret",
- "in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "childParamsGroups": []
+ "in": "body"
},
{
"oneOf": [
@@ -465324,8 +462485,7 @@
"name": "insecure_ssl",
"in": "body",
"type": "string or number",
- "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "childParamsGroups": []
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
"
},
{
"type": "string",
@@ -465334,9 +462494,7 @@
],
"name": "token",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
},
{
"type": "string",
@@ -465345,9 +462503,7 @@
],
"name": "digest",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
}
]
}
@@ -465359,15 +462515,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -465375,10 +462525,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -466096,8 +463243,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -466114,10 +463259,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -466127,10 +463269,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466140,10 +463279,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -466162,8 +463298,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466172,10 +463307,8 @@
],
"name": "address",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466184,10 +463317,8 @@
],
"name": "room",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -466199,41 +463330,23 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.3/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be added to the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "add_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "remove_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -466241,10 +463354,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
diff --git a/lib/rest/static/decorated/ghes-3.4.json b/lib/rest/static/decorated/ghes-3.4.json
index 10a06db122..dcd8b84cc4 100644
--- a/lib/rest/static/decorated/ghes-3.4.json
+++ b/lib/rest/static/decorated/ghes-3.4.json
@@ -945,10 +945,7 @@
],
"name": "enabled_organizations",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -960,10 +957,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -1216,16 +1210,9 @@
{
"description": "List of organization IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -1469,23 +1456,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -1637,10 +1615,7 @@
],
"name": "enabled_repositories",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -1652,10 +1627,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3292,16 +3264,9 @@
{
"description": "List of repository IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -3545,23 +3510,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -3718,10 +3674,7 @@
"description": "Whether GitHub Actions is enabled on the repository.
",
"name": "enabled",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions is enabled on the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -3733,10 +3686,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3888,23 +3838,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4332,20 +4273,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -4357,23 +4292,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -6811,15 +6737,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -7374,20 +7294,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -7534,7 +7448,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7665,7 +7579,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7774,7 +7688,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7872,7 +7786,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -7894,20 +7808,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-server@3.4/rest/reference/actions#get-an-environment-public-key) endpoint.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -7998,7 +7906,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8211,10 +8119,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organization.
",
@@ -8225,38 +8130,21 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -8264,10 +8152,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -8485,10 +8370,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organizations.
",
@@ -8500,10 +8382,7 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organizations.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -8511,10 +8390,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -8886,16 +8762,9 @@
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -9315,16 +9184,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -9669,10 +9531,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.
",
@@ -9685,38 +9544,21 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9724,10 +9566,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -9963,10 +9802,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.
",
@@ -9978,10 +9814,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9989,10 +9822,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -12612,16 +12442,9 @@
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -13041,16 +12864,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -16884,15 +16700,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -17037,15 +16847,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -21091,15 +20895,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -21244,15 +21042,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -25373,15 +25165,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -25536,15 +25322,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -26978,7 +26758,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -37953,22 +37733,13 @@
{
"type": "array of integers",
"description": "The list of environment ids to approve or reject
",
- "items": {
- "type": "integer",
- "examples": [
- 161171787
- ]
- },
"examples": [
161171787,
161171795
],
"name": "environment_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of environment ids to approve or reject",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -37982,10 +37753,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Whether to approve or reject deployment to the specified environments.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -37995,10 +37763,7 @@
],
"name": "comment",
"in": "body",
- "rawType": "string",
- "rawDescription": "A comment to accompany the deployment review",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -38849,7 +38614,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -44244,10 +44009,7 @@
"description": "The git reference for the workflow. The reference can be a branch or tag name.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The git reference for the workflow. The reference can be a branch or tag name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -44258,10 +44020,7 @@
"maxProperties": 10,
"name": "inputs",
"in": "body",
- "rawType": "object",
- "rawDescription": "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -80175,15 +79934,6 @@
"format": "date-time"
}
},
- {
- "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.
",
@@ -80192,6 +79942,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"bodyParameters": [],
@@ -82518,20 +82277,14 @@
"format": "date-time",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the notification has been read.
",
"type": "boolean",
"name": "read",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the notification has been read.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -85115,10 +84868,7 @@
"type": "boolean",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to block all notifications from a thread.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -87705,10 +87455,7 @@
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: The current timestamp.
",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -95359,20 +95106,14 @@
"description": "Determines if notifications should be received from this repository.
",
"name": "subscribed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications should be received from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository.
",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if all notifications should be blocked from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -102895,34 +102636,19 @@
{
"description": "List of repository names that the token should have access to
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository names that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that the token should have access to
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -103328,8 +103054,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -103345,10 +103069,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103358,10 +103079,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103371,10 +103089,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103384,10 +103099,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103397,10 +103109,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103410,10 +103119,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103423,10 +103129,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103436,10 +103139,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103449,10 +103149,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103462,10 +103159,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103475,10 +103169,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103488,10 +103179,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103502,10 +103190,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103515,10 +103200,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103528,10 +103210,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103541,10 +103220,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103554,10 +103230,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103567,10 +103240,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103580,10 +103250,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103592,10 +103259,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103605,10 +103269,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103618,10 +103279,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103631,10 +103289,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103643,10 +103298,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103657,10 +103309,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103670,10 +103319,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103683,10 +103329,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103696,10 +103339,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103709,10 +103349,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -103722,10 +103359,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -103741,7 +103375,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -113280,10 +112914,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -113349,10 +112980,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -114215,10 +113843,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -115077,10 +114702,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -115149,10 +114771,7 @@
],
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The name of the user or organization to scope the user-to-server access token to. Required unless target_id is specified.
",
@@ -115162,10 +114781,7 @@
],
"name": "target",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the user or organization to scope the user-to-server access token to. **Required** unless `target_id` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The ID of the user or organization to scope the user-to-server access token to. Required unless target is specified.
",
@@ -115175,42 +114791,24 @@
],
"name": "target_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the user or organization to scope the user-to-server access token to. **Required** unless `target` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository names to scope the user-to-server access token to. repositories may not be specified if repository_ids is specified.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository IDs to scope the user-to-server access token to. repository_ids may not be specified if repositories is specified.
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -115616,8 +115214,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -115633,10 +115229,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115646,10 +115239,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115659,10 +115249,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115672,10 +115259,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115685,10 +115269,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115698,10 +115279,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115711,10 +115289,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115724,10 +115299,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115737,10 +115309,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115750,10 +115319,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115763,10 +115329,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115776,10 +115339,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115790,10 +115350,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115803,10 +115360,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115816,10 +115370,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115829,10 +115380,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115842,10 +115390,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115855,10 +115400,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115868,10 +115410,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115880,10 +115419,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115893,10 +115429,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115906,10 +115439,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115919,10 +115449,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115931,10 +115458,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115945,10 +115469,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115958,10 +115479,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115971,10 +115489,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115984,10 +115499,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -115997,10 +115509,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -116010,10 +115519,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -116996,10 +116502,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -117009,10 +116512,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -117022,10 +116522,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -117044,8 +116541,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -120012,10 +119508,7 @@
"description": "The new name of the branch.
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the branch.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -122862,10 +122355,7 @@
"description": "The name of the branch which should be updated to match upstream.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch which should be updated to match upstream.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -122967,30 +122457,21 @@
"description": "The name of the base branch that the head will be merged into.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the base branch that the head will be merged into.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The head to merge. This can be a branch name or a commit SHA1.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The head to merge. This can be a branch name or a commit SHA1.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Commit message to use for the merge commit. If omitted, a default message will be used.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -126135,20 +125616,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -126161,11 +125636,6 @@
],
"name": "required_status_checks",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require status checks to pass before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -126178,60 +125648,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -126244,20 +125675,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -126275,20 +125700,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -126299,13 +125718,7 @@
"description": "Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
",
"name": "enforce_admins",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object or null",
@@ -126365,38 +125778,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -126483,38 +125878,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -126523,11 +125900,6 @@
},
"name": "required_pull_request_reviews",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -126578,8 +125950,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"childParamsGroups": [
{
"parentName": "dismissal_restrictions",
@@ -126589,38 +125959,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -126630,28 +125982,19 @@
"type": "boolean",
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners review them.
",
"name": "require_code_owner_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
"description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "object",
@@ -126696,8 +126039,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"childParamsGroups": [
{
"parentName": "bypass_pull_request_allowances",
@@ -126707,38 +126048,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -126754,38 +126077,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -126797,38 +126102,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -126884,11 +126171,6 @@
],
"name": "restrictions",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -126899,41 +126181,23 @@
{
"type": "array of strings",
"description": "The list of user logins with push access
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of team slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of app slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with push access",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -126944,53 +126208,35 @@
"description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true to enforce a linear commit history. Set to false to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false. For more information, see \"Requiring a linear commit history\" in the GitHub Help documentation.
",
"name": "required_linear_history",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean or null",
"description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to true to allow force pushes. Set to false or null to block force pushes. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.\"
",
"name": "allow_force_pushes",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to false to prevent deletion of the protected branch. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.
",
"name": "allow_deletions",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "If set to true, the restrictions branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to true to restrict new branch creation. Default: false.
",
"name": "block_creations",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to false to disable. Default: false.
",
"name": "required_conversation_resolution",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -129107,8 +128353,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"isRequired": false,
"childParamsGroups": [
{
@@ -129119,38 +128363,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -129161,30 +128387,21 @@
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners have reviewed.
",
"name": "require_code_owner_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -129229,8 +128446,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"isRequired": false,
"childParamsGroups": [
{
@@ -129241,38 +128456,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -131416,60 +130613,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -131482,20 +130640,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -131808,15 +130960,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -131912,15 +131058,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -132011,15 +131151,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -133079,15 +132213,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -133536,15 +132664,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -133993,15 +133115,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -134740,15 +133856,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -135045,15 +134155,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -135350,15 +134454,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -135912,15 +135010,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -136184,15 +135276,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -136456,15 +135542,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -136724,40 +135804,28 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -136770,10 +135838,7 @@
"default": "queued",
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -136781,10 +135846,7 @@
"description": "The time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -136801,10 +135863,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -136812,10 +135871,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -136980,50 +136036,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137035,40 +136076,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137132,30 +136161,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137168,8 +136188,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#output-object) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137182,10 +136200,7 @@
"description": "The title of the check run.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the check run.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -137193,10 +136208,7 @@
"description": "The summary of the check run. This parameter supports Markdown.
",
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "The summary of the check run. This parameter supports Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -137204,126 +136216,14 @@
"description": "The details of the check run. This parameter supports Markdown.
",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The details of the check run. This parameter supports Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the Checks and Files changed tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"About status checks\". See the annotations object description for details about how to use this parameter.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#annotations-object) description for details about how to use this parameter.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137336,50 +136236,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137391,40 +136276,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137433,49 +136306,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#images-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137488,30 +136320,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137529,50 +136352,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -137584,40 +136392,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -137631,30 +136427,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -137664,53 +136451,8 @@
"type": "array of objects",
"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. See the actions object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -137724,10 +136466,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -137735,10 +136474,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -137746,10 +136482,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -141406,30 +140139,21 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -141437,10 +140161,7 @@
"description": "This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -141452,10 +140173,7 @@
],
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -141472,10 +140190,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -141483,10 +140198,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -141651,50 +140363,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -141706,40 +140403,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -141803,30 +140488,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -141838,8 +140514,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#output-object-1) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -141852,10 +140526,7 @@
"description": "Required.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required**.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -141863,10 +140534,7 @@
"maxLength": 65535,
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -141874,126 +140542,14 @@
"maxLength": 65535,
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"About status checks\". See the annotations object description for details.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -142006,50 +140562,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -142061,40 +140602,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -142103,49 +140632,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -142158,30 +140646,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -142199,50 +140678,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -142254,40 +140718,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -142301,30 +140753,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -142334,53 +140777,8 @@
"type": "array of objects",
"description": "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.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -142394,10 +140792,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -142405,10 +140800,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -142416,10 +140808,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -146531,10 +144920,7 @@
"description": "The sha of the head commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The sha of the head commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -152716,40 +151102,8 @@
{
"type": "array of objects",
"description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the auto_trigger_checks object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "integer",
- "description": "The id of the GitHub App.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "setting": {
- "type": "boolean",
- "description": "Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them.
",
- "default": true,
- "name": "setting",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- },
"name": "auto_trigger_checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#auto_trigger_checks-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -152762,10 +151116,7 @@
"description": "The id of the GitHub App.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -152773,10 +151124,7 @@
"default": true,
"name": "setting",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -162768,10 +161116,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -162784,13 +161129,7 @@
],
"name": "dismissed_reason",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -164325,30 +162664,21 @@
"pattern": "^[0-9a-fA-F]+$",
"name": "commit_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit to which the analysis you are uploading relates.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full Git reference, formatted as refs/heads/<branch name>,\nrefs/pull/<number>/merge, or refs/pull/<number>/head.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full Git reference, formatted as `refs/heads/`,\n`refs/pull//merge`, or `refs/pull//head`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. For more information, see \"SARIF support for code scanning.\"
",
"type": "string",
"name": "sarif",
"in": "body",
- "rawType": "string",
- "rawDescription": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/enterprise-server@3.4/code-security/secure-coding/sarif-support-for-code-scanning).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
",
@@ -164359,10 +162689,7 @@
],
"name": "checkout_uri",
"in": "body",
- "rawType": "string",
- "rawDescription": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
@@ -164370,20 +162697,14 @@
"type": "string",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts.
",
"type": "string",
"name": "tool_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -165204,20 +163525,10 @@
{
"type": "string",
"description": "The permission to grant the collaborator. Only valid on organization-owned repositories.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -171014,10 +169325,7 @@
],
"name": "permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -187419,10 +185727,7 @@
"description": "The contents of the comment
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -188338,40 +186643,28 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Relative path of the file to comment on.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Relative path of the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Line index in the diff to comment on.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Line index in the diff to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Deprecated. Use position parameter instead. Line number in the file to comment on.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -191565,36 +189858,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
"description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.
\nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:
\nhttp://ci.example.com/user/repo/build/sha
",
"name": "target_url",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "A short description of the status.
",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "A short description of the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -191602,10 +189880,7 @@
"default": "default",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "A string label to differentiate this status from the status of other systems. This field is case-insensitive.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -192270,20 +190545,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -192295,23 +190564,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "string"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -194749,15 +193009,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -195288,20 +193542,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.4/rest/reference/dependabot#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -195587,30 +193835,21 @@
"description": "A name for the key.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A name for the key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the key.
",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "If true, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.
\nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"Repository permission levels for an organization\" and \"Permission levels for a user account repository.\"
",
"name": "read_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -196714,10 +194953,7 @@
"description": "The ref to deploy. This can be a branch, tag, or SHA.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The ref to deploy. This can be a branch, tag, or SHA.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -196725,10 +194961,7 @@
"default": "deploy",
"name": "task",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -196736,23 +194969,14 @@
"default": true,
"name": "auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.
",
- "items": {
- "type": "string"
- },
"name": "required_contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [status](https://docs.github.com/enterprise-server@3.4/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -196770,8 +194994,7 @@
"in": "body",
"type": "object or string",
"description": "JSON payload with extra information about the deployment.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -196779,10 +195002,7 @@
"default": "production",
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
@@ -196790,13 +195010,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Short description of the deployment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -196804,20 +195018,14 @@
"default": false,
"name": "transient_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specifies if the given environment is one that end-users directly interact with. Default: true when environment is production and false otherwise.
",
"name": "production_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -198362,12 +196570,639 @@
]
}
],
+ "branch-policies": [
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "List deployment branch policies",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "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": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Lists the deployment branch policies for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "Create a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "example-wildcard",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a wildcard name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ },
+ {
+ "key": "example-single-branch",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a single branch name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "main"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Creates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "303",
+ "description": "Response if the same branch name pattern already exists
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found or deployment_branch_policy.custom_branch_policies property for the environment is set to false
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Get a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Gets a deployment branch policy for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Update a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Updates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Delete a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Deletes a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ]
+ }
+ ],
"environments": [
{
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments",
- "title": "Get all environments",
+ "title": "List environments",
"category": "deployments",
"subcategory": "environments",
"parameters": [
@@ -199090,7 +197925,7 @@
}
],
"previews": [],
- "descriptionHTML": "Get all environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Lists the environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -199128,7 +197963,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -199797,7 +198632,7 @@
}
],
"previews": [],
- "descriptionHTML": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Note: To get information about name patterns that branches must match in order to deploy to this environment, see \"Get a deployment branch policy.\"
\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the repo scope. GitHub\nApps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -199835,7 +198670,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -199850,54 +198685,13 @@
],
"name": "wait_timer",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects or null",
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of reviewer.
",
- "enum": [
- "User",
- "Team"
- ],
- "examples": [
- "User"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
- },
- "id": {
- "type": "integer",
- "description": "The id of the user or team who can review the deployment
",
- "examples": [
- 4532992
- ],
- "name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
- }
- }
- },
"name": "reviewers",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
"isRequired": false,
"childParamsGroups": [
{
@@ -199916,10 +198710,7 @@
"User"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
@@ -199928,10 +198719,7 @@
4532992
],
"name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -199968,11 +198756,6 @@
],
"name": "deployment_branch_policy",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -199985,20 +198768,14 @@
"description": "Whether only branches with branch protection rules can deploy to this environment. If protected_branches is true, custom_branch_policies must be false; if protected_branches is false, custom_branch_policies must be true.
",
"name": "protected_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "Whether only branches that match the specified name patterns can deploy to this environment. If custom_branch_policies is true, protected_branches must be false; if custom_branch_policies is false, protected_branches must be true.
",
"name": "custom_branch_policies",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -200013,6 +198790,23 @@
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
@@ -200668,7 +199462,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: Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"Environments.\"
\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.
",
+ "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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -200710,7 +199504,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -201553,10 +200347,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -201564,10 +200355,7 @@
"default": "",
"name": "target_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -201575,10 +200363,7 @@
"default": "",
"name": "log_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -201586,10 +200371,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the status. The maximum description length is 140 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -201601,10 +200383,7 @@
],
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -201612,20 +200391,14 @@
"default": "",
"name": "environment_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the URL for accessing your environment. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Adds a new inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. An inactive status is only added to deployments that had a success state. Default: true
",
"name": "auto_inactive",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -205711,10 +204484,7 @@
],
"name": "announcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.4/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -205725,13 +204495,7 @@
],
"name": "expires_at",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -206548,10 +205312,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -206603,8 +205364,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": true,
"childParamsGroups": [
{
@@ -206617,40 +205376,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -206659,15 +205406,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -206675,10 +205416,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -206977,8 +205715,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": false,
"childParamsGroups": [
{
@@ -206991,40 +205727,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -207033,15 +205757,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -207049,10 +205767,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -207274,10 +205989,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -207456,10 +206168,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -208232,10 +206941,7 @@
"description": "A JSON string with the attributes enabled and when.
\nThe possible values for enabled are true and false. When it's false, the attribute when is ignored and the maintenance mode is turned off. when defines the time period when the maintenance was enabled.
\nThe possible values for when are now or any date parseable by mojombo/chronic.
",
"name": "maintenance",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the attributes `enabled` and `when`.\n\nThe possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -208991,10 +207697,7 @@
"description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#get-settings).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -209099,10 +207802,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -209175,10 +207875,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -209251,30 +207948,21 @@
"description": "The content of your .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your _.ghl_ license file.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "You must provide a password only if you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.
",
"name": "password",
"in": "body",
- "rawType": "string",
- "rawDescription": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An optional JSON string containing the installation settings. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "An optional JSON string containing the installation settings. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#get-settings).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -209315,10 +208003,7 @@
"description": "The content of your new .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your new _.ghl_ license file.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -209588,20 +208273,14 @@
"type": "string",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether repositories can override enforcement.
",
"type": "boolean",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories can override enforcement.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -209763,30 +208442,21 @@
"description": "The organization's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The login of the user who will manage this organization.
",
"name": "admin",
"in": "body",
- "rawType": "string",
- "rawDescription": "The login of the user who will manage this organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The organization's display name.
",
"name": "profile_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's display name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -209956,10 +208626,7 @@
"description": "The organization's new name.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's new name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -210194,20 +208861,14 @@
"description": "The new pre-receive environment's name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new pre-receive environment's name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -210445,20 +209106,14 @@
"description": "This pre-receive environment's new name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "This pre-receive environment's new name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -210984,20 +209639,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -211006,10 +209655,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -211018,30 +209664,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The state of enforcement for this hook. default: disabled
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook. default: `disabled`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level. default: false
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -211387,20 +210024,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -211409,10 +210040,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -211421,30 +210049,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The state of enforcement for this hook.
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level.
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -211914,10 +210533,7 @@
],
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -213180,20 +211796,14 @@
"description": "The user's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required for built-in authentication. The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"About authentication for your enterprise.\"
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required for built-in authentication.** The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.4/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -213430,10 +212040,7 @@
"description": "The user's new username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's new username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -213549,15 +212156,9 @@
{
"type": "array of strings",
"description": "A list of scopes.
",
- "items": {
- "type": "string"
- },
"name": "scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of [scopes](https://docs.github.com/enterprise-server@3.4/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -215309,10 +213910,7 @@
"description": "The reason the user is being suspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Suspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being suspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.4/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -215366,10 +213964,7 @@
"description": "The reason the user is being unsuspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Unsuspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.4/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -215983,10 +214578,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names and content for the files that make up the gist
",
@@ -216021,8 +214613,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names and content for the files that make up the gist",
"isRequired": true,
"childParamsGroups": [
{
@@ -216051,10 +214641,7 @@
"type": "string",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "Content of the file",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -216086,8 +214673,7 @@
"in": "body",
"type": "boolean or string",
"description": "Flag indicating whether the gist is public
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -219741,10 +218327,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names of files to be updated
",
@@ -219806,8 +218389,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names of files to be updated",
"isRequired": false,
"childParamsGroups": [
{
@@ -219834,22 +218415,13 @@
"description": "The new content of the file
",
"type": "string",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The new content of the file",
- "childParamsGroups": []
+ "in": "body"
},
{
"description": "The new filename for the file
",
"type": "string or null",
"name": "filename",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new filename for the file",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -225713,10 +224285,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -226413,10 +224982,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -226832,10 +225398,7 @@
"description": "The new blob's content.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blob's content.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -226843,10 +225406,7 @@
"default": "utf-8",
"name": "encoding",
"in": "body",
- "rawType": "string",
- "rawDescription": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -227080,33 +225640,21 @@
"description": "The commit message
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the tree object this commit points to
",
"name": "tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the tree object this commit points to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
",
- "items": {
- "type": "string"
- },
"name": "parents",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -227150,8 +225698,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -227164,20 +225710,14 @@
"description": "The name of the author (or committer) of the commit
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -227185,10 +225725,7 @@
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -227229,8 +225766,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -227242,29 +225777,20 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"format": "date-time",
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -227275,10 +225801,7 @@
"description": "The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits.
",
"name": "signature",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -228150,20 +226673,14 @@
"description": "The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA1 value for this reference.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value for this reference.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -228172,10 +226689,8 @@
],
"name": "key",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -228302,9 +226817,10 @@
},
{
"name": "ref",
- "description": "ref parameter
",
+ "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.
",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -228317,10 +226833,7 @@
"description": "The SHA1 value to set this reference to
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value to set this reference to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -228328,10 +226841,7 @@
"default": false,
"name": "force",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -228536,30 +227046,21 @@
"description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").
",
"name": "tag",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The tag message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the git object this is tagging.
",
"name": "object",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the git object this is tagging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -228571,10 +227072,7 @@
],
"name": "type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -228618,8 +227116,6 @@
],
"name": "tagger",
"in": "body",
- "rawType": "object",
- "rawDescription": "An object with information about the individual creating the tag.",
"isRequired": false,
"childParamsGroups": [
{
@@ -228632,20 +227128,14 @@
"description": "The name of the author of the tag
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author of the tag
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -228653,10 +227143,7 @@
"description": "When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -229094,75 +227581,8 @@
{
"type": "array of objects",
"description": "Objects (of path, mode, type, and sha) specifying a tree structure.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file referenced in the tree.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
- },
- "mode": {
- "type": "string",
- "description": "The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.
",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ],
- "name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
- },
- "type": {
- "type": "string",
- "description": "Either blob, tree, or commit.
",
- "enum": [
- "blob",
- "tree",
- "commit"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
- },
- "sha": {
- "type": "string or null",
- "description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- },
- "content": {
- "type": "string",
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- }
- }
- },
"name": "tree",
"in": "body",
- "rawType": "array",
- "rawDescription": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
"isRequired": true,
"childParamsGroups": [
{
@@ -229174,10 +227594,7 @@
"type": "string",
"description": "The file referenced in the tree.
",
"name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -229190,10 +227607,7 @@
"120000"
],
"name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -229204,31 +227618,19 @@
"commit"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string or null",
"description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -229239,10 +227641,7 @@
"description": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree and entries defined in the tree parameter. Entries defined in the tree parameter will overwrite items from base_tree with the same path. If you're creating new changes on a branch, then normally you'd set base_tree to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the tree parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the tree parameter will be listed as deleted by the new commit.
",
"name": "base_tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -229398,7 +227797,7 @@
}
],
"previews": [],
- "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
",
+ "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
\nReturns an error if you try to delete a file that does not exist.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -240151,32 +238550,21 @@
"name": "title",
"in": "body",
"type": "string or integer",
- "rawDescription": "The title of the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -240191,67 +238579,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -246754,40 +245097,21 @@
"type": "string or integer or null",
"name": "title",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
- "rawDescription": "The title of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -246798,10 +245122,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the issue. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -246816,67 +245137,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with or null to remove current. NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. Pass one or more Labels to replace the set of Labels on this Issue. Send an empty array ([]) to clear all Labels from the Issue. NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -250147,10 +248423,7 @@
],
"name": "lock_reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -254053,15 +252326,9 @@
{
"type": "array of strings",
"description": "Usernames of people to assign this issue to. NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -257294,15 +255561,9 @@
{
"type": "array of strings",
"description": "Usernames of assignees to remove from an issue. NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -262071,10 +260332,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -263666,10 +261924,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -284430,14 +282685,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also replace all of the labels for an issue. For more information, see \"Set labels for an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#set-labels-for-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -284614,14 +282863,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also add labels to the existing labels for an issue. For more information, see \"Add labels to an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see \"[Add labels to an issue](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#add-labels-to-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -285190,30 +283433,21 @@
"description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -285520,30 +283754,21 @@
"description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -286399,10 +284624,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -286414,20 +284636,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -286435,10 +284651,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -287284,10 +285497,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -287299,20 +285509,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -287320,10 +285524,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -304199,10 +302400,7 @@
"type": "string",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Markdown text to render in HTML.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The rendering mode. Can be either markdown or gfm.
",
@@ -304217,20 +302415,14 @@
],
"name": "mode",
"in": "body",
- "rawType": "string",
- "rawDescription": "The rendering mode. Can be either `markdown` or `gfm`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository.
",
"type": "string",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -307414,15 +305606,9 @@
{
"type": "array of strings",
"description": "A list of arrays indicating which repositories should be migrated.
",
- "items": {
- "type": "string"
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of arrays indicating which repositories should be migrated.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -307433,10 +305619,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -307444,10 +305627,7 @@
"default": false,
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -307455,10 +305635,7 @@
"default": false,
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -307469,10 +305646,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -307483,10 +305657,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether releases should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -307497,10 +305668,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded. from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -307511,26 +305679,14 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: \"repositories\".
",
- "items": {
- "type": "string",
- "enum": [
- "repositories"
- ]
- },
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\"repositories\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -313148,10 +311304,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Lock the repositories being migrated at the start of the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether metadata should be excluded and only git source should be included for the migration.
",
@@ -313162,10 +311315,7 @@
],
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether the repository git data should be excluded from the migration.
",
@@ -313176,10 +311326,7 @@
],
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include attachments in the migration
",
@@ -313190,10 +311337,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include attachments in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include releases in the migration
",
@@ -313204,10 +311348,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include releases in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether projects owned by the organization or users should be excluded.
",
@@ -313218,10 +311359,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -313232,50 +311370,25 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Exclude attributes from the API response to improve performance
",
"readOnly": false,
"type": "array of strings",
- "items": {
- "description": "Allowed values that can be passed to the exclude param.",
- "enum": [
- "repositories"
- ],
- "type": "string",
- "examples": [
- "repositories"
- ]
- },
"examples": [
"repositories"
],
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude attributes from the API response to improve performance",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
- "items": {
- "description": "Repository path, owner and name",
- "type": "string",
- "examples": [
- "acme/widgets"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
"description": "",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -319039,22 +317152,13 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -319064,20 +317168,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client key for which to create the token.
",
@@ -319085,10 +317183,7 @@
"type": "string",
"name": "client_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client key for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client secret for which to create the token.
",
@@ -319096,20 +317191,14 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -319967,30 +318056,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -320000,30 +318077,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -321687,30 +319755,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -321720,20 +319776,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -324199,48 +322249,27 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to add to this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "add_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to add to this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to remove from this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "remove_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to remove from this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -324250,30 +322279,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -325806,90 +323826,63 @@
"description": "Billing email address. This address is not publicized.
",
"name": "billing_email",
"in": "body",
- "rawType": "string",
- "rawDescription": "Billing email address. This address is not publicized.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The company name.
",
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The company name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The publicly visible email address.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The Twitter username of the company.
",
"name": "twitter_username",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Twitter username of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The location.
",
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The location.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The shorthand name of the company.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The shorthand name of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the company.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether an organization can use organization projects.
",
"name": "has_organization_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether an organization can use organization projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether repositories that belong to the organization can use repository projects.
",
"name": "has_repository_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories that belong to the organization can use repository projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -325903,10 +323896,7 @@
"default": "read",
"name": "default_repository_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "Default permission level members have for organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -325914,40 +323904,28 @@
"default": true,
"name": "members_can_create_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_internal_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -325959,10 +323937,7 @@
],
"name": "members_allowed_repository_creation_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies which types of repositories non-admin organization members can create. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -325970,10 +323945,7 @@
"default": true,
"name": "members_can_create_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -325981,10 +323953,7 @@
"default": false,
"name": "members_can_fork_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can fork private organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -325993,10 +323962,8 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -329174,10 +327141,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -331023,10 +328987,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -331742,10 +329703,7 @@
"default": false,
"name": "async",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -332106,10 +330064,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -332205,8 +330160,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#create-hook-config-params).",
"isRequired": true,
"childParamsGroups": [
{
@@ -332223,10 +330176,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -332236,10 +330186,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -332249,10 +330196,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -332271,8 +330215,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -332281,10 +330224,8 @@
],
"name": "username",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -332293,10 +330234,8 @@
],
"name": "password",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -332308,15 +330247,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -332324,10 +330257,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -332802,8 +330732,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#update-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -332820,10 +330748,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -332833,10 +330758,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -332846,10 +330768,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -332868,8 +330787,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -332881,15 +330799,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -332897,10 +330809,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -332909,10 +330818,8 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -333291,10 +331198,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -333304,10 +331208,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -333317,10 +331218,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -333339,8 +331237,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -334368,10 +332265,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process in which the Page will be built. Possible values are `\"legacy\"` and `\"workflow\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -334408,8 +332302,6 @@
],
"name": "source",
"in": "body",
- "rawType": "object",
- "rawDescription": "The source branch and directory used to publish your Pages site.",
"isRequired": false,
"childParamsGroups": [
{
@@ -334422,10 +332314,7 @@
"description": "The repository branch used to publish your site's source files.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository branch used to publish your site's source files.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -334437,10 +332326,7 @@
"default": "/",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -334729,33 +332615,21 @@
"description": "Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see \"Using a custom domain with GitHub Pages.\"
",
"name": "cname",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specify whether HTTPS should be enforced for the repository.
",
"name": "https_enforced",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specify whether HTTPS should be enforced for the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Configures access controls for the GitHub Pages site. If public is set to true, the site is accessible to anyone on the internet. If set to false, the site will only be accessible to users who have at least read access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal visibility. This feature is only available to repositories in an organization on an Enterprise plan.
",
"name": "public",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility. This feature is only available to repositories in an organization on an Enterprise plan.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -334766,10 +332640,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"anyOf": [
@@ -334809,8 +332680,7 @@
"in": "body",
"type": "",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -336395,20 +334265,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -337192,10 +335056,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Body of the project
",
@@ -337205,13 +335066,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "State of the project; either 'open' or 'closed'
",
@@ -337221,10 +335076,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the project; either 'open' or 'closed'",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The baseline permission that all organization members have on this project
",
@@ -337237,20 +335089,14 @@
],
"name": "organization_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The baseline permission that all organization members have on this project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not this project can be seen by everyone.
",
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not this project can be seen by everyone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -338166,20 +336012,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -338574,10 +336414,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Body of the project
",
@@ -338587,13 +336424,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -339760,13 +337591,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not the card is archived
",
@@ -339776,10 +337601,7 @@
],
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not the card is archived",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -340217,10 +338039,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the column the card should be moved to
",
@@ -340230,10 +338049,7 @@
],
"name": "column_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the column the card should be moved to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -340712,13 +338528,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the content associated with the card
",
@@ -340728,10 +338538,7 @@
],
"name": "content_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The piece of content associated with the card
",
@@ -340741,10 +338548,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The piece of content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -341422,10 +339226,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -342008,10 +339809,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -342224,10 +340022,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -342473,10 +340268,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -348207,75 +345999,55 @@
"bodyParameters": [
{
"type": "string",
- "description": "The title of the new pull request.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the new pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests\" in the GitHub Help documentation to learn more.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
",
"examples": [
1
],
"name": "issue",
"in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -352042,7 +349814,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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nYou can create a new pull request.
\nThis 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.
",
+ "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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis 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.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -355915,20 +353687,14 @@
"description": "The title of the pull request.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -355939,30 +353705,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of this Pull Request. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -360909,30 +358666,21 @@
"description": "Title for the automatic commit message.
",
"name": "commit_title",
"in": "body",
- "rawType": "string",
- "rawDescription": "Title for the automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Extra detail to append to automatic commit message.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Extra detail to append to automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "SHA that pull request head must match to allow merge.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "SHA that pull request head must match to allow merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -360944,10 +358692,7 @@
],
"name": "merge_method",
"in": "body",
- "rawType": "string",
- "rawDescription": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -361068,10 +358813,7 @@
"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.
",
"name": "expected_head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -362463,10 +360205,7 @@
"description": "The text of the reply to the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the reply to the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -363841,30 +361580,21 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The relative path to the file that necessitates a comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -363875,10 +361605,7 @@
},
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -363889,30 +361616,21 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
- "rawDescription": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "Required when using multi-line comments unless using in_reply_to. The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request\" in the GitHub Help documentation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -363924,10 +361642,7 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -363937,10 +361652,7 @@
],
"name": "in_reply_to",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -364592,10 +362304,7 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -365193,7 +362902,7 @@
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "List requested reviewers for a pull request",
+ "title": "Get all requested reviewers for a pull request",
"category": "pulls",
"subcategory": "review-requests",
"parameters": [
@@ -365223,24 +362932,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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": [],
@@ -365683,7 +363374,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -365731,28 +363422,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "An array of team slugs that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -371300,28 +368979,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be removed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of team slugs that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be removed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -377250,24 +374917,18 @@
"description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit in the pull request when you do not specify a value.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
- "description": "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.
",
+ "description": "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.
",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -377275,105 +374936,13 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The relative path to the file that necessitates a review comment.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "position": {
- "type": "integer",
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
- "name": "position",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "body": {
- "type": "string",
- "description": "Text of the review comment.
",
- "name": "body",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "line": {
- "type": "integer",
- "examples": [
- 28
- ],
- "name": "line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "side": {
- "type": "string",
- "examples": [
- "RIGHT"
- ],
- "name": "side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "examples": [
- 26
- ],
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_side": {
- "type": "string",
- "examples": [
- "LEFT"
- ],
- "name": "start_side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "body"
- ]
- },
"name": "comments",
"in": "body",
- "rawType": "array",
- "rawDescription": "Use the following table to specify the location, destination, and contents of the draft review comment.",
"isRequired": false,
"childParamsGroups": [
{
@@ -377386,30 +374955,21 @@
"description": "The relative path to the file that necessitates a review comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -377418,10 +374978,8 @@
],
"name": "line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -377430,10 +374988,8 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -377442,10 +374998,8 @@
],
"name": "start_line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -377454,10 +375008,8 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -377830,7 +375382,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.
\nPull request reviews created in the PENDING state do not include the submitted_at property in the response.
\nNote: 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 v3 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.
\nThe 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.
",
+ "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.
\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.\"
\nNote: 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 v3 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.
\nThe 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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -378309,10 +375861,7 @@
"description": "The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -379785,10 +377334,7 @@
"description": "The message for the pull request review dismissal
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The message for the pull request review dismissal",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -379800,10 +377346,8 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -380232,10 +377776,7 @@
"description": "The body text of the pull request review
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -380247,10 +377788,7 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -380611,8 +378149,8 @@
}
}
],
- "descriptionHTML": "",
"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.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -381379,10 +378917,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -382422,10 +379957,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -383518,10 +381050,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the commit comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -384557,10 +382086,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the issue comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -385600,10 +383126,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -386639,10 +384162,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the pull request review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -387674,10 +385194,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the release.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -388709,10 +386226,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -389377,10 +386891,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -390430,40 +387941,28 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390471,10 +387970,7 @@
"default": false,
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390482,10 +387978,7 @@
"default": false,
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -390493,10 +387986,7 @@
"default": false,
"name": "generate_release_notes",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -391225,40 +388715,28 @@
"description": "The tag name for the release. This can be an existing tag or a new one.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag name for the release. This can be an existing tag or a new one.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.
",
"name": "previous_tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.
",
"name": "configuration_file_path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -393518,60 +390996,42 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true makes the release a draft, and false publishes the release.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` makes the release a draft, and `false` publishes the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true to identify the release as a prerelease, false to identify the release as a full release.
",
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -394722,20 +392182,14 @@
"description": "The file name of the asset.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The file name of the asset.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An alternate short description of the asset. Used in place of the filename.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "An alternate short description of the asset. Used in place of the filename.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -394744,10 +392198,8 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -398212,30 +395664,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398243,10 +395686,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -398258,10 +395698,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398269,10 +395706,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398280,10 +395714,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398291,10 +395722,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398302,20 +395730,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398323,30 +395745,21 @@
"default": false,
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Pass `true` to create an initial commit with empty README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
",
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
",
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398354,10 +395767,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398365,10 +395775,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398376,10 +395783,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398387,10 +395791,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398398,10 +395799,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -398409,10 +395807,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -405807,30 +403202,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -405838,10 +403224,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -405853,10 +403236,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object or null",
@@ -405890,10 +403270,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -405927,10 +403304,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -405964,10 +403338,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -405976,11 +403347,6 @@
},
"name": "security_and_analysis",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.4/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.",
"isRequired": false,
"childParamsGroups": [
{
@@ -406004,8 +403370,6 @@
},
"name": "advanced_security",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see \"[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security).\"",
"childParamsGroups": [
{
"parentName": "advanced_security",
@@ -406016,10 +403380,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -406041,8 +403402,6 @@
},
"name": "secret_scanning",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning for this repository. For more information, see \"[About secret scanning](/code-security/secret-security/about-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning",
@@ -406053,10 +403412,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -406078,8 +403434,6 @@
},
"name": "secret_scanning_push_protection",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \"[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning_push_protection",
@@ -406090,10 +403444,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -406110,10 +403461,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -406126,10 +403474,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -406142,10 +403487,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -406157,10 +403499,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406168,10 +403507,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406179,10 +403515,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406190,20 +403523,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Updates the default branch for this repository.
",
"name": "default_branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "Updates the default branch for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406211,10 +403538,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406222,10 +403546,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406233,10 +403554,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406244,10 +403562,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406255,10 +403570,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406266,10 +403578,7 @@
"default": false,
"name": "allow_update_branch",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406277,10 +403586,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406288,10 +403594,7 @@
"default": false,
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -406299,10 +403602,7 @@
"default": false,
"name": "allow_forking",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow private forks, or `false` to prevent private forks.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -412417,10 +409717,7 @@
"maxLength": 100,
"name": "event_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "A custom webhook event name. Must be 100 characters or fewer.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -412429,10 +409726,7 @@
"maxProperties": 10,
"name": "client_payload",
"in": "body",
- "rawType": "object",
- "rawDescription": "JSON payload with extra information about the webhook event that your action or workflow may use.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -413260,15 +410554,9 @@
{
"type": "array of strings",
"description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names cannot contain uppercase letters.
",
- "items": {
- "type": "string"
- },
"name": "names",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -413373,23 +410661,14 @@
"description": "The username or organization name the repository will be transferred to.
",
"name": "new_owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The username or organization name the repository will be transferred to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
",
- "items": {
- "type": "integer"
- },
"name": "team_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -415798,30 +413077,21 @@
"description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
",
"name": "owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the new repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the new repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the new repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the new repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -415829,10 +413099,7 @@
"default": false,
"name": "include_all_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -415840,10 +413107,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to create a new private repository or `false` to create a new public one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -421305,30 +418569,21 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A short description of the repository.
",
"type": "string",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL with more information about the repository.
",
"type": "string",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is private.
",
@@ -421336,10 +418591,7 @@
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether issues are enabled.
",
@@ -421350,10 +418602,7 @@
],
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether issues are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether projects are enabled.
",
@@ -421364,10 +418613,7 @@
],
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether projects are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the wiki is enabled.
",
@@ -421378,20 +418624,14 @@
],
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the wiki is enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"type": "integer",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is initialized with a minimal README.
",
@@ -421399,10 +418639,7 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is initialized with a minimal README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The desired language or platform to apply to the .gitignore.
",
@@ -421412,10 +418649,7 @@
],
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The desired language or platform to apply to the .gitignore.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The license keyword of the open source license for this repository.
",
@@ -421425,10 +418659,7 @@
],
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The license keyword of the open source license for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow squash merges for pull requests.
",
@@ -421439,10 +418670,7 @@
],
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow squash merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow merge commits for pull requests.
",
@@ -421453,10 +418681,7 @@
],
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow merge commits for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow rebase merges for pull requests.
",
@@ -421467,10 +418692,7 @@
],
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow rebase merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow Auto-merge to be used on pull requests.
",
@@ -421481,10 +418703,7 @@
],
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow Auto-merge to be used on pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to delete head branches when pull requests are merged
",
@@ -421495,10 +418714,7 @@
],
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to delete head branches when pull requests are merged",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether downloads are enabled.
",
@@ -421509,10 +418725,7 @@
],
"name": "has_downloads",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether downloads are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether this repository acts as a template that can be used to generate new repositories.
",
@@ -421523,10 +418736,7 @@
],
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether this repository acts as a template that can be used to generate new repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -425547,20 +422757,14 @@
"description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
",
"name": "key_prefix",
"in": "body",
- "rawType": "string",
- "rawDescription": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL must contain <num> for the reference number.
",
"name": "url_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL must contain `` for the reference number.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -427631,40 +424835,28 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The new file content, using Base64 encoding.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new file content, using Base64 encoding.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required if you are updating a file. The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -427709,8 +424901,6 @@
],
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "The person that committed the file. Default: the authenticated user.",
"isRequired": false,
"childParamsGroups": [
{
@@ -427723,20 +424913,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -427745,10 +424929,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -427797,8 +424979,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -427811,20 +424991,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -427833,10 +425007,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -428389,30 +425561,21 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The blob SHA of the file being replaced.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -428439,8 +425602,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the committer.",
"isRequired": false,
"childParamsGroups": [
{
@@ -428452,19 +425613,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -428495,8 +425650,6 @@
},
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the author.",
"isRequired": false,
"childParamsGroups": [
{
@@ -428508,19 +425661,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -431673,10 +428820,7 @@
"description": "Optional parameter to specify the organization name if forking into an organization.
",
"name": "organization",
"in": "body",
- "rawType": "string",
- "rawDescription": "Optional parameter to specify the organization name if forking into an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -450663,10 +447807,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -450680,13 +447821,7 @@
],
"name": "resolution",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -451554,46 +448689,28 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "List GitHub IDs for organization members who will become team maintainers.
",
- "items": {
- "type": "string"
- },
"name": "maintainers",
"in": "body",
- "rawType": "array",
- "rawDescription": "List GitHub IDs for organization members who will become team maintainers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
",
- "items": {
- "type": "string"
- },
"name": "repo_names",
"in": "body",
- "rawType": "array",
- "rawDescription": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -451604,10 +448721,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -451619,30 +448733,21 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "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 \"Update LDAP mapping for a team\" endpoint to change the LDAP DN. For more information, see \"Using LDAP.\"
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.4/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -453102,20 +450207,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -453126,10 +450225,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -453142,23 +450238,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -454689,10 +451776,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -459724,20 +456808,10 @@
{
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -460888,20 +457962,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -460912,10 +457980,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -460928,23 +457993,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -463145,10 +460201,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -468164,10 +465217,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -469815,10 +466865,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -470697,10 +467744,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -471654,10 +468698,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -472516,10 +469557,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -473517,20 +470555,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -473538,10 +470570,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -474489,20 +471518,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -475514,20 +472537,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -475535,10 +472552,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -476466,20 +473480,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -477406,10 +474414,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -478156,10 +475161,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -479623,10 +476625,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The publicly visible email address of the user.
",
@@ -479636,10 +476635,7 @@
],
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new blog URL of the user.
",
@@ -479649,10 +476645,7 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blog URL of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new Twitter username of the user.
",
@@ -479662,13 +476655,7 @@
],
"name": "twitter_username",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new Twitter username of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new company of the user.
",
@@ -479678,10 +476665,7 @@
],
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new company of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new location of the user.
",
@@ -479691,30 +476675,21 @@
],
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new location of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new hiring availability of the user.
",
"type": "boolean",
"name": "hireable",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "The new hiring availability of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new short biography of the user.
",
"type": "string",
"name": "bio",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new short biography of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -481941,20 +478916,10 @@
{
"description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. Note: Alternatively, you can pass a single email address or an array of emails addresses directly, but we recommend that you pass an object using the emails key.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"examples": [],
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -482085,19 +479050,9 @@
{
"description": "Email addresses associated with the GitHub user account.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Email addresses associated with the GitHub user account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -483813,10 +480768,7 @@
"type": "string",
"name": "armored_public_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "A GPG key in ASCII-armored format.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -484838,10 +481790,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The public SSH key to add to your GitHub account.
",
@@ -484849,10 +481798,7 @@
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key to add to your GitHub account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -485372,10 +482318,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -485385,10 +482328,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -485398,10 +482338,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -485420,8 +482357,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -486459,10 +483395,7 @@
"description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -486549,8 +483482,6 @@
},
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -486566,10 +483497,7 @@
"https://example.com/webhook"
],
"name": "url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -486578,10 +483506,7 @@
"\"json\""
],
"name": "content_type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -486590,10 +483515,7 @@
"\"********\""
],
"name": "secret",
- "in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "childParamsGroups": []
+ "in": "body"
},
{
"oneOf": [
@@ -486611,8 +483533,7 @@
"name": "insecure_ssl",
"in": "body",
"type": "string or number",
- "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "childParamsGroups": []
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
"
},
{
"type": "string",
@@ -486621,9 +483542,7 @@
],
"name": "token",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
},
{
"type": "string",
@@ -486632,9 +483551,7 @@
],
"name": "digest",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
}
]
}
@@ -486646,15 +483563,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -486662,10 +483573,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -487383,8 +484291,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -487401,10 +484307,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -487414,10 +484317,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -487427,10 +484327,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -487449,8 +484346,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -487459,10 +484355,8 @@
],
"name": "address",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -487471,10 +484365,8 @@
],
"name": "room",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -487486,41 +484378,23 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.4/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be added to the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "add_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "remove_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -487528,10 +484402,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
diff --git a/lib/rest/static/decorated/ghes-3.5.json b/lib/rest/static/decorated/ghes-3.5.json
index 71d565519a..0d27005a6c 100644
--- a/lib/rest/static/decorated/ghes-3.5.json
+++ b/lib/rest/static/decorated/ghes-3.5.json
@@ -996,10 +996,7 @@
],
"name": "repo_cache_size_limit_in_gb",
"in": "body",
- "rawType": "integer",
- "rawDescription": "For repositories in an enterprise, the default size limit for the sum of all caches in a repository, in gigabytes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "For repositories in an enterprise, the maximum value that can be set as the limit for the sum of all caches in a repository, in gigabytes.
",
@@ -1009,10 +1006,7 @@
],
"name": "max_repo_cache_size_limit_in_gb",
"in": "body",
- "rawType": "integer",
- "rawDescription": "For repositories in an enterprise, the maximum value that can be set as the limit for the sum of all caches in a repository, in gigabytes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -1446,10 +1440,7 @@
],
"name": "repo_cache_size_limit_in_gb",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The size limit for the sum of all caches, in gigabytes.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -1599,10 +1590,7 @@
],
"name": "enabled_organizations",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -1614,10 +1602,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -1870,16 +1855,9 @@
{
"description": "List of organization IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -2123,23 +2101,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -2291,10 +2260,7 @@
],
"name": "enabled_repositories",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -2306,10 +2272,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3946,16 +3909,9 @@
{
"description": "List of repository IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4199,23 +4155,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4352,20 +4299,14 @@
],
"name": "default_workflow_permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The default workflow permissions granted to the GITHUB_TOKEN when running workflows.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
",
"name": "can_approve_pull_request_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -4522,10 +4463,7 @@
"description": "Whether GitHub Actions is enabled on the repository.
",
"name": "enabled",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions is enabled on the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -4537,10 +4475,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -4689,10 +4624,7 @@
],
"name": "access_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository. `none` means access is only possible from workflows in this repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4843,23 +4775,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -5287,20 +5210,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -5312,23 +5229,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -7772,15 +7680,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -8335,20 +8237,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -8495,7 +8391,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8626,7 +8522,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8735,7 +8631,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8833,7 +8729,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8855,20 +8751,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-server@3.5/rest/reference/actions#get-an-environment-public-key) endpoint.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -8959,7 +8849,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -9206,10 +9096,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organization.
",
@@ -9220,38 +9107,21 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9259,10 +9129,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -9270,27 +9137,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -9560,10 +9414,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organizations.
",
@@ -9575,10 +9426,7 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organizations.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9586,10 +9434,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -9597,27 +9442,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -10015,16 +9847,9 @@
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -10444,16 +10269,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -10832,10 +10650,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.
",
@@ -10848,38 +10663,21 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -10887,10 +10685,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -10898,27 +10693,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -11206,10 +10988,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.
",
@@ -11221,10 +11000,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -11232,10 +11008,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -11243,27 +11016,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -13915,16 +13675,9 @@
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -14344,16 +14097,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -18187,15 +17933,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -18340,15 +18080,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -22394,15 +22128,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -22547,15 +22275,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -26676,15 +26398,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -26839,15 +26555,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -28844,7 +28554,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -45952,22 +45662,13 @@
{
"type": "array of integers",
"description": "The list of environment ids to approve or reject
",
- "items": {
- "type": "integer",
- "examples": [
- 161171787
- ]
- },
"examples": [
161171787,
161171795
],
"name": "environment_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of environment ids to approve or reject",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -45981,10 +45682,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Whether to approve or reject deployment to the specified environments.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -45994,10 +45692,7 @@
],
"name": "comment",
"in": "body",
- "rawType": "string",
- "rawDescription": "A comment to accompany the deployment review",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -46923,7 +46618,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -52724,10 +52419,7 @@
"description": "The git reference for the workflow. The reference can be a branch or tag name.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The git reference for the workflow. The reference can be a branch or tag name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -52738,10 +52430,7 @@
"maxProperties": 10,
"name": "inputs",
"in": "body",
- "rawType": "object",
- "rawDescription": "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -88655,15 +88344,6 @@
"format": "date-time"
}
},
- {
- "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.
",
@@ -88672,6 +88352,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"bodyParameters": [],
@@ -91004,20 +90693,14 @@
"format": "date-time",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the notification has been read.
",
"type": "boolean",
"name": "read",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the notification has been read.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -93607,10 +93290,7 @@
"type": "boolean",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to block all notifications from a thread.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -96203,10 +95883,7 @@
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: The current timestamp.
",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -103857,20 +103534,14 @@
"description": "Determines if notifications should be received from this repository.
",
"name": "subscribed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications should be received from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository.
",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if all notifications should be blocked from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -111405,34 +111076,19 @@
{
"description": "List of repository names that the token should have access to
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository names that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that the token should have access to
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -111838,8 +111494,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -111855,10 +111509,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111868,10 +111519,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111881,10 +111529,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111894,10 +111539,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111907,10 +111549,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111920,10 +111559,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111933,10 +111569,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111946,10 +111579,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111959,10 +111589,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111972,10 +111599,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111985,10 +111609,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -111998,10 +111619,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112012,10 +111630,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112025,10 +111640,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112038,10 +111650,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112051,10 +111660,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112064,10 +111670,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112077,10 +111680,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112090,10 +111690,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112102,10 +111699,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112115,10 +111709,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112128,10 +111719,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112141,10 +111729,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112153,10 +111738,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112167,10 +111749,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112180,10 +111759,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112193,10 +111769,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112206,10 +111779,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112219,10 +111789,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112232,10 +111799,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -112251,7 +111815,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -121790,10 +121354,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -121859,10 +121420,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -122725,10 +122283,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -123587,10 +123142,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -123659,10 +123211,7 @@
],
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The name of the user or organization to scope the user-to-server access token to. Required unless target_id is specified.
",
@@ -123672,10 +123221,7 @@
],
"name": "target",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the user or organization to scope the user-to-server access token to. **Required** unless `target_id` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The ID of the user or organization to scope the user-to-server access token to. Required unless target is specified.
",
@@ -123685,42 +123231,24 @@
],
"name": "target_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the user or organization to scope the user-to-server access token to. **Required** unless `target` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository names to scope the user-to-server access token to. repositories may not be specified if repository_ids is specified.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository IDs to scope the user-to-server access token to. repository_ids may not be specified if repositories is specified.
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -124126,8 +123654,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -124143,10 +123669,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124156,10 +123679,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124169,10 +123689,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124182,10 +123699,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124195,10 +123709,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124208,10 +123719,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124221,10 +123729,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124234,10 +123739,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124247,10 +123749,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124260,10 +123759,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124273,10 +123769,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124286,10 +123779,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124300,10 +123790,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124313,10 +123800,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124326,10 +123810,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124339,10 +123820,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124352,10 +123830,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124365,10 +123840,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124378,10 +123850,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124390,10 +123859,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124403,10 +123869,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124416,10 +123879,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124429,10 +123889,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124441,10 +123898,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124455,10 +123909,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124468,10 +123919,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124481,10 +123929,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124494,10 +123939,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124507,10 +123949,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -124520,10 +123959,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -125506,10 +124942,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -125519,10 +124952,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -125532,10 +124962,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -125554,8 +124981,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -128522,10 +127948,7 @@
"description": "The new name of the branch.
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the branch.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -131372,10 +130795,7 @@
"description": "The name of the branch which should be updated to match upstream.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch which should be updated to match upstream.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -131477,30 +130897,21 @@
"description": "The name of the base branch that the head will be merged into.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the base branch that the head will be merged into.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The head to merge. This can be a branch name or a commit SHA1.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The head to merge. This can be a branch name or a commit SHA1.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Commit message to use for the merge commit. If omitted, a default message will be used.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -134645,20 +134056,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -134671,11 +134076,6 @@
],
"name": "required_status_checks",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require status checks to pass before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -134688,60 +134088,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -134754,20 +134115,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -134785,20 +134140,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -134809,13 +134158,7 @@
"description": "Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
",
"name": "enforce_admins",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object or null",
@@ -134875,38 +134218,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -134993,38 +134318,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -135033,11 +134340,6 @@
},
"name": "required_pull_request_reviews",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -135088,8 +134390,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"childParamsGroups": [
{
"parentName": "dismissal_restrictions",
@@ -135099,38 +134399,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -135140,28 +134422,19 @@
"type": "boolean",
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners review them.
",
"name": "require_code_owner_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
"description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "object",
@@ -135206,8 +134479,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"childParamsGroups": [
{
"parentName": "bypass_pull_request_allowances",
@@ -135217,38 +134488,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -135264,38 +134517,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -135307,38 +134542,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -135394,11 +134611,6 @@
],
"name": "restrictions",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -135409,41 +134621,23 @@
{
"type": "array of strings",
"description": "The list of user logins with push access
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of team slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of app slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with push access",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -135454,53 +134648,35 @@
"description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true to enforce a linear commit history. Set to false to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false. For more information, see \"Requiring a linear commit history\" in the GitHub Help documentation.
",
"name": "required_linear_history",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean or null",
"description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to true to allow force pushes. Set to false or null to block force pushes. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.\"
",
"name": "allow_force_pushes",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to false to prevent deletion of the protected branch. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.
",
"name": "allow_deletions",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "If set to true, the restrictions branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to true to restrict new branch creation. Default: false.
",
"name": "block_creations",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to false to disable. Default: false.
",
"name": "required_conversation_resolution",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -137617,8 +136793,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137629,38 +136803,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -137671,30 +136827,21 @@
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners have reviewed.
",
"name": "require_code_owner_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -137739,8 +136886,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"isRequired": false,
"childParamsGroups": [
{
@@ -137751,38 +136896,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -139926,60 +139053,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -139992,20 +139080,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -140318,15 +139400,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -140422,15 +139498,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -140521,15 +139591,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -141589,15 +140653,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -142046,15 +141104,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -142503,15 +141555,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -143250,15 +142296,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -143555,15 +142595,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -143860,15 +142894,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -144422,15 +143450,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -144694,15 +143716,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -144966,15 +143982,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -145234,40 +144244,28 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -145280,10 +144278,7 @@
"default": "queued",
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -145291,10 +144286,7 @@
"description": "The time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -145311,10 +144303,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -145322,10 +144311,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -145490,50 +144476,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -145545,40 +144516,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -145642,30 +144601,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -145678,8 +144628,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#output-object) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -145692,10 +144640,7 @@
"description": "The title of the check run.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the check run.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -145703,10 +144648,7 @@
"description": "The summary of the check run. This parameter supports Markdown.
",
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "The summary of the check run. This parameter supports Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -145714,126 +144656,14 @@
"description": "The details of the check run. This parameter supports Markdown.
",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The details of the check run. This parameter supports Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the Checks and Files changed tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"About status checks\". See the annotations object description for details about how to use this parameter.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#annotations-object) description for details about how to use this parameter.",
"isRequired": false,
"childParamsGroups": [
{
@@ -145846,50 +144676,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -145901,40 +144716,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -145943,49 +144746,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#images-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -145998,30 +144760,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -146039,50 +144792,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146094,40 +144832,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -146141,30 +144867,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -146174,53 +144891,8 @@
"type": "array of objects",
"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. See the actions object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -146234,10 +144906,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -146245,10 +144914,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -146256,10 +144922,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -149916,30 +148579,21 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -149947,10 +148601,7 @@
"description": "This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -149962,10 +148613,7 @@
],
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -149982,10 +148630,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -149993,10 +148638,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -150161,50 +148803,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150216,40 +148843,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -150313,30 +148928,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -150348,8 +148954,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#output-object-1) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -150362,10 +148966,7 @@
"description": "Required.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required**.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150373,10 +148974,7 @@
"maxLength": 65535,
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -150384,126 +148982,14 @@
"maxLength": 65535,
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"About status checks\". See the annotations object description for details.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -150516,50 +149002,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150571,40 +149042,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -150613,49 +149072,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -150668,30 +149086,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -150709,50 +149118,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150764,40 +149158,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -150811,30 +149193,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -150844,53 +149217,8 @@
"type": "array of objects",
"description": "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.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -150904,10 +149232,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -150915,10 +149240,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -150926,10 +149248,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -155041,10 +153360,7 @@
"description": "The sha of the head commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The sha of the head commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -161238,40 +159554,8 @@
{
"type": "array of objects",
"description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the auto_trigger_checks object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "integer",
- "description": "The id of the GitHub App.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "setting": {
- "type": "boolean",
- "description": "Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them.
",
- "default": true,
- "name": "setting",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- },
"name": "auto_trigger_checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#auto_trigger_checks-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -161284,10 +159568,7 @@
"description": "The id of the GitHub App.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -161295,10 +159576,7 @@
"default": true,
"name": "setting",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -172700,10 +170978,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -172716,13 +170991,7 @@
],
"name": "dismissed_reason",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -174257,30 +172526,21 @@
"pattern": "^[0-9a-fA-F]+$",
"name": "commit_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit to which the analysis you are uploading relates.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full Git reference, formatted as refs/heads/<branch name>,\nrefs/pull/<number>/merge, or refs/pull/<number>/head.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full Git reference, formatted as `refs/heads/`,\n`refs/pull//merge`, or `refs/pull//head`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. For more information, see \"SARIF support for code scanning.\"
",
"type": "string",
"name": "sarif",
"in": "body",
- "rawType": "string",
- "rawDescription": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/enterprise-server@3.5/code-security/secure-coding/sarif-support-for-code-scanning).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
",
@@ -174291,10 +172551,7 @@
],
"name": "checkout_uri",
"in": "body",
- "rawType": "string",
- "rawDescription": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
@@ -174302,20 +172559,14 @@
"type": "string",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts.
",
"type": "string",
"name": "tool_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -175145,20 +173396,10 @@
{
"type": "string",
"description": "The permission to grant the collaborator. Only valid on organization-owned repositories.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -180981,10 +179222,7 @@
],
"name": "permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -197398,10 +195636,7 @@
"description": "The contents of the comment
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -198317,40 +196552,28 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Relative path of the file to comment on.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Relative path of the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Line index in the diff to comment on.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Line index in the diff to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Deprecated. Use position parameter instead. Line number in the file to comment on.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -201550,36 +199773,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
"description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.
\nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:
\nhttp://ci.example.com/user/repo/build/sha
",
"name": "target_url",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "A short description of the status.
",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "A short description of the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -201587,10 +199795,7 @@
"default": "default",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "A string label to differentiate this status from the status of other systems. This field is case-insensitive.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -202255,20 +200460,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -202280,23 +200479,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "string"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -204740,15 +202930,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -205279,20 +203463,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.5/rest/reference/dependabot#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -205578,30 +203756,21 @@
"description": "A name for the key.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A name for the key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the key.
",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "If true, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.
\nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"Repository permission levels for an organization\" and \"Permission levels for a user account repository.\"
",
"name": "read_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -206705,10 +204874,7 @@
"description": "The ref to deploy. This can be a branch, tag, or SHA.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The ref to deploy. This can be a branch, tag, or SHA.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -206716,10 +204882,7 @@
"default": "deploy",
"name": "task",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -206727,23 +204890,14 @@
"default": true,
"name": "auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.
",
- "items": {
- "type": "string"
- },
"name": "required_contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [status](https://docs.github.com/enterprise-server@3.5/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -206761,8 +204915,7 @@
"in": "body",
"type": "object or string",
"description": "JSON payload with extra information about the deployment.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -206770,10 +204923,7 @@
"default": "production",
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
@@ -206781,13 +204931,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Short description of the deployment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -206795,20 +204939,14 @@
"default": false,
"name": "transient_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specifies if the given environment is one that end-users directly interact with. Default: true when environment is production and false otherwise.
",
"name": "production_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -208353,12 +206491,639 @@
]
}
],
+ "branch-policies": [
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "List deployment branch policies",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "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": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Lists the deployment branch policies for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "Create a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "example-wildcard",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a wildcard name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ },
+ {
+ "key": "example-single-branch",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a single branch name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "main"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Creates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "303",
+ "description": "Response if the same branch name pattern already exists
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found or deployment_branch_policy.custom_branch_policies property for the environment is set to false
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Get a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Gets a deployment branch policy for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Update a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Updates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Delete a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Deletes a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ]
+ }
+ ],
"environments": [
{
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments",
- "title": "Get all environments",
+ "title": "List environments",
"category": "deployments",
"subcategory": "environments",
"parameters": [
@@ -209081,7 +207846,7 @@
}
],
"previews": [],
- "descriptionHTML": "Get all environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Lists the environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -209119,7 +207884,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -209788,7 +208553,7 @@
}
],
"previews": [],
- "descriptionHTML": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Note: To get information about name patterns that branches must match in order to deploy to this environment, see \"Get a deployment branch policy.\"
\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the repo scope. GitHub\nApps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -209826,7 +208591,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -209841,54 +208606,13 @@
],
"name": "wait_timer",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects or null",
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of reviewer.
",
- "enum": [
- "User",
- "Team"
- ],
- "examples": [
- "User"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
- },
- "id": {
- "type": "integer",
- "description": "The id of the user or team who can review the deployment
",
- "examples": [
- 4532992
- ],
- "name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
- }
- }
- },
"name": "reviewers",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
"isRequired": false,
"childParamsGroups": [
{
@@ -209907,10 +208631,7 @@
"User"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
@@ -209919,10 +208640,7 @@
4532992
],
"name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -209959,11 +208677,6 @@
],
"name": "deployment_branch_policy",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -209976,20 +208689,14 @@
"description": "Whether only branches with branch protection rules can deploy to this environment. If protected_branches is true, custom_branch_policies must be false; if protected_branches is false, custom_branch_policies must be true.
",
"name": "protected_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "Whether only branches that match the specified name patterns can deploy to this environment. If custom_branch_policies is true, protected_branches must be false; if custom_branch_policies is false, protected_branches must be true.
",
"name": "custom_branch_policies",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -210004,6 +208711,23 @@
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
@@ -210659,7 +209383,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: Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"Environments.\"
\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.
",
+ "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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -210701,7 +209425,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -211544,10 +210268,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -211555,10 +210276,7 @@
"default": "",
"name": "target_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -211566,10 +210284,7 @@
"default": "",
"name": "log_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -211577,10 +210292,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the status. The maximum description length is 140 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -211592,10 +210304,7 @@
],
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -211603,20 +210312,14 @@
"default": "",
"name": "environment_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the URL for accessing your environment. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Adds a new inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. An inactive status is only added to deployments that had a success state. Default: true
",
"name": "auto_inactive",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -215702,10 +214405,7 @@
],
"name": "announcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.5/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -215716,13 +214416,7 @@
],
"name": "expires_at",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -216539,10 +215233,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -216594,8 +215285,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": true,
"childParamsGroups": [
{
@@ -216608,40 +215297,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -216650,15 +215327,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -216666,10 +215337,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -216968,8 +215636,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": false,
"childParamsGroups": [
{
@@ -216982,40 +215648,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -217024,15 +215678,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -217040,10 +215688,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -217265,10 +215910,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -217447,10 +216089,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -218223,10 +216862,7 @@
"description": "A JSON string with the attributes enabled and when.
\nThe possible values for enabled are true and false. When it's false, the attribute when is ignored and the maintenance mode is turned off. when defines the time period when the maintenance was enabled.
\nThe possible values for when are now or any date parseable by mojombo/chronic.
",
"name": "maintenance",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the attributes `enabled` and `when`.\n\nThe possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -218982,10 +217618,7 @@
"description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.5/rest/reference/enterprise-admin#get-settings).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -219090,10 +217723,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -219166,10 +217796,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -219242,30 +217869,21 @@
"description": "The content of your .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your _.ghl_ license file.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "You must provide a password only if you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.
",
"name": "password",
"in": "body",
- "rawType": "string",
- "rawDescription": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An optional JSON string containing the installation settings. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "An optional JSON string containing the installation settings. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.5/rest/reference/enterprise-admin#get-settings).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -219306,10 +217924,7 @@
"description": "The content of your new .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your new _.ghl_ license file.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -219579,20 +218194,14 @@
"type": "string",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether repositories can override enforcement.
",
"type": "boolean",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories can override enforcement.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -219754,30 +218363,21 @@
"description": "The organization's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The login of the user who will manage this organization.
",
"name": "admin",
"in": "body",
- "rawType": "string",
- "rawDescription": "The login of the user who will manage this organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The organization's display name.
",
"name": "profile_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's display name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -219947,10 +218547,7 @@
"description": "The organization's new name.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's new name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -220185,20 +218782,14 @@
"description": "The new pre-receive environment's name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new pre-receive environment's name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -220436,20 +219027,14 @@
"description": "This pre-receive environment's new name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "This pre-receive environment's new name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -220975,20 +219560,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -220997,10 +219576,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -221009,30 +219585,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The state of enforcement for this hook. default: disabled
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook. default: `disabled`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level. default: false
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -221378,20 +219945,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -221400,10 +219961,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -221412,30 +219970,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The state of enforcement for this hook.
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level.
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -221905,10 +220454,7 @@
],
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -223171,20 +221717,14 @@
"description": "The user's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required for built-in authentication. The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"About authentication for your enterprise.\"
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required for built-in authentication.** The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.5/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -223421,10 +221961,7 @@
"description": "The user's new username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's new username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -223540,15 +222077,9 @@
{
"type": "array of strings",
"description": "A list of scopes.
",
- "items": {
- "type": "string"
- },
"name": "scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of [scopes](https://docs.github.com/enterprise-server@3.5/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -225300,10 +223831,7 @@
"description": "The reason the user is being suspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Suspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being suspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.5/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -225357,10 +223885,7 @@
"description": "The reason the user is being unsuspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Unsuspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.5/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -225974,10 +224499,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names and content for the files that make up the gist
",
@@ -226012,8 +224534,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names and content for the files that make up the gist",
"isRequired": true,
"childParamsGroups": [
{
@@ -226042,10 +224562,7 @@
"type": "string",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "Content of the file",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -226077,8 +224594,7 @@
"in": "body",
"type": "boolean or string",
"description": "Flag indicating whether the gist is public
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -229732,10 +228248,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names of files to be updated
",
@@ -229797,8 +228310,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names of files to be updated",
"isRequired": false,
"childParamsGroups": [
{
@@ -229825,22 +228336,13 @@
"description": "The new content of the file
",
"type": "string",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The new content of the file",
- "childParamsGroups": []
+ "in": "body"
},
{
"description": "The new filename for the file
",
"type": "string or null",
"name": "filename",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new filename for the file",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -235704,10 +234206,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -236404,10 +234903,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -236823,10 +235319,7 @@
"description": "The new blob's content.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blob's content.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -236834,10 +235327,7 @@
"default": "utf-8",
"name": "encoding",
"in": "body",
- "rawType": "string",
- "rawDescription": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -237071,33 +235561,21 @@
"description": "The commit message
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the tree object this commit points to
",
"name": "tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the tree object this commit points to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
",
- "items": {
- "type": "string"
- },
"name": "parents",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -237141,8 +235619,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -237155,20 +235631,14 @@
"description": "The name of the author (or committer) of the commit
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -237176,10 +235646,7 @@
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -237220,8 +235687,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -237233,29 +235698,20 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"format": "date-time",
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -237266,10 +235722,7 @@
"description": "The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits.
",
"name": "signature",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -238141,20 +236594,14 @@
"description": "The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA1 value for this reference.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value for this reference.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -238163,10 +236610,8 @@
],
"name": "key",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -238293,9 +236738,10 @@
},
{
"name": "ref",
- "description": "ref parameter
",
+ "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.
",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -238308,10 +236754,7 @@
"description": "The SHA1 value to set this reference to
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value to set this reference to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -238319,10 +236762,7 @@
"default": false,
"name": "force",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -238527,30 +236967,21 @@
"description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").
",
"name": "tag",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The tag message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the git object this is tagging.
",
"name": "object",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the git object this is tagging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -238562,10 +236993,7 @@
],
"name": "type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -238609,8 +237037,6 @@
],
"name": "tagger",
"in": "body",
- "rawType": "object",
- "rawDescription": "An object with information about the individual creating the tag.",
"isRequired": false,
"childParamsGroups": [
{
@@ -238623,20 +237049,14 @@
"description": "The name of the author of the tag
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author of the tag
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -238644,10 +237064,7 @@
"description": "When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -239085,75 +237502,8 @@
{
"type": "array of objects",
"description": "Objects (of path, mode, type, and sha) specifying a tree structure.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file referenced in the tree.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
- },
- "mode": {
- "type": "string",
- "description": "The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.
",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ],
- "name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
- },
- "type": {
- "type": "string",
- "description": "Either blob, tree, or commit.
",
- "enum": [
- "blob",
- "tree",
- "commit"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
- },
- "sha": {
- "type": "string or null",
- "description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- },
- "content": {
- "type": "string",
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- }
- }
- },
"name": "tree",
"in": "body",
- "rawType": "array",
- "rawDescription": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
"isRequired": true,
"childParamsGroups": [
{
@@ -239165,10 +237515,7 @@
"type": "string",
"description": "The file referenced in the tree.
",
"name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -239181,10 +237528,7 @@
"120000"
],
"name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -239195,31 +237539,19 @@
"commit"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string or null",
"description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -239230,10 +237562,7 @@
"description": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree and entries defined in the tree parameter. Entries defined in the tree parameter will overwrite items from base_tree with the same path. If you're creating new changes on a branch, then normally you'd set base_tree to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the tree parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the tree parameter will be listed as deleted by the new commit.
",
"name": "base_tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -239389,7 +237718,7 @@
}
],
"previews": [],
- "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
",
+ "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
\nReturns an error if you try to delete a file that does not exist.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -250142,32 +248471,21 @@
"name": "title",
"in": "body",
"type": "string or integer",
- "rawDescription": "The title of the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -250182,67 +248500,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -256745,40 +255018,21 @@
"type": "string or integer or null",
"name": "title",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
- "rawDescription": "The title of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -256789,10 +255043,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the issue. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -256807,67 +255058,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with or null to remove current. NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. Pass one or more Labels to replace the set of Labels on this Issue. Send an empty array ([]) to clear all Labels from the Issue. NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -260138,10 +258344,7 @@
],
"name": "lock_reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -264044,15 +262247,9 @@
{
"type": "array of strings",
"description": "Usernames of people to assign this issue to. NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -267285,15 +265482,9 @@
{
"type": "array of strings",
"description": "Usernames of assignees to remove from an issue. NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -272062,10 +270253,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -273657,10 +271845,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -294421,14 +292606,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also replace all of the labels for an issue. For more information, see \"Set labels for an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.5/rest/reference/issues#set-labels-for-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -294605,14 +292784,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also add labels to the existing labels for an issue. For more information, see \"Add labels to an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see \"[Add labels to an issue](https://docs.github.com/enterprise-server@3.5/rest/reference/issues#add-labels-to-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -295181,30 +293354,21 @@
"description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -295511,30 +293675,21 @@
"description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -296390,10 +294545,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -296405,20 +294557,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -296426,10 +294572,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -297275,10 +295418,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -297290,20 +295430,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -297311,10 +295445,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -314190,10 +312321,7 @@
"type": "string",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Markdown text to render in HTML.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The rendering mode. Can be either markdown or gfm.
",
@@ -314208,20 +312336,14 @@
],
"name": "mode",
"in": "body",
- "rawType": "string",
- "rawDescription": "The rendering mode. Can be either `markdown` or `gfm`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository.
",
"type": "string",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -317405,15 +315527,9 @@
{
"type": "array of strings",
"description": "A list of arrays indicating which repositories should be migrated.
",
- "items": {
- "type": "string"
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of arrays indicating which repositories should be migrated.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -317424,10 +315540,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -317435,10 +315548,7 @@
"default": false,
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -317446,10 +315556,7 @@
"default": false,
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -317460,10 +315567,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -317474,10 +315578,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether releases should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -317488,10 +315589,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded. from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -317502,26 +315600,14 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: \"repositories\".
",
- "items": {
- "type": "string",
- "enum": [
- "repositories"
- ]
- },
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\"repositories\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -323139,10 +321225,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Lock the repositories being migrated at the start of the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether metadata should be excluded and only git source should be included for the migration.
",
@@ -323153,10 +321236,7 @@
],
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether the repository git data should be excluded from the migration.
",
@@ -323167,10 +321247,7 @@
],
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include attachments in the migration
",
@@ -323181,10 +321258,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include attachments in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include releases in the migration
",
@@ -323195,10 +321269,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include releases in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether projects owned by the organization or users should be excluded.
",
@@ -323209,10 +321280,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -323223,50 +321291,25 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Exclude attributes from the API response to improve performance
",
"readOnly": false,
"type": "array of strings",
- "items": {
- "description": "Allowed values that can be passed to the exclude param.",
- "enum": [
- "repositories"
- ],
- "type": "string",
- "examples": [
- "repositories"
- ]
- },
"examples": [
"repositories"
],
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude attributes from the API response to improve performance",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
- "items": {
- "description": "Repository path, owner and name",
- "type": "string",
- "examples": [
- "acme/widgets"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
"description": "",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -329036,22 +327079,13 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -329061,20 +327095,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client key for which to create the token.
",
@@ -329082,10 +327110,7 @@
"type": "string",
"name": "client_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client key for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client secret for which to create the token.
",
@@ -329093,20 +327118,14 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -329964,30 +327983,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -329997,30 +328004,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -331684,30 +329682,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -331717,20 +329703,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -334196,48 +332176,27 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to add to this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "add_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to add to this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to remove from this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "remove_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to remove from this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -334247,30 +332206,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -335803,90 +333753,63 @@
"description": "Billing email address. This address is not publicized.
",
"name": "billing_email",
"in": "body",
- "rawType": "string",
- "rawDescription": "Billing email address. This address is not publicized.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The company name.
",
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The company name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The publicly visible email address.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The Twitter username of the company.
",
"name": "twitter_username",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Twitter username of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The location.
",
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The location.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The shorthand name of the company.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The shorthand name of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the company.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether an organization can use organization projects.
",
"name": "has_organization_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether an organization can use organization projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether repositories that belong to the organization can use repository projects.
",
"name": "has_repository_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories that belong to the organization can use repository projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -335900,10 +333823,7 @@
"default": "read",
"name": "default_repository_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "Default permission level members have for organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -335911,40 +333831,28 @@
"default": true,
"name": "members_can_create_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_internal_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -335956,10 +333864,7 @@
],
"name": "members_allowed_repository_creation_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies which types of repositories non-admin organization members can create. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -335967,10 +333872,7 @@
"default": true,
"name": "members_can_create_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -335978,10 +333880,7 @@
"default": false,
"name": "members_can_fork_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can fork private organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -335990,10 +333889,8 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -339171,10 +337068,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -341020,10 +338914,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -341739,10 +339630,7 @@
"default": false,
"name": "async",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -342103,10 +339991,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -342202,8 +340087,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.5/rest/reference/orgs#create-hook-config-params).",
"isRequired": true,
"childParamsGroups": [
{
@@ -342220,10 +340103,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -342233,10 +340113,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342246,10 +340123,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -342268,8 +340142,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342278,10 +340151,8 @@
],
"name": "username",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342290,10 +340161,8 @@
],
"name": "password",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -342305,15 +340174,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -342321,10 +340184,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -342799,8 +340659,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.5/rest/reference/orgs#update-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -342817,10 +340675,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -342830,10 +340685,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342843,10 +340695,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -342865,8 +340714,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -342878,15 +340726,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -342894,10 +340736,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -342906,10 +340745,8 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -343288,10 +341125,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343301,10 +341135,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343314,10 +341145,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -343336,8 +341164,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -344365,10 +342192,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process in which the Page will be built. Possible values are `\"legacy\"` and `\"workflow\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -344405,8 +342229,6 @@
],
"name": "source",
"in": "body",
- "rawType": "object",
- "rawDescription": "The source branch and directory used to publish your Pages site.",
"isRequired": false,
"childParamsGroups": [
{
@@ -344419,10 +342241,7 @@
"description": "The repository branch used to publish your site's source files.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository branch used to publish your site's source files.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -344434,10 +342253,7 @@
"default": "/",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -344726,33 +342542,21 @@
"description": "Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see \"Using a custom domain with GitHub Pages.\"
",
"name": "cname",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specify whether HTTPS should be enforced for the repository.
",
"name": "https_enforced",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specify whether HTTPS should be enforced for the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Configures access controls for the GitHub Pages site. If public is set to true, the site is accessible to anyone on the internet. If set to false, the site will only be accessible to users who have at least read access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal visibility. This feature is only available to repositories in an organization on an Enterprise plan.
",
"name": "public",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility. This feature is only available to repositories in an organization on an Enterprise plan.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -344763,10 +342567,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"anyOf": [
@@ -344806,8 +342607,7 @@
"in": "body",
"type": "",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -346392,20 +344192,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -347189,10 +344983,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Body of the project
",
@@ -347202,13 +344993,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "State of the project; either 'open' or 'closed'
",
@@ -347218,10 +345003,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the project; either 'open' or 'closed'",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The baseline permission that all organization members have on this project
",
@@ -347234,20 +345016,14 @@
],
"name": "organization_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The baseline permission that all organization members have on this project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not this project can be seen by everyone.
",
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not this project can be seen by everyone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -348163,20 +345939,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -348571,10 +346341,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Body of the project
",
@@ -348584,13 +346351,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -349757,13 +347518,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not the card is archived
",
@@ -349773,10 +347528,7 @@
],
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not the card is archived",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -350214,10 +347966,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the column the card should be moved to
",
@@ -350227,10 +347976,7 @@
],
"name": "column_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the column the card should be moved to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -350709,13 +348455,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the content associated with the card
",
@@ -350725,10 +348465,7 @@
],
"name": "content_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The piece of content associated with the card
",
@@ -350738,10 +348475,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The piece of content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -351419,10 +349153,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -352005,10 +349736,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -352221,10 +349949,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -352470,10 +350195,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -358204,75 +355926,55 @@
"bodyParameters": [
{
"type": "string",
- "description": "The title of the new pull request.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the new pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests\" in the GitHub Help documentation to learn more.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
",
"examples": [
1
],
"name": "issue",
"in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -362039,7 +359741,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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nYou can create a new pull request.
\nThis 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.
",
+ "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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis 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.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -365912,20 +363614,14 @@
"description": "The title of the pull request.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -365936,30 +363632,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of this Pull Request. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -370906,30 +368593,21 @@
"description": "Title for the automatic commit message.
",
"name": "commit_title",
"in": "body",
- "rawType": "string",
- "rawDescription": "Title for the automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Extra detail to append to automatic commit message.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Extra detail to append to automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "SHA that pull request head must match to allow merge.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "SHA that pull request head must match to allow merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -370941,10 +368619,7 @@
],
"name": "merge_method",
"in": "body",
- "rawType": "string",
- "rawDescription": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -371065,10 +368740,7 @@
"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.
",
"name": "expected_head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.5/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -372460,10 +370132,7 @@
"description": "The text of the reply to the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the reply to the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -373838,30 +371507,21 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The relative path to the file that necessitates a comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -373872,10 +371532,7 @@
},
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -373886,30 +371543,21 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
- "rawDescription": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "Required when using multi-line comments unless using in_reply_to. The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request\" in the GitHub Help documentation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -373921,10 +371569,7 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -373934,10 +371579,7 @@
],
"name": "in_reply_to",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -374589,10 +372231,7 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -375190,7 +372829,7 @@
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "List requested reviewers for a pull request",
+ "title": "Get all requested reviewers for a pull request",
"category": "pulls",
"subcategory": "review-requests",
"parameters": [
@@ -375220,24 +372859,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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": [],
@@ -375680,7 +373301,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -375728,28 +373349,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "An array of team slugs that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -381297,28 +378906,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be removed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of team slugs that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be removed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -387247,24 +384844,18 @@
"description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit in the pull request when you do not specify a value.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
- "description": "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.
",
+ "description": "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.
",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -387272,105 +384863,13 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.5/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The relative path to the file that necessitates a review comment.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "position": {
- "type": "integer",
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
- "name": "position",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "body": {
- "type": "string",
- "description": "Text of the review comment.
",
- "name": "body",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "line": {
- "type": "integer",
- "examples": [
- 28
- ],
- "name": "line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "side": {
- "type": "string",
- "examples": [
- "RIGHT"
- ],
- "name": "side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "examples": [
- 26
- ],
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_side": {
- "type": "string",
- "examples": [
- "LEFT"
- ],
- "name": "start_side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "body"
- ]
- },
"name": "comments",
"in": "body",
- "rawType": "array",
- "rawDescription": "Use the following table to specify the location, destination, and contents of the draft review comment.",
"isRequired": false,
"childParamsGroups": [
{
@@ -387383,30 +384882,21 @@
"description": "The relative path to the file that necessitates a review comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -387415,10 +384905,8 @@
],
"name": "line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -387427,10 +384915,8 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -387439,10 +384925,8 @@
],
"name": "start_line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -387451,10 +384935,8 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -387827,7 +385309,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.
\nPull request reviews created in the PENDING state do not include the submitted_at property in the response.
\nNote: 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 v3 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.
\nThe 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.
",
+ "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.
\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.\"
\nNote: 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 v3 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.
\nThe 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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -388306,10 +385788,7 @@
"description": "The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -389782,10 +387261,7 @@
"description": "The message for the pull request review dismissal
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The message for the pull request review dismissal",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -389797,10 +387273,8 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -390229,10 +387703,7 @@
"description": "The body text of the pull request review
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -390244,10 +387715,7 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -390608,8 +388076,8 @@
}
}
],
- "descriptionHTML": "",
"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.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -391376,10 +388844,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -392419,10 +389884,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -393454,10 +390916,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the commit comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -394493,10 +391952,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the issue comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -395536,10 +392992,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -396575,10 +394028,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the pull request review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -397610,10 +395060,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the release.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -398645,10 +396092,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -399313,10 +396757,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.5/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -400366,40 +397807,28 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -400407,10 +397836,7 @@
"default": false,
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -400418,10 +397844,7 @@
"default": false,
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -400429,10 +397852,7 @@
"default": false,
"name": "generate_release_notes",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -401161,40 +398581,28 @@
"description": "The tag name for the release. This can be an existing tag or a new one.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag name for the release. This can be an existing tag or a new one.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.
",
"name": "previous_tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.
",
"name": "configuration_file_path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -403454,60 +400862,42 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true makes the release a draft, and false publishes the release.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` makes the release a draft, and `false` publishes the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true to identify the release as a prerelease, false to identify the release as a full release.
",
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -404658,20 +402048,14 @@
"description": "The file name of the asset.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The file name of the asset.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An alternate short description of the asset. Used in place of the filename.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "An alternate short description of the asset. Used in place of the filename.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -404680,10 +402064,8 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -408154,30 +405536,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408185,10 +405558,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -408200,10 +405570,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408211,10 +405578,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408222,10 +405586,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408233,10 +405594,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408244,20 +405602,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408265,30 +405617,21 @@
"default": false,
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Pass `true` to create an initial commit with empty README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
",
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
",
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408296,10 +405639,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408307,10 +405647,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408318,10 +405655,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408329,10 +405663,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408340,10 +405671,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -408351,10 +405679,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -415749,30 +413074,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -415780,10 +413096,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -415795,10 +413108,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object or null",
@@ -415832,10 +413142,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -415869,10 +413176,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -415906,10 +413210,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -415918,11 +413219,6 @@
},
"name": "security_and_analysis",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.5/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.",
"isRequired": false,
"childParamsGroups": [
{
@@ -415946,8 +413242,6 @@
},
"name": "advanced_security",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see \"[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security).\"",
"childParamsGroups": [
{
"parentName": "advanced_security",
@@ -415958,10 +413252,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -415983,8 +413274,6 @@
},
"name": "secret_scanning",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning for this repository. For more information, see \"[About secret scanning](/code-security/secret-security/about-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning",
@@ -415995,10 +413284,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -416020,8 +413306,6 @@
},
"name": "secret_scanning_push_protection",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \"[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning_push_protection",
@@ -416032,10 +413316,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -416052,10 +413333,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -416068,10 +413346,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -416084,10 +413359,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -416099,10 +413371,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416110,10 +413379,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416121,10 +413387,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416132,20 +413395,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Updates the default branch for this repository.
",
"name": "default_branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "Updates the default branch for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416153,10 +413410,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416164,10 +413418,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416175,10 +413426,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416186,10 +413434,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416197,10 +413442,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416208,10 +413450,7 @@
"default": false,
"name": "allow_update_branch",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416219,10 +413458,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416230,10 +413466,7 @@
"default": false,
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -416241,10 +413474,7 @@
"default": false,
"name": "allow_forking",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow private forks, or `false` to prevent private forks.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -422527,10 +419757,7 @@
"maxLength": 100,
"name": "event_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "A custom webhook event name. Must be 100 characters or fewer.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -422539,10 +419766,7 @@
"maxProperties": 10,
"name": "client_payload",
"in": "body",
- "rawType": "object",
- "rawDescription": "JSON payload with extra information about the webhook event that your action or workflow may use.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -423370,15 +420594,9 @@
{
"type": "array of strings",
"description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names cannot contain uppercase letters.
",
- "items": {
- "type": "string"
- },
"name": "names",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -423483,23 +420701,14 @@
"description": "The username or organization name the repository will be transferred to.
",
"name": "new_owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The username or organization name the repository will be transferred to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
",
- "items": {
- "type": "integer"
- },
"name": "team_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -425914,30 +423123,21 @@
"description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
",
"name": "owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the new repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the new repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the new repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the new repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -425945,10 +423145,7 @@
"default": false,
"name": "include_all_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -425956,10 +423153,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to create a new private repository or `false` to create a new public one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -431427,30 +428621,21 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A short description of the repository.
",
"type": "string",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL with more information about the repository.
",
"type": "string",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is private.
",
@@ -431458,10 +428643,7 @@
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether issues are enabled.
",
@@ -431472,10 +428654,7 @@
],
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether issues are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether projects are enabled.
",
@@ -431486,10 +428665,7 @@
],
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether projects are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the wiki is enabled.
",
@@ -431500,20 +428676,14 @@
],
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the wiki is enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"type": "integer",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is initialized with a minimal README.
",
@@ -431521,10 +428691,7 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is initialized with a minimal README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The desired language or platform to apply to the .gitignore.
",
@@ -431534,10 +428701,7 @@
],
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The desired language or platform to apply to the .gitignore.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The license keyword of the open source license for this repository.
",
@@ -431547,10 +428711,7 @@
],
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The license keyword of the open source license for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow squash merges for pull requests.
",
@@ -431561,10 +428722,7 @@
],
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow squash merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow merge commits for pull requests.
",
@@ -431575,10 +428733,7 @@
],
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow merge commits for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow rebase merges for pull requests.
",
@@ -431589,10 +428744,7 @@
],
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow rebase merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow Auto-merge to be used on pull requests.
",
@@ -431603,10 +428755,7 @@
],
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow Auto-merge to be used on pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to delete head branches when pull requests are merged
",
@@ -431617,10 +428766,7 @@
],
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to delete head branches when pull requests are merged",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether downloads are enabled.
",
@@ -431631,10 +428777,7 @@
],
"name": "has_downloads",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether downloads are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether this repository acts as a template that can be used to generate new repositories.
",
@@ -431645,10 +428788,7 @@
],
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether this repository acts as a template that can be used to generate new repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -435675,20 +432815,14 @@
"description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
",
"name": "key_prefix",
"in": "body",
- "rawType": "string",
- "rawDescription": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL must contain <num> for the reference number.
",
"name": "url_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL must contain `` for the reference number.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -437759,40 +434893,28 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The new file content, using Base64 encoding.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new file content, using Base64 encoding.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required if you are updating a file. The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -437837,8 +434959,6 @@
],
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "The person that committed the file. Default: the authenticated user.",
"isRequired": false,
"childParamsGroups": [
{
@@ -437851,20 +434971,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -437873,10 +434987,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -437925,8 +435037,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -437939,20 +435049,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -437961,10 +435065,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -438517,30 +435619,21 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The blob SHA of the file being replaced.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -438567,8 +435660,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the committer.",
"isRequired": false,
"childParamsGroups": [
{
@@ -438580,19 +435671,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -438623,8 +435708,6 @@
},
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the author.",
"isRequired": false,
"childParamsGroups": [
{
@@ -438636,19 +435719,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -441807,10 +438884,7 @@
"description": "Optional parameter to specify the organization name if forking into an organization.
",
"name": "organization",
"in": "body",
- "rawType": "string",
- "rawDescription": "Optional parameter to specify the organization name if forking into an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -447872,10 +444946,7 @@
"description": "An optional glob pattern to match against when enforcing tag protection.
",
"name": "pattern",
"in": "body",
- "rawType": "string",
- "rawDescription": "An optional glob pattern to match against when enforcing tag protection.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -461136,10 +458207,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -461153,13 +458221,7 @@
],
"name": "resolution",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -462032,46 +459094,28 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "List GitHub IDs for organization members who will become team maintainers.
",
- "items": {
- "type": "string"
- },
"name": "maintainers",
"in": "body",
- "rawType": "array",
- "rawDescription": "List GitHub IDs for organization members who will become team maintainers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
",
- "items": {
- "type": "string"
- },
"name": "repo_names",
"in": "body",
- "rawType": "array",
- "rawDescription": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -462082,10 +459126,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -462097,30 +459138,21 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "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 \"Update LDAP mapping for a team\" endpoint to change the LDAP DN. For more information, see \"Using LDAP.\"
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.5/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.5/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -463580,20 +460612,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -463604,10 +460630,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -463620,23 +460643,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -465167,10 +462181,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -470216,20 +467227,10 @@
{
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -471380,20 +468381,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -471404,10 +468399,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -471420,23 +468412,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -473637,10 +470620,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -478670,10 +475650,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -480321,10 +477298,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -481203,10 +478177,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -482160,10 +479131,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -483022,10 +479990,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -484023,20 +480988,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -484044,10 +481003,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -484995,20 +481951,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -486020,20 +482970,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -486041,10 +482985,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -486972,20 +483913,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -487912,10 +484847,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -488662,10 +485594,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -490129,10 +487058,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The publicly visible email address of the user.
",
@@ -490142,10 +487068,7 @@
],
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new blog URL of the user.
",
@@ -490155,10 +487078,7 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blog URL of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new Twitter username of the user.
",
@@ -490168,13 +487088,7 @@
],
"name": "twitter_username",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new Twitter username of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new company of the user.
",
@@ -490184,10 +487098,7 @@
],
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new company of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new location of the user.
",
@@ -490197,30 +487108,21 @@
],
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new location of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new hiring availability of the user.
",
"type": "boolean",
"name": "hireable",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "The new hiring availability of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new short biography of the user.
",
"type": "string",
"name": "bio",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new short biography of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -492447,20 +489349,10 @@
{
"description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. Note: Alternatively, you can pass a single email address or an array of emails addresses directly, but we recommend that you pass an object using the emails key.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"examples": [],
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -492591,19 +489483,9 @@
{
"description": "Email addresses associated with the GitHub user account.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Email addresses associated with the GitHub user account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -494319,10 +491201,7 @@
"type": "string",
"name": "armored_public_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "A GPG key in ASCII-armored format.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -495344,10 +492223,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The public SSH key to add to your GitHub account.
",
@@ -495355,10 +492231,7 @@
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key to add to your GitHub account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -495878,10 +492751,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -495891,10 +492761,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -495904,10 +492771,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -495926,8 +492790,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -496965,10 +493828,7 @@
"description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -497055,8 +493915,6 @@
},
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.5/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -497072,10 +493930,7 @@
"https://example.com/webhook"
],
"name": "url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -497084,10 +493939,7 @@
"\"json\""
],
"name": "content_type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -497096,10 +493948,7 @@
"\"********\""
],
"name": "secret",
- "in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "childParamsGroups": []
+ "in": "body"
},
{
"oneOf": [
@@ -497117,8 +493966,7 @@
"name": "insecure_ssl",
"in": "body",
"type": "string or number",
- "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "childParamsGroups": []
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
"
},
{
"type": "string",
@@ -497127,9 +493975,7 @@
],
"name": "token",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
},
{
"type": "string",
@@ -497138,9 +493984,7 @@
],
"name": "digest",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
}
]
}
@@ -497152,15 +493996,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -497168,10 +494006,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -497889,8 +494724,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.5/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -497907,10 +494740,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -497920,10 +494750,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -497933,10 +494760,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -497955,8 +494779,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -497965,10 +494788,8 @@
],
"name": "address",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -497977,10 +494798,8 @@
],
"name": "room",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -497992,41 +494811,23 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.5/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be added to the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "add_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "remove_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -498034,10 +494835,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
diff --git a/lib/rest/static/decorated/ghes-3.6.json b/lib/rest/static/decorated/ghes-3.6.json
index 5bd920ec44..399b0feb31 100644
--- a/lib/rest/static/decorated/ghes-3.6.json
+++ b/lib/rest/static/decorated/ghes-3.6.json
@@ -1031,10 +1031,7 @@
],
"name": "repo_cache_size_limit_in_gb",
"in": "body",
- "rawType": "integer",
- "rawDescription": "For repositories in an enterprise, the default size limit for the sum of all caches in a repository, in gigabytes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "For repositories in an enterprise, the maximum value that can be set as the limit for the sum of all caches in a repository, in gigabytes.
",
@@ -1044,10 +1041,7 @@
],
"name": "max_repo_cache_size_limit_in_gb",
"in": "body",
- "rawType": "integer",
- "rawDescription": "For repositories in an enterprise, the maximum value that can be set as the limit for the sum of all caches in a repository, in gigabytes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -1481,10 +1475,7 @@
],
"name": "repo_cache_size_limit_in_gb",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The size limit for the sum of all caches, in gigabytes.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -1634,10 +1625,7 @@
],
"name": "enabled_organizations",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -1649,10 +1637,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -1905,16 +1890,9 @@
{
"description": "List of organization IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -2158,23 +2136,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -2311,20 +2280,14 @@
],
"name": "default_workflow_permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The default workflow permissions granted to the GITHUB_TOKEN when running workflows.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
",
"name": "can_approve_pull_request_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -2472,10 +2435,7 @@
],
"name": "enabled_repositories",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -2487,10 +2447,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -4135,16 +4092,9 @@
{
"description": "List of repository IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4388,23 +4338,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -4541,20 +4482,14 @@
],
"name": "default_workflow_permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The default workflow permissions granted to the GITHUB_TOKEN when running workflows.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
",
"name": "can_approve_pull_request_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -4711,10 +4646,7 @@
"description": "Whether GitHub Actions is enabled on the repository.
",
"name": "enabled",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions is enabled on the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -4726,10 +4658,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -4878,10 +4807,7 @@
],
"name": "access_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository. `none` means access is only possible from workflows in this repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -5032,23 +4958,14 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -5205,20 +5122,14 @@
],
"name": "default_workflow_permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The default workflow permissions granted to the GITHUB_TOKEN when running workflows.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
",
"name": "can_approve_pull_request_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -5646,20 +5557,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -5671,23 +5576,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -8139,15 +8035,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -8702,20 +8592,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -8862,7 +8746,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -8993,7 +8877,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -9102,7 +8986,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -9200,7 +9084,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -9222,20 +9106,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-server@3.6/rest/reference/actions#get-an-environment-public-key) endpoint.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -9326,7 +9204,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -9582,10 +9460,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organization.
",
@@ -9596,38 +9471,21 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9635,10 +9493,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -9646,27 +9501,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -9936,10 +9778,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organizations.
",
@@ -9951,10 +9790,7 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organizations.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9962,10 +9798,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -9973,27 +9806,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -10391,16 +10211,9 @@
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -10820,16 +10633,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -11217,10 +11023,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.
",
@@ -11233,38 +11036,21 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -11272,10 +11058,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -11283,27 +11066,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -11591,10 +11361,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.
",
@@ -11606,10 +11373,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -11617,10 +11381,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array.
",
@@ -11628,27 +11389,14 @@
"default": false,
"name": "restricted_to_workflows",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "description": "Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.",
- "examples": [
- "octo-org/octo-repo/.github/workflows/deploy.yaml@main"
- ]
- },
"name": "selected_workflows",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -14308,16 +14056,9 @@
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -14737,16 +14478,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -18596,15 +18330,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -18749,15 +18477,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -22819,15 +22541,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -22972,15 +22688,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -27117,15 +26827,9 @@
"minItems": 1,
"maxItems": 100,
"description": "The names of the custom labels to add to the runner.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to add to the runner.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -27280,15 +26984,9 @@
"minItems": 0,
"maxItems": 100,
"description": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.
",
- "items": {
- "type": "string"
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -29194,10 +28892,7 @@
"description": "Whether to enable debug logging for the re-run.
",
"name": "enable_debug_logging",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to enable debug logging for the re-run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -29297,7 +28992,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -46586,22 +46281,13 @@
{
"type": "array of integers",
"description": "The list of environment ids to approve or reject
",
- "items": {
- "type": "integer",
- "examples": [
- 161171787
- ]
- },
"examples": [
161171787,
161171795
],
"name": "environment_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of environment ids to approve or reject",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -46615,10 +46301,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Whether to approve or reject deployment to the specified environments.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -46628,10 +46311,7 @@
],
"name": "comment",
"in": "body",
- "rawType": "string",
- "rawDescription": "A comment to accompany the deployment review",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -47388,10 +47068,7 @@
"description": "Whether to enable debug logging for the re-run.
",
"name": "enable_debug_logging",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to enable debug logging for the re-run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -47466,10 +47143,7 @@
"description": "Whether to enable debug logging for the re-run.
",
"name": "enable_debug_logging",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to enable debug logging for the re-run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -47581,7 +47255,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -53431,10 +53105,7 @@
"description": "The git reference for the workflow. The reference can be a branch or tag name.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The git reference for the workflow. The reference can be a branch or tag name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -53445,10 +53116,7 @@
"maxProperties": 10,
"name": "inputs",
"in": "body",
- "rawType": "object",
- "rawDescription": "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -89434,15 +89102,6 @@
"format": "date-time"
}
},
- {
- "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.
",
@@ -89451,6 +89110,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"bodyParameters": [],
@@ -91791,20 +91459,14 @@
"format": "date-time",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the notification has been read.
",
"type": "boolean",
"name": "read",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the notification has been read.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -94402,10 +94064,7 @@
"type": "boolean",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to block all notifications from a thread.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -97006,10 +96665,7 @@
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: The current timestamp.
",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -104692,20 +104348,14 @@
"description": "Determines if notifications should be received from this repository.
",
"name": "subscribed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications should be received from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository.
",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if all notifications should be blocked from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -112256,34 +111906,19 @@
{
"description": "List of repository names that the token should have access to
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository names that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that the token should have access to
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -112689,8 +112324,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -112706,10 +112339,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112719,10 +112349,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112732,10 +112359,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112745,10 +112369,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112758,10 +112379,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112771,10 +112389,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112784,10 +112399,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112797,10 +112409,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112810,10 +112419,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112823,10 +112429,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112836,10 +112439,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112849,10 +112449,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112863,10 +112460,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112876,10 +112470,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112889,10 +112480,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112902,10 +112490,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112915,10 +112500,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112928,10 +112510,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112941,10 +112520,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112953,10 +112529,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112966,10 +112539,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112979,10 +112549,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -112992,10 +112559,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113004,10 +112568,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113018,10 +112579,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113031,10 +112589,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113044,10 +112599,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113057,10 +112609,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113070,10 +112619,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -113083,10 +112629,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -113102,7 +112645,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -122665,10 +122208,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -122734,10 +122274,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -123600,10 +123137,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -124462,10 +123996,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -124534,10 +124065,7 @@
],
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The name of the user or organization to scope the user-to-server access token to. Required unless target_id is specified.
",
@@ -124547,10 +124075,7 @@
],
"name": "target",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the user or organization to scope the user-to-server access token to. **Required** unless `target_id` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The ID of the user or organization to scope the user-to-server access token to. Required unless target is specified.
",
@@ -124560,42 +124085,24 @@
],
"name": "target_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the user or organization to scope the user-to-server access token to. **Required** unless `target` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository names to scope the user-to-server access token to. repositories may not be specified if repository_ids is specified.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The list of repository IDs to scope the user-to-server access token to. repository_ids may not be specified if repositories is specified.
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -125001,8 +124508,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -125018,10 +124523,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125031,10 +124533,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125044,10 +124543,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125057,10 +124553,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125070,10 +124563,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125083,10 +124573,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125096,10 +124583,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125109,10 +124593,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125122,10 +124603,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125135,10 +124613,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125148,10 +124623,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125161,10 +124633,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125175,10 +124644,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125188,10 +124654,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125201,10 +124664,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125214,10 +124674,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125227,10 +124684,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125240,10 +124694,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125253,10 +124704,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125265,10 +124713,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125278,10 +124723,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125291,10 +124733,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125304,10 +124743,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125316,10 +124752,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125330,10 +124763,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125343,10 +124773,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125356,10 +124783,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125369,10 +124793,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125382,10 +124803,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -125395,10 +124813,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -126381,10 +125796,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -126394,10 +125806,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -126407,10 +125816,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -126429,8 +125835,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -129397,10 +128802,7 @@
"description": "The new name of the branch.
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the branch.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -132247,10 +131649,7 @@
"description": "The name of the branch which should be updated to match upstream.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch which should be updated to match upstream.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -132352,30 +131751,21 @@
"description": "The name of the base branch that the head will be merged into.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the base branch that the head will be merged into.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The head to merge. This can be a branch name or a commit SHA1.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The head to merge. This can be a branch name or a commit SHA1.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Commit message to use for the merge commit. If omitted, a default message will be used.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -135520,20 +134910,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -135546,11 +134930,6 @@
],
"name": "required_status_checks",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require status checks to pass before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -135563,60 +134942,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -135629,20 +134969,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -135660,20 +134994,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -135684,13 +135012,7 @@
"description": "Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
",
"name": "enforce_admins",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object or null",
@@ -135750,38 +135072,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -135868,38 +135172,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -135908,11 +135194,6 @@
},
"name": "required_pull_request_reviews",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -135963,8 +135244,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"childParamsGroups": [
{
"parentName": "dismissal_restrictions",
@@ -135974,38 +135253,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -136015,28 +135276,19 @@
"type": "boolean",
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners review them.
",
"name": "require_code_owner_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
"description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "object",
@@ -136081,8 +135333,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"childParamsGroups": [
{
"parentName": "bypass_pull_request_allowances",
@@ -136092,38 +135342,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -136139,38 +135371,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -136182,38 +135396,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -136269,11 +135465,6 @@
],
"name": "restrictions",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -136284,41 +135475,23 @@
{
"type": "array of strings",
"description": "The list of user logins with push access
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of team slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of app slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with push access",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -136329,53 +135502,35 @@
"description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true to enforce a linear commit history. Set to false to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false. For more information, see \"Requiring a linear commit history\" in the GitHub Help documentation.
",
"name": "required_linear_history",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean or null",
"description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to true to allow force pushes. Set to false or null to block force pushes. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.\"
",
"name": "allow_force_pushes",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to false to prevent deletion of the protected branch. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.
",
"name": "allow_deletions",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "If set to true, the restrictions branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to true to restrict new branch creation. Default: false.
",
"name": "block_creations",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to false to disable. Default: false.
",
"name": "required_conversation_resolution",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -138492,8 +137647,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"isRequired": false,
"childParamsGroups": [
{
@@ -138504,38 +137657,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -138546,30 +137681,21 @@
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners have reviewed.
",
"name": "require_code_owner_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -138614,8 +137740,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"isRequired": false,
"childParamsGroups": [
{
@@ -138626,38 +137750,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -140801,60 +139907,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -140867,20 +139934,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -141193,15 +140254,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -141297,15 +140352,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -141396,15 +140445,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -142464,15 +141507,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -142921,15 +141958,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -143378,15 +142409,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -144125,15 +143150,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -144430,15 +143449,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -144735,15 +143748,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -145297,15 +144304,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -145569,15 +144570,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -145841,15 +144836,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -146109,40 +145098,28 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146155,10 +145132,7 @@
"default": "queued",
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146166,10 +145140,7 @@
"description": "The time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146186,10 +145157,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146197,10 +145165,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -146365,50 +145330,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146420,40 +145370,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -146517,30 +145455,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -146553,8 +145482,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#output-object) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -146567,10 +145494,7 @@
"description": "The title of the check run.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the check run.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -146578,10 +145502,7 @@
"description": "The summary of the check run. This parameter supports Markdown.
",
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "The summary of the check run. This parameter supports Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -146589,126 +145510,14 @@
"description": "The details of the check run. This parameter supports Markdown.
",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The details of the check run. This parameter supports Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the Checks and Files changed tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"About status checks\". See the annotations object description for details about how to use this parameter.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#annotations-object) description for details about how to use this parameter.",
"isRequired": false,
"childParamsGroups": [
{
@@ -146721,50 +145530,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146776,40 +145570,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -146818,49 +145600,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#images-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -146873,30 +145614,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -146914,50 +145646,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -146969,40 +145686,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -147016,30 +145721,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -147049,53 +145745,8 @@
"type": "array of objects",
"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. See the actions object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -147109,10 +145760,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -147120,10 +145768,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -147131,10 +145776,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -150791,30 +149433,21 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150822,10 +149455,7 @@
"description": "This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150837,10 +149467,7 @@
],
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150857,10 +149484,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -150868,10 +149492,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -151036,50 +149657,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -151091,40 +149697,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -151188,30 +149782,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -151223,8 +149808,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#output-object-1) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -151237,10 +149820,7 @@
"description": "Required.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required**.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -151248,10 +149828,7 @@
"maxLength": 65535,
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -151259,126 +149836,14 @@
"maxLength": 65535,
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"About status checks\". See the annotations object description for details.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -151391,50 +149856,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -151446,40 +149896,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -151488,49 +149926,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -151543,30 +149940,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -151584,50 +149972,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -151639,40 +150012,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -151686,30 +150047,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -151719,53 +150071,8 @@
"type": "array of objects",
"description": "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.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -151779,10 +150086,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -151790,10 +150094,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -151801,10 +150102,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -155916,10 +154214,7 @@
"description": "The sha of the head commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The sha of the head commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -162129,40 +160424,8 @@
{
"type": "array of objects",
"description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the auto_trigger_checks object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "integer",
- "description": "The id of the GitHub App.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "setting": {
- "type": "boolean",
- "description": "Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them.
",
- "default": true,
- "name": "setting",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- },
"name": "auto_trigger_checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#auto_trigger_checks-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -162175,10 +160438,7 @@
"description": "The id of the GitHub App.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -162186,10 +160446,7 @@
"default": true,
"name": "setting",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -173645,10 +171902,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -173661,13 +171915,7 @@
],
"name": "dismissed_reason",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
@@ -173675,13 +171923,7 @@
"maxLength": 280,
"name": "dismissed_comment",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The dismissal comment associated with the dismissal of the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -175226,30 +173468,21 @@
"pattern": "^[0-9a-fA-F]+$",
"name": "commit_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit to which the analysis you are uploading relates.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full Git reference, formatted as refs/heads/<branch name>,\nrefs/pull/<number>/merge, or refs/pull/<number>/head.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full Git reference, formatted as `refs/heads/`,\n`refs/pull//merge`, or `refs/pull//head`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. For more information, see \"SARIF support for code scanning.\"
",
"type": "string",
"name": "sarif",
"in": "body",
- "rawType": "string",
- "rawDescription": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/enterprise-server@3.6/code-security/secure-coding/sarif-support-for-code-scanning).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
",
@@ -175260,10 +173493,7 @@
],
"name": "checkout_uri",
"in": "body",
- "rawType": "string",
- "rawDescription": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
@@ -175271,20 +173501,14 @@
"type": "string",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts.
",
"type": "string",
"name": "tool_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -176114,20 +174338,10 @@
{
"type": "string",
"description": "The permission to grant the collaborator. Only valid on organization-owned repositories.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -181966,10 +180180,7 @@
],
"name": "permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -198415,10 +196626,7 @@
"description": "The contents of the comment
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -199334,40 +197542,28 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Relative path of the file to comment on.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Relative path of the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Line index in the diff to comment on.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Line index in the diff to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Deprecated. Use position parameter instead. Line number in the file to comment on.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -202575,36 +200771,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
"description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.
\nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:
\nhttp://ci.example.com/user/repo/build/sha
",
"name": "target_url",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "A short description of the status.
",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "A short description of the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -202612,10 +200793,7 @@
"default": "default",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "A string label to differentiate this status from the status of other systems. This field is case-insensitive.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -203280,20 +201458,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -203305,23 +201477,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "string"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -205773,15 +203936,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -206312,20 +204469,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-server@3.6/rest/reference/dependabot#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -206856,30 +205007,21 @@
"description": "A name for the key.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A name for the key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the key.
",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "If true, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.
\nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"Repository permission levels for an organization\" and \"Permission levels for a user account repository.\"
",
"name": "read_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -207983,10 +206125,7 @@
"description": "The ref to deploy. This can be a branch, tag, or SHA.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The ref to deploy. This can be a branch, tag, or SHA.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -207994,10 +206133,7 @@
"default": "deploy",
"name": "task",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -208005,23 +206141,14 @@
"default": true,
"name": "auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.
",
- "items": {
- "type": "string"
- },
"name": "required_contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [status](https://docs.github.com/enterprise-server@3.6/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -208039,8 +206166,7 @@
"in": "body",
"type": "object or string",
"description": "JSON payload with extra information about the deployment.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -208048,10 +206174,7 @@
"default": "production",
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
@@ -208059,13 +206182,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Short description of the deployment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -208073,20 +206190,14 @@
"default": false,
"name": "transient_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specifies if the given environment is one that end-users directly interact with. Default: true when environment is production and false otherwise.
",
"name": "production_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -209631,12 +207742,639 @@
]
}
],
+ "branch-policies": [
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "List deployment branch policies",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "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": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Lists the deployment branch policies for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "Create a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "example-wildcard",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a wildcard name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ },
+ {
+ "key": "example-single-branch",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a single branch name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "main"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Creates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "303",
+ "description": "Response if the same branch name pattern already exists
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found or deployment_branch_policy.custom_branch_policies property for the environment is set to false
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Get a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Gets a deployment branch policy for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Update a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Updates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "http(s)://HOSTNAME/api/v3",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Delete a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Deletes a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ]
+ }
+ ],
"environments": [
{
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments",
- "title": "Get all environments",
+ "title": "List environments",
"category": "deployments",
"subcategory": "environments",
"parameters": [
@@ -210359,7 +209097,7 @@
}
],
"previews": [],
- "descriptionHTML": "Get all environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Lists the environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -210397,7 +209135,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -211066,7 +209804,7 @@
}
],
"previews": [],
- "descriptionHTML": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Note: To get information about name patterns that branches must match in order to deploy to this environment, see \"Get a deployment branch policy.\"
\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the repo scope. GitHub\nApps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -211104,7 +209842,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -211119,54 +209857,13 @@
],
"name": "wait_timer",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects or null",
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of reviewer.
",
- "enum": [
- "User",
- "Team"
- ],
- "examples": [
- "User"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
- },
- "id": {
- "type": "integer",
- "description": "The id of the user or team who can review the deployment
",
- "examples": [
- 4532992
- ],
- "name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
- }
- }
- },
"name": "reviewers",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
"isRequired": false,
"childParamsGroups": [
{
@@ -211185,10 +209882,7 @@
"User"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
@@ -211197,10 +209891,7 @@
4532992
],
"name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -211237,11 +209928,6 @@
],
"name": "deployment_branch_policy",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -211254,20 +209940,14 @@
"description": "Whether only branches with branch protection rules can deploy to this environment. If protected_branches is true, custom_branch_policies must be false; if protected_branches is false, custom_branch_policies must be true.
",
"name": "protected_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "Whether only branches that match the specified name patterns can deploy to this environment. If custom_branch_policies is true, protected_branches must be false; if custom_branch_policies is false, protected_branches must be true.
",
"name": "custom_branch_policies",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -211282,6 +209962,23 @@
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
@@ -211937,7 +210634,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: Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"Environments.\"
\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.
",
+ "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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -211979,7 +210676,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -212822,10 +211519,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -212833,10 +211527,7 @@
"default": "",
"name": "target_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -212844,10 +211535,7 @@
"default": "",
"name": "log_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -212855,10 +211543,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the status. The maximum description length is 140 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -212870,10 +211555,7 @@
],
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -212881,20 +211563,14 @@
"default": "",
"name": "environment_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the URL for accessing your environment. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Adds a new inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. An inactive status is only added to deployments that had a success state. Default: true
",
"name": "auto_inactive",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -216980,10 +215656,7 @@
],
"name": "announcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.6/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -216994,13 +215667,7 @@
],
"name": "expires_at",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -217817,10 +216484,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -217872,8 +216536,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": true,
"childParamsGroups": [
{
@@ -217886,40 +216548,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -217928,15 +216578,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -217944,10 +216588,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -218246,8 +216887,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": false,
"childParamsGroups": [
{
@@ -218260,40 +216899,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -218302,15 +216929,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -218318,10 +216939,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -218543,10 +217161,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -218725,10 +217340,7 @@
"description": "The distinguished name (DN) of the LDAP entry to map to a team.
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -219501,10 +218113,7 @@
"description": "A JSON string with the attributes enabled and when.
\nThe possible values for enabled are true and false. When it's false, the attribute when is ignored and the maintenance mode is turned off. when defines the time period when the maintenance was enabled.
\nThe possible values for when are now or any date parseable by mojombo/chronic.
",
"name": "maintenance",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the attributes `enabled` and `when`.\n\nThe possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -220260,10 +218869,7 @@
"description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.6/rest/reference/enterprise-admin#get-settings).",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -220368,10 +218974,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -220444,10 +219047,7 @@
"description": "The public SSH key.
",
"name": "authorized_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -220520,30 +219120,21 @@
"description": "The content of your .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your _.ghl_ license file.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "You must provide a password only if you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.
",
"name": "password",
"in": "body",
- "rawType": "string",
- "rawDescription": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An optional JSON string containing the installation settings. For a list of the available settings, see the Get settings endpoint.
",
"name": "settings",
"in": "body",
- "rawType": "string",
- "rawDescription": "An optional JSON string containing the installation settings. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.6/rest/reference/enterprise-admin#get-settings).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -220584,10 +219175,7 @@
"description": "The content of your new .ghl license file.
",
"name": "license",
"in": "body",
- "rawType": "string",
- "rawDescription": "The content of your new _.ghl_ license file.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -220857,20 +219445,14 @@
"type": "string",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether repositories can override enforcement.
",
"type": "boolean",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories can override enforcement.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -221032,30 +219614,21 @@
"description": "The organization's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The login of the user who will manage this organization.
",
"name": "admin",
"in": "body",
- "rawType": "string",
- "rawDescription": "The login of the user who will manage this organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The organization's display name.
",
"name": "profile_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's display name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -221225,10 +219798,7 @@
"description": "The organization's new name.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's new name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -221463,20 +220033,14 @@
"description": "The new pre-receive environment's name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new pre-receive environment's name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -221714,20 +220278,14 @@
"description": "This pre-receive environment's new name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "This pre-receive environment's new name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -222253,20 +220811,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -222275,10 +220827,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -222287,30 +220836,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The state of enforcement for this hook. default: disabled
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook. default: `disabled`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level. default: false
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -222656,20 +221196,14 @@
"description": "The name of the hook.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The script that the hook runs.
",
"name": "script",
"in": "body",
- "rawType": "string",
- "rawDescription": "The script that the hook runs.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -222678,10 +221212,7 @@
"additionalProperties": true,
"name": "script_repository",
"in": "body",
- "rawType": "object",
- "rawDescription": "The GitHub repository where the script is kept.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -222690,30 +221221,21 @@
"additionalProperties": true,
"name": "environment",
"in": "body",
- "rawType": "object",
- "rawDescription": "The pre-receive environment where the script is executed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The state of enforcement for this hook.
",
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for this hook.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether enforcement can be overridden at the org or repo level.
",
"name": "allow_downstream_configuration",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether enforcement can be overridden at the org or repo level.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -223183,10 +221705,7 @@
],
"name": "enforcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of enforcement for the hook on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -224449,20 +222968,14 @@
"description": "The user's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required for built-in authentication. The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"About authentication for your enterprise.\"
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required for built-in authentication.** The user's email\naddress. This parameter can be omitted when using CAS, LDAP, or SAML.\nFor more information, see \"[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.6/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -224699,10 +223212,7 @@
"description": "The user's new username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The user's new username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -224818,15 +223328,9 @@
{
"type": "array of strings",
"description": "A list of scopes.
",
- "items": {
- "type": "string"
- },
"name": "scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of [scopes](https://docs.github.com/enterprise-server@3.6/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -226578,10 +225082,7 @@
"description": "The reason the user is being suspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Suspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being suspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.6/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -226635,10 +225136,7 @@
"description": "The reason the user is being unsuspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Unsuspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://docs.github.com/enterprise-server@3.6/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -227252,10 +225750,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names and content for the files that make up the gist
",
@@ -227290,8 +225785,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names and content for the files that make up the gist",
"isRequired": true,
"childParamsGroups": [
{
@@ -227320,10 +225813,7 @@
"type": "string",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "Content of the file",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -227355,8 +225845,7 @@
"in": "body",
"type": "boolean or string",
"description": "Flag indicating whether the gist is public
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -231010,10 +229499,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names of files to be updated
",
@@ -231075,8 +229561,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names of files to be updated",
"isRequired": false,
"childParamsGroups": [
{
@@ -231103,22 +229587,13 @@
"description": "The new content of the file
",
"type": "string",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The new content of the file",
- "childParamsGroups": []
+ "in": "body"
},
{
"description": "The new filename for the file
",
"type": "string or null",
"name": "filename",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new filename for the file",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -236982,10 +235457,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -237682,10 +236154,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -238101,10 +236570,7 @@
"description": "The new blob's content.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blob's content.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -238112,10 +236578,7 @@
"default": "utf-8",
"name": "encoding",
"in": "body",
- "rawType": "string",
- "rawDescription": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -238349,33 +236812,21 @@
"description": "The commit message
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the tree object this commit points to
",
"name": "tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the tree object this commit points to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
",
- "items": {
- "type": "string"
- },
"name": "parents",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -238419,8 +236870,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -238433,20 +236882,14 @@
"description": "The name of the author (or committer) of the commit
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -238454,10 +236897,7 @@
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -238498,8 +236938,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -238511,29 +236949,20 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"format": "date-time",
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -238544,10 +236973,7 @@
"description": "The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits.
",
"name": "signature",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -239419,20 +237845,14 @@
"description": "The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA1 value for this reference.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value for this reference.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -239441,10 +237861,8 @@
],
"name": "key",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -239571,9 +237989,10 @@
},
{
"name": "ref",
- "description": "ref parameter
",
+ "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.
",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -239586,10 +238005,7 @@
"description": "The SHA1 value to set this reference to
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value to set this reference to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -239597,10 +238013,7 @@
"default": false,
"name": "force",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -239805,30 +238218,21 @@
"description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").
",
"name": "tag",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The tag message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the git object this is tagging.
",
"name": "object",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the git object this is tagging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -239840,10 +238244,7 @@
],
"name": "type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -239887,8 +238288,6 @@
],
"name": "tagger",
"in": "body",
- "rawType": "object",
- "rawDescription": "An object with information about the individual creating the tag.",
"isRequired": false,
"childParamsGroups": [
{
@@ -239901,20 +238300,14 @@
"description": "The name of the author of the tag
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author of the tag
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -239922,10 +238315,7 @@
"description": "When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -240363,75 +238753,8 @@
{
"type": "array of objects",
"description": "Objects (of path, mode, type, and sha) specifying a tree structure.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file referenced in the tree.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
- },
- "mode": {
- "type": "string",
- "description": "The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.
",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ],
- "name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
- },
- "type": {
- "type": "string",
- "description": "Either blob, tree, or commit.
",
- "enum": [
- "blob",
- "tree",
- "commit"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
- },
- "sha": {
- "type": "string or null",
- "description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- },
- "content": {
- "type": "string",
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- }
- }
- },
"name": "tree",
"in": "body",
- "rawType": "array",
- "rawDescription": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
"isRequired": true,
"childParamsGroups": [
{
@@ -240443,10 +238766,7 @@
"type": "string",
"description": "The file referenced in the tree.
",
"name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -240459,10 +238779,7 @@
"120000"
],
"name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -240473,31 +238790,19 @@
"commit"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string or null",
"description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -240508,10 +238813,7 @@
"description": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree and entries defined in the tree parameter. Entries defined in the tree parameter will overwrite items from base_tree with the same path. If you're creating new changes on a branch, then normally you'd set base_tree to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the tree parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the tree parameter will be listed as deleted by the new commit.
",
"name": "base_tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -240667,7 +238969,7 @@
}
],
"previews": [],
- "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
",
+ "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
\nReturns an error if you try to delete a file that does not exist.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -251444,32 +249746,21 @@
"name": "title",
"in": "body",
"type": "string or integer",
- "rawDescription": "The title of the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -251484,67 +249775,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -258063,40 +256309,21 @@
"type": "string or integer or null",
"name": "title",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
- "rawDescription": "The title of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -258107,10 +256334,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the issue. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -258125,67 +256349,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with or null to remove current. NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. Pass one or more Labels to replace the set of Labels on this Issue. Send an empty array ([]) to clear all Labels from the Issue. NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -261464,10 +259643,7 @@
],
"name": "lock_reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -265378,15 +263554,9 @@
{
"type": "array of strings",
"description": "Usernames of people to assign this issue to. NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -268627,15 +266797,9 @@
{
"type": "array of strings",
"description": "Usernames of assignees to remove from an issue. NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -273412,10 +271576,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -275007,10 +273168,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -295787,14 +293945,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also replace all of the labels for an issue. For more information, see \"Set labels for an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/enterprise-server@3.6/rest/reference/issues#set-labels-for-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -295971,14 +294123,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also add labels to the existing labels for an issue. For more information, see \"Add labels to an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see \"[Add labels to an issue](https://docs.github.com/enterprise-server@3.6/rest/reference/issues#add-labels-to-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -296547,30 +294693,21 @@
"description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -296877,30 +295014,21 @@
"description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -297756,10 +295884,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -297771,20 +295896,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -297792,10 +295911,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -298641,10 +296757,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -298656,20 +296769,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -298677,10 +296784,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -315564,10 +313668,7 @@
"type": "string",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Markdown text to render in HTML.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The rendering mode. Can be either markdown or gfm.
",
@@ -315582,20 +313683,14 @@
],
"name": "mode",
"in": "body",
- "rawType": "string",
- "rawDescription": "The rendering mode. Can be either `markdown` or `gfm`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository.
",
"type": "string",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -318787,15 +316882,9 @@
{
"type": "array of strings",
"description": "A list of arrays indicating which repositories should be migrated.
",
- "items": {
- "type": "string"
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of arrays indicating which repositories should be migrated.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -318806,10 +316895,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -318817,10 +316903,7 @@
"default": false,
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -318828,10 +316911,7 @@
"default": false,
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -318842,10 +316922,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -318856,10 +316933,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether releases should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -318870,10 +316944,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded. from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -318884,26 +316955,14 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: \"repositories\".
",
- "items": {
- "type": "string",
- "enum": [
- "repositories"
- ]
- },
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\"repositories\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -324545,10 +322604,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Lock the repositories being migrated at the start of the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether metadata should be excluded and only git source should be included for the migration.
",
@@ -324559,10 +322615,7 @@
],
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether the repository git data should be excluded from the migration.
",
@@ -324573,10 +322626,7 @@
],
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include attachments in the migration
",
@@ -324587,10 +322637,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include attachments in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include releases in the migration
",
@@ -324601,10 +322648,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include releases in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether projects owned by the organization or users should be excluded.
",
@@ -324615,10 +322659,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -324629,50 +322670,25 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Exclude attributes from the API response to improve performance
",
"readOnly": false,
"type": "array of strings",
- "items": {
- "description": "Allowed values that can be passed to the exclude param.",
- "enum": [
- "repositories"
- ],
- "type": "string",
- "examples": [
- "repositories"
- ]
- },
"examples": [
"repositories"
],
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude attributes from the API response to improve performance",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
- "items": {
- "description": "Repository path, owner and name",
- "type": "string",
- "examples": [
- "acme/widgets"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
"description": "",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -330458,22 +328474,13 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -330483,20 +328490,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client key for which to create the token.
",
@@ -330504,10 +328505,7 @@
"type": "string",
"name": "client_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client key for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The OAuth app client secret for which to create the token.
",
@@ -330515,20 +328513,14 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -331386,30 +329378,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -331419,30 +329399,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -333106,30 +331077,18 @@
"type": "string",
"name": "client_secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth app client secret for which to create the token.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -333139,20 +331098,14 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -335618,48 +333571,27 @@
{
"description": "A list of scopes that this authorization is in.
",
"type": "array of strings or null",
- "items": {
- "type": "string"
- },
"examples": [
"public_repo",
"user"
],
"name": "scopes",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "A list of scopes that this authorization is in.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to add to this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "add_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to add to this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A list of scopes to remove from this authorization.
",
"type": "array of strings",
- "items": {
- "type": "string"
- },
"name": "remove_scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of scopes to remove from this authorization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A note to remind you what the OAuth token is for.
",
@@ -335669,30 +333601,21 @@
],
"name": "note",
"in": "body",
- "rawType": "string",
- "rawDescription": "A note to remind you what the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL to remind you what app the OAuth token is for.
",
"type": "string",
"name": "note_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL to remind you what app the OAuth token is for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A unique string to distinguish an authorization from others created for the same client ID and user.
",
"type": "string",
"name": "fingerprint",
"in": "body",
- "rawType": "string",
- "rawDescription": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -337225,90 +335148,63 @@
"description": "Billing email address. This address is not publicized.
",
"name": "billing_email",
"in": "body",
- "rawType": "string",
- "rawDescription": "Billing email address. This address is not publicized.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The company name.
",
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The company name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The publicly visible email address.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The Twitter username of the company.
",
"name": "twitter_username",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Twitter username of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The location.
",
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The location.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The shorthand name of the company.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The shorthand name of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the company.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether an organization can use organization projects.
",
"name": "has_organization_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether an organization can use organization projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether repositories that belong to the organization can use repository projects.
",
"name": "has_repository_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories that belong to the organization can use repository projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -337322,10 +335218,7 @@
"default": "read",
"name": "default_repository_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "Default permission level members have for organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -337333,40 +335226,28 @@
"default": true,
"name": "members_can_create_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_internal_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -337378,10 +335259,7 @@
],
"name": "members_allowed_repository_creation_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies which types of repositories non-admin organization members can create. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -337389,10 +335267,7 @@
"default": true,
"name": "members_can_create_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -337400,10 +335275,7 @@
"default": false,
"name": "members_can_fork_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can fork private organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -337412,10 +335284,8 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -340593,10 +338463,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -342442,10 +340309,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -343161,10 +341025,7 @@
"default": false,
"name": "async",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -343525,10 +341386,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -343624,8 +341482,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.6/rest/reference/orgs#create-hook-config-params).",
"isRequired": true,
"childParamsGroups": [
{
@@ -343642,10 +341498,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -343655,10 +341508,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343668,10 +341518,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -343690,8 +341537,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343700,10 +341546,8 @@
],
"name": "username",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -343712,10 +341556,8 @@
],
"name": "password",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -343727,15 +341569,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -343743,10 +341579,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -344221,8 +342054,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.6/rest/reference/orgs#update-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -344239,10 +342070,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -344252,10 +342080,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -344265,10 +342090,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -344287,8 +342109,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -344300,15 +342121,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -344316,10 +342131,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -344328,10 +342140,8 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -344710,10 +342520,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -344723,10 +342530,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -344736,10 +342540,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -344758,8 +342559,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -345787,10 +343587,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process in which the Page will be built. Possible values are `\"legacy\"` and `\"workflow\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -345827,8 +343624,6 @@
],
"name": "source",
"in": "body",
- "rawType": "object",
- "rawDescription": "The source branch and directory used to publish your Pages site.",
"isRequired": false,
"childParamsGroups": [
{
@@ -345841,10 +343636,7 @@
"description": "The repository branch used to publish your site's source files.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository branch used to publish your site's source files.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -345856,10 +343648,7 @@
"default": "/",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -346148,33 +343937,21 @@
"description": "Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see \"Using a custom domain with GitHub Pages.\"
",
"name": "cname",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specify whether HTTPS should be enforced for the repository.
",
"name": "https_enforced",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specify whether HTTPS should be enforced for the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Configures access controls for the GitHub Pages site. If public is set to true, the site is accessible to anyone on the internet. If set to false, the site will only be accessible to users who have at least read access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal visibility. This feature is only available to repositories in an organization on an Enterprise plan.
",
"name": "public",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility. This feature is only available to repositories in an organization on an Enterprise plan.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -346185,10 +343962,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"anyOf": [
@@ -346228,8 +344002,7 @@
"in": "body",
"type": "",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -347814,20 +345587,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -348611,10 +346378,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Body of the project
",
@@ -348624,13 +346388,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "State of the project; either 'open' or 'closed'
",
@@ -348640,10 +346398,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the project; either 'open' or 'closed'",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The baseline permission that all organization members have on this project
",
@@ -348656,20 +346411,14 @@
],
"name": "organization_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The baseline permission that all organization members have on this project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not this project can be seen by everyone.
",
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not this project can be seen by everyone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -349585,20 +347334,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -349993,10 +347736,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Body of the project
",
@@ -350006,13 +347746,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -351179,13 +348913,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not the card is archived
",
@@ -351195,10 +348923,7 @@
],
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not the card is archived",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -351636,10 +349361,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the column the card should be moved to
",
@@ -351649,10 +349371,7 @@
],
"name": "column_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the column the card should be moved to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -352131,13 +349850,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the content associated with the card
",
@@ -352147,10 +349860,7 @@
],
"name": "content_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The piece of content associated with the card
",
@@ -352160,10 +349870,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The piece of content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -352841,10 +350548,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -353427,10 +351131,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -353643,10 +351344,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -353892,10 +351590,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -359642,75 +357337,55 @@
"bodyParameters": [
{
"type": "string",
- "description": "The title of the new pull request.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the new pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests\" in the GitHub Help documentation to learn more.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
",
"examples": [
1
],
"name": "issue",
"in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -363477,7 +361152,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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nYou can create a new pull request.
\nThis 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.
",
+ "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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis 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.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -367350,20 +365025,14 @@
"description": "The title of the pull request.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -367374,30 +365043,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of this Pull Request. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -372344,30 +370004,21 @@
"description": "Title for the automatic commit message.
",
"name": "commit_title",
"in": "body",
- "rawType": "string",
- "rawDescription": "Title for the automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Extra detail to append to automatic commit message.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Extra detail to append to automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "SHA that pull request head must match to allow merge.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "SHA that pull request head must match to allow merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -372379,10 +370030,7 @@
],
"name": "merge_method",
"in": "body",
- "rawType": "string",
- "rawDescription": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -372503,10 +370151,7 @@
"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.
",
"name": "expected_head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -373898,10 +371543,7 @@
"description": "The text of the reply to the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the reply to the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -375276,30 +372918,21 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The relative path to the file that necessitates a comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -375310,10 +372943,7 @@
},
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -375324,30 +372954,21 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
- "rawDescription": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "Required when using multi-line comments unless using in_reply_to. The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request\" in the GitHub Help documentation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -375359,10 +372980,7 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -375372,10 +372990,7 @@
],
"name": "in_reply_to",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -376027,10 +373642,7 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -376628,7 +374240,7 @@
"serverUrl": "http(s)://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "List requested reviewers for a pull request",
+ "title": "Get all requested reviewers for a pull request",
"category": "pulls",
"subcategory": "review-requests",
"parameters": [
@@ -376658,24 +374270,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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": [],
@@ -377118,7 +374712,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -377166,28 +374760,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "An array of team slugs that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -382751,28 +380333,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be removed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of team slugs that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be removed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -388717,24 +386287,18 @@
"description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit in the pull request when you do not specify a value.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
- "description": "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.
",
+ "description": "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.
",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -388742,105 +386306,13 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/enterprise-server@3.6/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The relative path to the file that necessitates a review comment.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "position": {
- "type": "integer",
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
- "name": "position",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "body": {
- "type": "string",
- "description": "Text of the review comment.
",
- "name": "body",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "line": {
- "type": "integer",
- "examples": [
- 28
- ],
- "name": "line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "side": {
- "type": "string",
- "examples": [
- "RIGHT"
- ],
- "name": "side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "examples": [
- 26
- ],
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_side": {
- "type": "string",
- "examples": [
- "LEFT"
- ],
- "name": "start_side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "body"
- ]
- },
"name": "comments",
"in": "body",
- "rawType": "array",
- "rawDescription": "Use the following table to specify the location, destination, and contents of the draft review comment.",
"isRequired": false,
"childParamsGroups": [
{
@@ -388853,30 +386325,21 @@
"description": "The relative path to the file that necessitates a review comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -388885,10 +386348,8 @@
],
"name": "line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -388897,10 +386358,8 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -388909,10 +386368,8 @@
],
"name": "start_line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -388921,10 +386378,8 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -389297,7 +386752,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.
\nPull request reviews created in the PENDING state do not include the submitted_at property in the response.
\nNote: 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 v3 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.
\nThe 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.
",
+ "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.
\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.\"
\nNote: 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 v3 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.
\nThe 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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -389776,10 +387231,7 @@
"description": "The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -391252,10 +388704,7 @@
"description": "The message for the pull request review dismissal
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The message for the pull request review dismissal",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -391267,10 +388716,8 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -391699,10 +389146,7 @@
"description": "The body text of the pull request review
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -391714,10 +389158,7 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -392078,8 +389519,8 @@
}
}
],
- "descriptionHTML": "",
"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.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -392846,10 +390287,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -393889,10 +391327,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -394924,10 +392359,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the commit comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -395963,10 +393395,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the issue comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -397006,10 +394435,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -398045,10 +395471,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the pull request review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -399080,10 +396503,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the release.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -400115,10 +397535,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -400783,10 +398200,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/enterprise-server@3.6/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -401836,40 +399250,28 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -401877,10 +399279,7 @@
"default": false,
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -401888,10 +399287,7 @@
"default": false,
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -401899,10 +399295,7 @@
"default": false,
"name": "generate_release_notes",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -402631,40 +400024,28 @@
"description": "The tag name for the release. This can be an existing tag or a new one.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag name for the release. This can be an existing tag or a new one.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.
",
"name": "previous_tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.
",
"name": "configuration_file_path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -404924,60 +402305,42 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true makes the release a draft, and false publishes the release.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` makes the release a draft, and `false` publishes the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true to identify the release as a prerelease, false to identify the release as a full release.
",
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -406128,20 +403491,14 @@
"description": "The file name of the asset.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The file name of the asset.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An alternate short description of the asset. Used in place of the filename.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "An alternate short description of the asset. Used in place of the filename.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -406150,10 +403507,8 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -409632,30 +406987,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409663,10 +407009,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -409678,10 +407021,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409689,10 +407029,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409700,10 +407037,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409711,10 +407045,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409722,20 +407053,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409743,30 +407068,21 @@
"default": false,
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Pass `true` to create an initial commit with empty README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
",
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
",
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409774,10 +407090,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409785,10 +407098,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409796,10 +407106,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409807,10 +407114,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409818,10 +407122,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -409829,10 +407130,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -417265,30 +414563,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417296,10 +414585,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -417311,10 +414597,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object or null",
@@ -417348,10 +414631,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417385,10 +414665,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417422,10 +414699,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417434,11 +414708,6 @@
},
"name": "security_and_analysis",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/enterprise-server@3.6/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.",
"isRequired": false,
"childParamsGroups": [
{
@@ -417462,8 +414731,6 @@
},
"name": "advanced_security",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see \"[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security).\"",
"childParamsGroups": [
{
"parentName": "advanced_security",
@@ -417474,10 +414741,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417499,8 +414763,6 @@
},
"name": "secret_scanning",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning for this repository. For more information, see \"[About secret scanning](/code-security/secret-security/about-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning",
@@ -417511,10 +414773,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417536,8 +414795,6 @@
},
"name": "secret_scanning_push_protection",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \"[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning_push_protection",
@@ -417548,10 +414805,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417568,10 +414822,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -417584,10 +414835,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -417600,10 +414848,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -417615,10 +414860,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417626,10 +414868,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417637,10 +414876,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417648,20 +414884,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Updates the default branch for this repository.
",
"name": "default_branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "Updates the default branch for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417669,10 +414899,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417680,10 +414907,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417691,10 +414915,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417702,10 +414923,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417713,10 +414931,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417724,10 +414939,7 @@
"default": false,
"name": "allow_update_branch",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417735,10 +414947,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417746,10 +414955,7 @@
"default": false,
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -417757,10 +414963,7 @@
"default": false,
"name": "allow_forking",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow private forks, or `false` to prevent private forks.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -424073,10 +421276,7 @@
"maxLength": 100,
"name": "event_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "A custom webhook event name. Must be 100 characters or fewer.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -424085,10 +421285,7 @@
"maxProperties": 10,
"name": "client_payload",
"in": "body",
- "rawType": "object",
- "rawDescription": "JSON payload with extra information about the webhook event that your action or workflow may use.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -424916,15 +422113,9 @@
{
"type": "array of strings",
"description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names cannot contain uppercase letters.
",
- "items": {
- "type": "string"
- },
"name": "names",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -425029,23 +422220,14 @@
"description": "The username or organization name the repository will be transferred to.
",
"name": "new_owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The username or organization name the repository will be transferred to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
",
- "items": {
- "type": "integer"
- },
"name": "team_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -427468,30 +424650,21 @@
"description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
",
"name": "owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the new repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the new repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the new repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the new repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -427499,10 +424672,7 @@
"default": false,
"name": "include_all_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -427510,10 +424680,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to create a new private repository or `false` to create a new public one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -433005,30 +430172,21 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A short description of the repository.
",
"type": "string",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL with more information about the repository.
",
"type": "string",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is private.
",
@@ -433036,10 +430194,7 @@
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether issues are enabled.
",
@@ -433050,10 +430205,7 @@
],
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether issues are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether projects are enabled.
",
@@ -433064,10 +430216,7 @@
],
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether projects are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the wiki is enabled.
",
@@ -433078,20 +430227,14 @@
],
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the wiki is enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"type": "integer",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is initialized with a minimal README.
",
@@ -433099,10 +430242,7 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is initialized with a minimal README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The desired language or platform to apply to the .gitignore.
",
@@ -433112,10 +430252,7 @@
],
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The desired language or platform to apply to the .gitignore.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The license keyword of the open source license for this repository.
",
@@ -433125,10 +430262,7 @@
],
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The license keyword of the open source license for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow squash merges for pull requests.
",
@@ -433139,10 +430273,7 @@
],
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow squash merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow merge commits for pull requests.
",
@@ -433153,10 +430284,7 @@
],
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow merge commits for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow rebase merges for pull requests.
",
@@ -433167,10 +430295,7 @@
],
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow rebase merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow Auto-merge to be used on pull requests.
",
@@ -433181,10 +430306,7 @@
],
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow Auto-merge to be used on pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to delete head branches when pull requests are merged
",
@@ -433195,10 +430317,7 @@
],
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to delete head branches when pull requests are merged",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether downloads are enabled.
",
@@ -433209,10 +430328,7 @@
],
"name": "has_downloads",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether downloads are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether this repository acts as a template that can be used to generate new repositories.
",
@@ -433223,10 +430339,7 @@
],
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether this repository acts as a template that can be used to generate new repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -437269,20 +434382,14 @@
"description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
",
"name": "key_prefix",
"in": "body",
- "rawType": "string",
- "rawDescription": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL must contain <num> for the reference number.
",
"name": "url_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL must contain `` for the reference number.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -439353,40 +436460,28 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The new file content, using Base64 encoding.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new file content, using Base64 encoding.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required if you are updating a file. The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -439431,8 +436526,6 @@
],
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "The person that committed the file. Default: the authenticated user.",
"isRequired": false,
"childParamsGroups": [
{
@@ -439445,20 +436538,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -439467,10 +436554,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -439519,8 +436604,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -439533,20 +436616,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -439555,10 +436632,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -440111,30 +437186,21 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The blob SHA of the file being replaced.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -440161,8 +437227,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the committer.",
"isRequired": false,
"childParamsGroups": [
{
@@ -440174,19 +437238,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -440217,8 +437275,6 @@
},
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the author.",
"isRequired": false,
"childParamsGroups": [
{
@@ -440230,19 +437286,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -443409,10 +440459,7 @@
"description": "Optional parameter to specify the organization name if forking into an organization.
",
"name": "organization",
"in": "body",
- "rawType": "string",
- "rawDescription": "Optional parameter to specify the organization name if forking into an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -449504,10 +446551,7 @@
"description": "An optional glob pattern to match against when enforcing tag protection.
",
"name": "pattern",
"in": "body",
- "rawType": "string",
- "rawDescription": "An optional glob pattern to match against when enforcing tag protection.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -463689,10 +460733,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -463706,13 +460747,7 @@
],
"name": "resolution",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -464771,46 +461806,28 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "List GitHub IDs for organization members who will become team maintainers.
",
- "items": {
- "type": "string"
- },
"name": "maintainers",
"in": "body",
- "rawType": "array",
- "rawDescription": "List GitHub IDs for organization members who will become team maintainers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
",
- "items": {
- "type": "string"
- },
"name": "repo_names",
"in": "body",
- "rawType": "array",
- "rawDescription": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -464821,10 +461838,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -464836,30 +461850,21 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "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 \"Update LDAP mapping for a team\" endpoint to change the LDAP DN. For more information, see \"Using LDAP.\"
",
"name": "ldap_dn",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. LDAP synchronization must be enabled to map LDAP entries to a team. Use the \"[Update LDAP mapping for a team](https://docs.github.com/enterprise-server@3.6/rest/reference/enterprise-admin#update-ldap-mapping-for-a-team)\" endpoint to change the LDAP DN. For more information, see \"[Using LDAP](https://docs.github.com/enterprise-server@3.6/admin/identity-and-access-management/authenticating-users-for-your-github-enterprise-server-instance/using-ldap#enabling-ldap-sync).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -466319,20 +463324,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466343,10 +463342,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -466359,23 +463355,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -467906,10 +464893,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -472971,20 +469955,10 @@
{
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -474135,20 +471109,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -474159,10 +471127,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -474175,23 +471140,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -476392,10 +473348,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -481441,10 +478394,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -483092,10 +480042,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -483974,10 +480921,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -484931,10 +481875,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -485793,10 +482734,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -486794,20 +483732,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -486815,10 +483747,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -487766,20 +484695,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -488791,20 +485714,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -488812,10 +485729,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -489743,20 +486657,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -490683,10 +487591,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -491433,10 +488338,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -492900,10 +489802,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The publicly visible email address of the user.
",
@@ -492913,10 +489812,7 @@
],
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new blog URL of the user.
",
@@ -492926,10 +489822,7 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blog URL of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new Twitter username of the user.
",
@@ -492939,13 +489832,7 @@
],
"name": "twitter_username",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new Twitter username of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new company of the user.
",
@@ -492955,10 +489842,7 @@
],
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new company of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new location of the user.
",
@@ -492968,30 +489852,21 @@
],
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new location of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new hiring availability of the user.
",
"type": "boolean",
"name": "hireable",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "The new hiring availability of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new short biography of the user.
",
"type": "string",
"name": "bio",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new short biography of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -495218,20 +492093,10 @@
{
"description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. Note: Alternatively, you can pass a single email address or an array of emails addresses directly, but we recommend that you pass an object using the emails key.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"examples": [],
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -495362,19 +492227,9 @@
{
"description": "Email addresses associated with the GitHub user account.
",
"type": "array of strings",
- "items": {
- "type": "string",
- "minItems": 1,
- "examples": [
- "username@example.com"
- ]
- },
"name": "emails",
"in": "body",
- "rawType": "array",
- "rawDescription": "Email addresses associated with the GitHub user account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -497113,20 +493968,14 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A GPG key in ASCII-armored format.
",
"type": "string",
"name": "armored_public_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "A GPG key in ASCII-armored format.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -498217,10 +495066,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The public SSH key to add to your GitHub account.
",
@@ -498228,10 +495074,7 @@
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key to add to your GitHub account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -498751,10 +495594,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -498764,10 +495604,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -498777,10 +495614,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -498799,8 +495633,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -499838,10 +496671,7 @@
"description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -499928,8 +496758,6 @@
},
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -499945,10 +496773,7 @@
"https://example.com/webhook"
],
"name": "url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -499957,10 +496782,7 @@
"\"json\""
],
"name": "content_type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -499969,10 +496791,7 @@
"\"********\""
],
"name": "secret",
- "in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "childParamsGroups": []
+ "in": "body"
},
{
"oneOf": [
@@ -499990,8 +496809,7 @@
"name": "insecure_ssl",
"in": "body",
"type": "string or number",
- "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "childParamsGroups": []
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
"
},
{
"type": "string",
@@ -500000,9 +496818,7 @@
],
"name": "token",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
},
{
"type": "string",
@@ -500011,9 +496827,7 @@
],
"name": "digest",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
}
]
}
@@ -500025,15 +496839,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -500041,10 +496849,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -500762,8 +497567,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/enterprise-server@3.6/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -500780,10 +497583,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -500793,10 +497593,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -500806,10 +497603,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -500828,8 +497622,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -500838,10 +497631,8 @@
],
"name": "address",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -500850,10 +497641,8 @@
],
"name": "room",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -500865,41 +497654,23 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/enterprise-server@3.6/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be added to the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "add_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "remove_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -500907,10 +497678,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json
index 65db885b22..19b3284227 100644
--- a/lib/rest/static/decorated/github.ae.json
+++ b/lib/rest/static/decorated/github.ae.json
@@ -980,10 +980,7 @@
],
"name": "enabled_organizations",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -995,10 +992,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -1251,16 +1245,9 @@
{
"description": "List of organization IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -1504,33 +1491,21 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether actions from GitHub Marketplace verified creators are allowed. Set to true to allow all actions by GitHub Marketplace verified creators.
",
"name": "verified_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -1682,10 +1657,7 @@
],
"name": "enabled_repositories",
"in": "body",
- "rawType": "string",
- "rawDescription": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -1697,10 +1669,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3337,16 +3306,9 @@
{
"description": "List of repository IDs to enable for GitHub Actions.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs to enable for GitHub Actions.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -3590,33 +3552,21 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether actions from GitHub Marketplace verified creators are allowed. Set to true to allow all actions by GitHub Marketplace verified creators.
",
"name": "verified_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3773,10 +3723,7 @@
"description": "Whether GitHub Actions is enabled on the repository.
",
"name": "enabled",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub Actions is enabled on the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -3788,10 +3735,7 @@
],
"name": "allowed_actions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions policy that controls the actions that are allowed to run.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -3943,33 +3887,21 @@
"description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.
",
"name": "github_owned_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether actions from GitHub Marketplace verified creators are allowed. Set to true to allow all actions by GitHub Marketplace verified creators.
",
"name": "verified_allowed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*.\"
",
- "items": {
- "type": "string"
- },
"name": "patterns_allowed",
"in": "body",
- "rawType": "array",
- "rawDescription": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -4397,20 +4329,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/github-ae@latest/rest/reference/actions#get-an-organization-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -4422,23 +4348,14 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -6882,15 +6799,9 @@
{
"type": "array of integers",
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
",
- "items": {
- "type": "integer"
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -7445,20 +7356,14 @@
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
"name": "encrypted_value",
"in": "body",
- "rawType": "string",
- "rawDescription": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/github-ae@latest/rest/reference/actions#get-a-repository-public-key) endpoint.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "ID of the key you used to encrypt the secret.
",
"name": "key_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "ID of the key you used to encrypt the secret.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -7753,10 +7658,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organization.
",
@@ -7767,38 +7669,21 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of organization IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the organization."
- },
"name": "selected_organization_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of organization IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -7806,10 +7691,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -8027,10 +7909,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Visibility of a runner group. You can select all organizations or select individual organizations.
",
@@ -8042,10 +7921,7 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all organizations or select individual organizations.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -8053,10 +7929,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -8443,16 +8316,9 @@
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -8797,10 +8663,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.
",
@@ -8813,38 +8676,21 @@
"default": "all",
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that can access the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the repository."
- },
"name": "selected_repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that can access the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of runner IDs to add to the runner group.
",
"type": "array of integers",
- "items": {
- "type": "integer",
- "description": "Unique identifier of the runner."
- },
"name": "runners",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of runner IDs to add to the runner group.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -8852,10 +8698,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -9091,10 +8934,7 @@
"type": "string",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the runner group.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.
",
@@ -9106,10 +8946,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the runner group can be used by public repositories.
",
@@ -9117,10 +8954,7 @@
"default": false,
"name": "allows_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the runner group can be used by `public` repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -21410,7 +21244,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -38033,7 +37867,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested. For a list of the possible status and conclusion options, see \"Create a check run.\"
",
+ "description": "Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub can set a status of waiting or requested.
",
"in": "query",
"required": false,
"schema": {
@@ -43859,10 +43693,7 @@
"description": "The git reference for the workflow. The reference can be a branch or tag name.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The git reference for the workflow. The reference can be a branch or tag name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -43873,10 +43704,7 @@
"maxProperties": 10,
"name": "inputs",
"in": "body",
- "rawType": "object",
- "rawDescription": "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -56285,15 +56113,6 @@
"format": "date-time"
}
},
- {
- "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.
",
@@ -56302,6 +56121,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).
",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"bodyParameters": [],
@@ -58634,20 +58462,14 @@
"format": "date-time",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the notification has been read.
",
"type": "boolean",
"name": "read",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the notification has been read.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -61237,10 +61059,7 @@
"type": "boolean",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to block all notifications from a thread.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -63833,10 +63652,7 @@
"description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: The current timestamp.
",
"name": "last_read_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -71487,20 +71303,14 @@
"description": "Determines if notifications should be received from this repository.
",
"name": "subscribed",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications should be received from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Determines if all notifications should be blocked from this repository.
",
"name": "ignored",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if all notifications should be blocked from this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -79035,34 +78845,19 @@
{
"description": "List of repository names that the token should have access to
",
"type": "array of strings",
- "items": {
- "type": "string",
- "examples": [
- "rails"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository names that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "List of repository IDs that the token should have access to
",
"type": "array of integers",
- "items": {
- "type": "integer"
- },
"examples": [
1
],
"name": "repository_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "List of repository IDs that the token should have access to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"title": "App Permissions",
@@ -79468,8 +79263,6 @@
},
"name": "permissions",
"in": "body",
- "rawType": "object",
- "rawDescription": "The permissions granted to the user-to-server access token.",
"isRequired": false,
"childParamsGroups": [
{
@@ -79485,10 +79278,7 @@
"write"
],
"name": "actions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79498,10 +79288,7 @@
"write"
],
"name": "administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79511,10 +79298,7 @@
"write"
],
"name": "checks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for checks on code.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79524,10 +79308,7 @@
"write"
],
"name": "contents",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79537,10 +79318,7 @@
"write"
],
"name": "deployments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for deployments and deployment statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79550,10 +79328,7 @@
"write"
],
"name": "environments",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for managing repository environments.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79563,10 +79338,7 @@
"write"
],
"name": "issues",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79576,10 +79348,7 @@
"write"
],
"name": "metadata",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79589,10 +79358,7 @@
"write"
],
"name": "packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79602,10 +79368,7 @@
"write"
],
"name": "pages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79615,10 +79378,7 @@
"write"
],
"name": "pull_requests",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79628,10 +79388,7 @@
"write"
],
"name": "repository_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for a repository.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79642,10 +79399,7 @@
"admin"
],
"name": "repository_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository projects, columns, and cards.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79655,10 +79409,7 @@
"write"
],
"name": "secret_scanning_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage secret scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79668,10 +79419,7 @@
"write"
],
"name": "secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage repository secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79681,10 +79429,7 @@
"write"
],
"name": "security_events",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage security events like code scanning alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79694,10 +79439,7 @@
"write"
],
"name": "single_file",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage just a single file.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79707,10 +79449,7 @@
"write"
],
"name": "statuses",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for commit statuses.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79720,10 +79459,7 @@
"write"
],
"name": "vulnerability_alerts",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage Dependabot alerts.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79732,10 +79468,7 @@
"write"
],
"name": "workflows",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to update GitHub Actions workflow files.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79745,10 +79478,7 @@
"write"
],
"name": "members",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization teams and members.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79758,10 +79488,7 @@
"write"
],
"name": "organization_administration",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage access to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79771,10 +79498,7 @@
"write"
],
"name": "organization_hooks",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79783,10 +79507,7 @@
"read"
],
"name": "organization_plan",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for viewing an organization's plan.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79797,10 +79518,7 @@
"admin"
],
"name": "organization_projects",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization projects and projects beta (where available).",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79810,10 +79528,7 @@
"write"
],
"name": "organization_packages",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token for organization packages published to GitHub Packages.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79823,10 +79538,7 @@
"write"
],
"name": "organization_secrets",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage organization secrets.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79836,10 +79548,7 @@
"write"
],
"name": "organization_self_hosted_runners",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79849,10 +79558,7 @@
"write"
],
"name": "organization_user_blocking",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to view and manage users blocked by the organization.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -79862,10 +79568,7 @@
"write"
],
"name": "team_discussions",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of permission to grant the access token to manage team discussions and related comments.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -79881,7 +79584,7 @@
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -89420,10 +89123,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -89489,10 +89189,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -90355,10 +90052,7 @@
"type": "string",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The access_token of the OAuth application.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -91217,10 +90911,7 @@
"description": "The OAuth access token used to authenticate to the GitHub API.
",
"name": "access_token",
"in": "body",
- "rawType": "string",
- "rawDescription": "The OAuth access token used to authenticate to the GitHub API.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -92212,10 +91903,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -92225,10 +91913,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -92238,10 +91923,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -92260,8 +91942,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -95049,10 +94730,7 @@
"description": "The name of the branch which should be updated to match upstream.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch which should be updated to match upstream.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -95154,30 +94832,21 @@
"description": "The name of the base branch that the head will be merged into.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the base branch that the head will be merged into.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The head to merge. This can be a branch name or a commit SHA1.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The head to merge. This can be a branch name or a commit SHA1.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Commit message to use for the merge commit. If omitted, a default message will be used.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -98322,20 +97991,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -98348,11 +98011,6 @@
],
"name": "required_status_checks",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require status checks to pass before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -98365,60 +98023,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -98431,20 +98050,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -98462,20 +98075,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -98486,13 +98093,7 @@
"description": "Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
",
"name": "enforce_admins",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object or null",
@@ -98552,38 +98153,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -98670,38 +98253,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -98710,11 +98275,6 @@
},
"name": "required_pull_request_reviews",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -98765,8 +98325,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"childParamsGroups": [
{
"parentName": "dismissal_restrictions",
@@ -98776,38 +98334,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -98817,28 +98357,19 @@
"type": "boolean",
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners review them.
",
"name": "require_code_owner_reviews",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
"description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "object",
@@ -98883,8 +98414,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"childParamsGroups": [
{
"parentName": "bypass_pull_request_allowances",
@@ -98894,38 +98423,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -98941,38 +98452,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -98984,38 +98477,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -99071,11 +98546,6 @@
],
"name": "restrictions",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
"isRequired": true,
"childParamsGroups": [
{
@@ -99086,41 +98556,23 @@
{
"type": "array of strings",
"description": "The list of user logins with push access
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of team slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with push access",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The list of app slugs with push access
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with push access",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -99131,53 +98583,35 @@
"description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true to enforce a linear commit history. Set to false to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false. For more information, see \"Requiring a linear commit history\" in the GitHub Help documentation.
",
"name": "required_linear_history",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean or null",
"description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to true to allow force pushes. Set to false or null to block force pushes. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.\"
",
"name": "allow_force_pushes",
"in": "body",
- "rawType": [
- "boolean",
- "null"
- ],
- "rawDescription": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to false to prevent deletion of the protected branch. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.
",
"name": "allow_deletions",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "If set to true, the restrictions branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to true to restrict new branch creation. Default: false.
",
"name": "block_creations",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to false to disable. Default: false.
",
"name": "required_conversation_resolution",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -101294,8 +100728,6 @@
},
"name": "dismissal_restrictions",
"in": "body",
- "rawType": "object",
- "rawDescription": "Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
"isRequired": false,
"childParamsGroups": [
{
@@ -101306,38 +100738,20 @@
{
"type": "array of strings",
"description": "The list of user logins with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs with dismissal access
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s with dismissal access",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -101348,30 +100762,21 @@
"description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit.
",
"name": "dismiss_stale_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Blocks merging pull requests until code owners have reviewed.
",
"name": "require_code_owner_reviews",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.
",
"name": "required_approving_review_count",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -101416,8 +100821,6 @@
},
"name": "bypass_pull_request_allowances",
"in": "body",
- "rawType": "object",
- "rawDescription": "Allow specific users, teams, or apps to bypass pull request requirements.",
"isRequired": false,
"childParamsGroups": [
{
@@ -101428,38 +100831,20 @@
{
"type": "array of strings",
"description": "The list of user logins allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "users",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of user `login`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of team slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "teams",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of team `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "array of strings",
"description": "The list of app slugs allowed to bypass pull request requirements.
",
- "items": {
- "type": "string"
- },
"name": "apps",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The list of app `slug`s allowed to bypass pull request requirements.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -103603,60 +102988,21 @@
"description": "Require branches to be up to date before merging.
",
"name": "strict",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Require branches to be up to date before merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"deprecated": true,
"description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control.
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "The list of status checks to require in order to merge into this branch.
",
- "items": {
- "type": "object",
- "required": [
- "context"
- ],
- "properties": {
- "context": {
- "type": "string",
- "description": "The name of the required check
",
- "name": "context",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
- },
- "app_id": {
- "type": "integer",
- "description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
- }
- }
- },
"name": "checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "The list of status checks to require in order to merge into this branch.",
"isRequired": false,
"childParamsGroups": [
{
@@ -103669,20 +103015,14 @@
"description": "The name of the required check
",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the required check",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -103995,15 +103335,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -104099,15 +103433,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -104198,15 +103526,9 @@
{
"type": "array of strings",
"description": "contexts parameter
",
- "items": {
- "type": "string"
- },
"name": "contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "contexts parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -105266,15 +104588,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -105723,15 +105039,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -106180,15 +105490,9 @@
{
"type": "array of strings",
"description": "apps parameter
",
- "items": {
- "type": "string"
- },
"name": "apps",
"in": "body",
- "rawType": "array",
- "rawDescription": "apps parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -106927,15 +106231,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -107232,15 +106530,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -107537,15 +106829,9 @@
{
"type": "array of strings",
"description": "teams parameter
",
- "items": {
- "type": "string"
- },
"name": "teams",
"in": "body",
- "rawType": "array",
- "rawDescription": "teams parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -108099,15 +107385,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -108371,15 +107651,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -108643,15 +107917,9 @@
{
"type": "array of strings",
"description": "users parameter
",
- "items": {
- "type": "string"
- },
"name": "users",
"in": "body",
- "rawType": "array",
- "rawDescription": "users parameter",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -108911,40 +108179,28 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -108957,10 +108213,7 @@
"default": "queued",
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -108968,10 +108221,7 @@
"description": "The time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -108988,10 +108238,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -108999,10 +108246,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -109167,50 +108411,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -109222,40 +108451,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -109319,30 +108536,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -109355,8 +108563,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/github-ae@latest/rest/reference/checks#output-object) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -109369,10 +108575,7 @@
"description": "The title of the check run.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the check run.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -109380,10 +108583,7 @@
"description": "The summary of the check run. This parameter supports Markdown.
",
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "The summary of the check run. This parameter supports Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -109391,126 +108591,14 @@
"description": "The details of the check run. This parameter supports Markdown.
",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The details of the check run. This parameter supports Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the Checks and Files changed tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"About status checks\". See the annotations object description for details about how to use this parameter.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/github-ae@latest/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/github-ae@latest/rest/reference/checks#annotations-object) description for details about how to use this parameter.",
"isRequired": false,
"childParamsGroups": [
{
@@ -109523,50 +108611,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -109578,40 +108651,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -109620,49 +108681,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/github-ae@latest/rest/reference/checks#images-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -109675,30 +108695,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -109716,50 +108727,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -109771,40 +108767,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -109818,30 +108802,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -109851,53 +108826,8 @@
"type": "array of objects",
"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. See the actions object description. To learn more about check runs and requested actions, see \"Check runs and requested actions.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/github-ae@latest/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/github-ae@latest/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -109911,10 +108841,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -109922,10 +108849,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -109933,10 +108857,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -113593,30 +112514,21 @@
"description": "The name of the check. For example, \"code-coverage\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the check. For example, \"code-coverage\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The URL of the integrator's site that has the full details of the check.
",
"name": "details_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL of the integrator's site that has the full details of the check.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A reference for the run on the integrator's system.
",
"name": "external_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the run on the integrator's system.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -113624,10 +112536,7 @@
"description": "This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -113639,10 +112548,7 @@
],
"name": "status",
"in": "body",
- "rawType": "string",
- "rawDescription": "The current status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -113659,10 +112565,7 @@
],
"name": "conclusion",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -113670,10 +112573,7 @@
"description": "The time the check completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "completed_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -113838,50 +112738,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -113893,40 +112778,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -113990,30 +112863,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -114025,8 +112889,6 @@
],
"name": "output",
"in": "body",
- "rawType": "object",
- "rawDescription": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://docs.github.com/github-ae@latest/rest/reference/checks#output-object-1) description.",
"isRequired": false,
"childParamsGroups": [
{
@@ -114039,10 +112901,7 @@
"description": "Required.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required**.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -114050,10 +112909,7 @@
"maxLength": 65535,
"name": "summary",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -114061,126 +112917,14 @@
"maxLength": 65535,
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can contain Markdown.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the Update a check run endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"About status checks\". See the annotations object description for details.
",
"maxItems": 50,
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "description": "The start line of the annotation.
",
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "end_line": {
- "type": "integer",
- "description": "The end line of the annotation.
",
- "name": "end_line",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "start_column": {
- "type": "integer",
- "description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "start_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "end_column": {
- "type": "integer",
- "description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
- "name": "end_column",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "annotation_level": {
- "type": "string",
- "description": "The level of the annotation.
",
- "enum": [
- "notice",
- "warning",
- "failure"
- ],
- "name": "annotation_level",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "message": {
- "type": "string",
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
- "name": "message",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "title": {
- "type": "string",
- "description": "The title that represents the annotation. The maximum size is 255 characters.
",
- "name": "title",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "raw_details": {
- "type": "string",
- "description": "Details about this annotation. The maximum size is 64 KB.
",
- "name": "raw_details",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- },
"name": "annotations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/github-ae@latest/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/github-ae@latest/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -114193,50 +112937,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -114248,40 +112977,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -114290,49 +113007,8 @@
{
"type": "array of objects",
"description": "Adds images to the output displayed in the GitHub pull request UI. See the images object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "type": "string",
- "description": "The alternative text for the image.
",
- "name": "alt",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "image_url": {
- "type": "string",
- "description": "The full URL of the image.
",
- "name": "image_url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "caption": {
- "type": "string",
- "description": "A short image description.
",
- "name": "caption",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- },
"name": "images",
"in": "body",
- "rawType": "array",
- "rawDescription": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/github-ae@latest/rest/reference/checks#annotations-object-1) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -114345,30 +113021,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -114386,50 +113053,35 @@
"description": "The path of the file to add an annotation to. For example, assets/css/main.css.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start line of the annotation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The end line of the annotation.
",
"name": "end_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end line of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "start_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.
",
"name": "end_column",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -114441,40 +113093,28 @@
],
"name": "annotation_level",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of the annotation.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The title that represents the annotation. The maximum size is 255 characters.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title that represents the annotation. The maximum size is 255 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Details about this annotation. The maximum size is 64 KB.
",
"name": "raw_details",
"in": "body",
- "rawType": "string",
- "rawDescription": "Details about this annotation. The maximum size is 64 KB.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
},
@@ -114488,30 +113128,21 @@
"description": "The alternative text for the image.
",
"name": "alt",
"in": "body",
- "rawType": "string",
- "rawDescription": "The alternative text for the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full URL of the image.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the image.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short image description.
",
"name": "caption",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short image description.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -114521,53 +113152,8 @@
"type": "array of objects",
"description": "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.\"
",
"maxItems": 3,
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "maxLength": 20,
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
- "name": "label",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "description": {
- "type": "string",
- "maxLength": 40,
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
- "name": "description",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "identifier": {
- "type": "string",
- "maxLength": 20,
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
- "name": "identifier",
- "in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- },
"name": "actions",
"in": "body",
- "rawType": "array",
- "rawDescription": "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](https://docs.github.com/github-ae@latest/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/github-ae@latest/rest/reference/checks#check-runs-and-requested-actions).\"",
"isRequired": false,
"childParamsGroups": [
{
@@ -114581,10 +113167,7 @@
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -114592,10 +113175,7 @@
"description": "A short explanation of what this action would do. The maximum size is 40 characters.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -114603,10 +113183,7 @@
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters.
",
"name": "identifier",
"in": "body",
- "rawType": "string",
- "rawDescription": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -118718,10 +117295,7 @@
"description": "The sha of the head commit.
",
"name": "head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The sha of the head commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -124915,40 +123489,8 @@
{
"type": "array of objects",
"description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the auto_trigger_checks object description for details.
",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "integer",
- "description": "The id of the GitHub App.
",
- "name": "app_id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "setting": {
- "type": "boolean",
- "description": "Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them.
",
- "default": true,
- "name": "setting",
- "in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- },
"name": "auto_trigger_checks",
"in": "body",
- "rawType": "array",
- "rawDescription": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://docs.github.com/github-ae@latest/rest/reference/checks#auto_trigger_checks-object) description for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -124961,10 +123503,7 @@
"description": "The id of the GitHub App.
",
"name": "app_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The `id` of the GitHub App.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -124972,10 +123511,7 @@
"default": true,
"name": "setting",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -134900,10 +133436,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -134916,13 +133449,7 @@
],
"name": "dismissed_reason",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the state is dismissed.** The reason for dismissing or closing the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -136441,30 +134968,21 @@
"pattern": "^[0-9a-fA-F]+$",
"name": "commit_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit to which the analysis you are uploading relates.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The full Git reference, formatted as refs/heads/<branch name>,\nrefs/pull/<number>/merge, or refs/pull/<number>/head.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full Git reference, formatted as `refs/heads/`,\n`refs/pull//merge`, or `refs/pull//head`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. For more information, see \"SARIF support for code scanning.\"
",
"type": "string",
"name": "sarif",
"in": "body",
- "rawType": "string",
- "rawDescription": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see \"[SARIF support for code scanning](https://docs.github.com/github-ae@latest/code-security/secure-coding/sarif-support-for-code-scanning).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
",
@@ -136475,10 +134993,7 @@
],
"name": "checkout_uri",
"in": "body",
- "rawType": "string",
- "rawDescription": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The time that the analysis run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
@@ -136486,20 +135001,14 @@
"type": "string",
"name": "started_at",
"in": "body",
- "rawType": "string",
- "rawDescription": "The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the tool_guid parameter of operations such as GET /repos/{owner}/{repo}/code-scanning/alerts.
",
"type": "string",
"name": "tool_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to \"API\". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -137329,20 +135838,10 @@
{
"type": "string",
"description": "The permission to grant the collaborator. Only valid on organization-owned repositories.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -143165,10 +141664,7 @@
],
"name": "permissions",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -159582,10 +158078,7 @@
"description": "The contents of the comment
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -160501,40 +158994,28 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Relative path of the file to comment on.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "Relative path of the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Line index in the diff to comment on.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "Line index in the diff to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "Deprecated. Use position parameter instead. Line number in the file to comment on.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -163734,36 +162215,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
"description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.
\nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:
\nhttp://ci.example.com/user/repo/build/sha
",
"name": "target_url",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "A short description of the status.
",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "A short description of the status.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -163771,10 +162237,7 @@
"default": "default",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "A string label to differentiate this status from the status of other systems. This field is case-insensitive.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -164223,30 +162686,21 @@
"description": "A name for the key.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A name for the key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the key.
",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the key.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "If true, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.
\nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"Repository permission levels for an organization\" and \"Permission levels for a user account repository.\"
",
"name": "read_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -165350,10 +163804,7 @@
"description": "The ref to deploy. This can be a branch, tag, or SHA.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The ref to deploy. This can be a branch, tag, or SHA.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -165361,10 +163812,7 @@
"default": "deploy",
"name": "task",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -165372,23 +163820,14 @@
"default": true,
"name": "auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.
",
- "items": {
- "type": "string"
- },
"name": "required_contexts",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [status](https://docs.github.com/github-ae@latest/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -165406,8 +163845,7 @@
"in": "body",
"type": "object or string",
"description": "JSON payload with extra information about the deployment.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -165415,10 +163853,7 @@
"default": "production",
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
@@ -165426,13 +163861,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Short description of the deployment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -165440,20 +163869,14 @@
"default": false,
"name": "transient_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specifies if the given environment is one that end-users directly interact with. Default: true when environment is production and false otherwise.
",
"name": "production_environment",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -166998,12 +165421,639 @@
]
}
],
+ "branch-policies": [
+ {
+ "serverUrl": "https://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "List deployment branch policies",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "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": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ },
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Lists the deployment branch policies for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "https://HOSTNAME/api/v3",
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
+ "title": "Create a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "example-wildcard",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a wildcard name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ },
+ {
+ "key": "example-single-branch",
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ },
+ "request": {
+ "contentType": "application/json",
+ "description": "Example of a single branch name pattern",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "main"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME"
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Creates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ },
+ {
+ "httpStatusCode": "303",
+ "description": "Response if the same branch name pattern already exists
"
+ },
+ {
+ "httpStatusCode": "404",
+ "description": "Not Found or deployment_branch_policy.custom_branch_policies property for the environment is set to false
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "https://HOSTNAME/api/v3",
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Get a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Gets a deployment branch policy for an environment.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "https://HOSTNAME/api/v3",
+ "verb": "put",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Update a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [
+ {
+ "description": "The name pattern that branches must match in order to deploy to the environment.
\nWildcard characters will not match /. For example, to match branches that begin with release/ and contain an additional single slash, use release/*/*.\nFor more information about pattern matching syntax, see the Ruby File.fnmatch documentation.
",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ],
+ "name": "name",
+ "in": "body",
+ "isRequired": true
+ }
+ ],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "contentType": "application/json",
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "name": "release/*"
+ },
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "200",
+ "contentType": "application/json",
+ "description": "Response
",
+ "example": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ },
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Updates a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "200",
+ "description": "OK
"
+ }
+ ]
+ },
+ {
+ "serverUrl": "https://HOSTNAME/api/v3",
+ "verb": "delete",
+ "requestPath": "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}",
+ "title": "Delete a deployment branch policy",
+ "category": "deployments",
+ "subcategory": "branch-policies",
+ "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. The name is not case sensitive.
",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.
",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.
",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "bodyParameters": [],
+ "enabledForGitHubApps": true,
+ "codeExamples": [
+ {
+ "key": "default",
+ "request": {
+ "description": "Example",
+ "acceptHeader": "application/vnd.github.v3+json",
+ "parameters": {
+ "owner": "OWNER",
+ "repo": "REPO",
+ "environment_name": "ENVIRONMENT_NAME",
+ "branch_policy_id": "BRANCH_POLICY_ID"
+ }
+ },
+ "response": {
+ "statusCode": "204",
+ "description": "Response
"
+ }
+ }
+ ],
+ "previews": [],
+ "descriptionHTML": "Deletes a deployment branch policy for an environment.
\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.
",
+ "statusCodes": [
+ {
+ "httpStatusCode": "204",
+ "description": "No Content
"
+ }
+ ]
+ }
+ ],
"environments": [
{
"serverUrl": "https://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/environments",
- "title": "Get all environments",
+ "title": "List environments",
"category": "deployments",
"subcategory": "environments",
"parameters": [
@@ -167726,7 +166776,7 @@
}
],
"previews": [],
- "descriptionHTML": "Get all environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Lists the environments for a repository.
\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -167764,7 +166814,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -168433,7 +167483,7 @@
}
],
"previews": [],
- "descriptionHTML": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
",
+ "descriptionHTML": "Note: To get information about name patterns that branches must match in order to deploy to this environment, see \"Get a deployment branch policy.\"
\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the repo scope. GitHub\nApps must have the actions:read permission to use this endpoint.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -168471,7 +167521,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -168486,54 +167536,13 @@
],
"name": "wait_timer",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects or null",
"description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of reviewer.
",
- "enum": [
- "User",
- "Team"
- ],
- "examples": [
- "User"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
- },
- "id": {
- "type": "integer",
- "description": "The id of the user or team who can review the deployment
",
- "examples": [
- 4532992
- ],
- "name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
- }
- }
- },
"name": "reviewers",
"in": "body",
- "rawType": [
- "array",
- "null"
- ],
- "rawDescription": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.",
"isRequired": false,
"childParamsGroups": [
{
@@ -168552,10 +167561,7 @@
"User"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The type of reviewer.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "integer",
@@ -168564,10 +167570,7 @@
4532992
],
"name": "id",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the user or team who can review the deployment",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -168604,11 +167607,6 @@
],
"name": "deployment_branch_policy",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -168621,20 +167619,14 @@
"description": "Whether only branches with branch protection rules can deploy to this environment. If protected_branches is true, custom_branch_policies must be false; if protected_branches is false, custom_branch_policies must be true.
",
"name": "protected_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
"description": "Whether only branches that match the specified name patterns can deploy to this environment. If custom_branch_policies is true, protected_branches must be false; if custom_branch_policies is false, protected_branches must be true.
",
"name": "custom_branch_policies",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -168649,6 +167641,23 @@
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json",
+ "bodyParameters": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ },
"parameters": {
"owner": "OWNER",
"repo": "REPO",
@@ -169304,7 +168313,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: Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"Environments.\"
\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.
",
+ "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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -169346,7 +168355,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment
",
+ "description": "The name of the environment.
",
"schema": {
"type": "string"
}
@@ -170189,10 +169198,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -170200,10 +169206,7 @@
"default": "",
"name": "target_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -170211,10 +169214,7 @@
"default": "",
"name": "log_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -170222,10 +169222,7 @@
"default": "",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the status. The maximum description length is 140 characters.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -170237,10 +169234,7 @@
],
"name": "environment",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -170248,20 +169242,14 @@
"default": "",
"name": "environment_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the URL for accessing your environment. Default: `\"\"`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Adds a new inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. An inactive status is only added to deployments that had a success state. Default: true
",
"name": "auto_inactive",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -174347,10 +173335,7 @@
],
"name": "announcement",
"in": "body",
- "rawType": "string",
- "rawDescription": "The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"[Basic writing and formatting syntax](https://docs.github.com/github-ae@latest/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -174361,13 +173346,7 @@
],
"name": "expires_at",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -175004,10 +173983,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -175059,8 +174035,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": true,
"childParamsGroups": [
{
@@ -175073,40 +174047,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -175115,15 +174077,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/github-ae@latest/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -175131,10 +174087,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -175433,8 +174386,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook.",
"isRequired": false,
"childParamsGroups": [
{
@@ -175447,40 +174398,28 @@
"description": "The URL to which the payloads will be delivered.
",
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The media type used to serialize the payloads. Supported values include json and form. The default is form.
",
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "If provided, the secret will be used as the key to generate the HMAC hex digest value in the X-Hub-Signature header.
",
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers) header.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
"name": "insecure_ssl",
"in": "body",
- "rawType": "string",
- "rawDescription": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -175489,15 +174428,9 @@
{
"type": "array of strings",
"description": "The events that trigger this webhook. A global webhook can be triggered by user and organization events. Default: user and organization.
",
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "The [events](https://docs.github.com/github-ae@latest/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -175505,10 +174438,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -175800,30 +174730,21 @@
"description": "The organization's username.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's username.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The login of the user who will manage this organization.
",
"name": "admin",
"in": "body",
- "rawType": "string",
- "rawDescription": "The login of the user who will manage this organization.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The organization's display name.
",
"name": "profile_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's display name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -175993,10 +174914,7 @@
"description": "The organization's new name.
",
"name": "login",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization's new name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -176231,20 +175149,14 @@
"description": "The new pre-receive environment's name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new pre-receive environment's name.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -176482,20 +175394,14 @@
"description": "This pre-receive environment's new name.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "This pre-receive environment's new name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "URL from which to download a tarball of this environment.
",
"name": "image_url",
"in": "body",
- "rawType": "string",
- "rawDescription": "URL from which to download a tarball of this environment.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -177055,49 +175961,21 @@
{
"type": "array of strings",
"description": "The SCIM schema URIs.
",
- "items": {
- "type": "string"
- },
"name": "schemas",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SCIM schema URIs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the SCIM group. This must match the GitHub organization that the group maps to.
",
"name": "displayName",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the SCIM group. This must match the GitHub organization that the group maps to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string",
- "description": "The SCIM user ID for a user.
",
- "name": "value",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The SCIM user ID for a user.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "value"
- ]
- },
"name": "members",
"in": "body",
- "rawType": "array",
"description": "",
"isRequired": false,
"childParamsGroups": [
@@ -177111,10 +175989,7 @@
"description": "The SCIM user ID for a user.
",
"name": "value",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SCIM user ID for a user.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -177433,49 +176308,21 @@
{
"type": "array of strings",
"description": "The SCIM schema URIs.
",
- "items": {
- "type": "string"
- },
"name": "schemas",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SCIM schema URIs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the SCIM group. This must match the GitHub organization that the group maps to.
",
"name": "displayName",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the SCIM group. This must match the GitHub organization that the group maps to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
- "items": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string",
- "description": "The SCIM user ID for a user.
",
- "name": "value",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The SCIM user ID for a user.",
- "isRequired": true,
- "childParamsGroups": []
- }
- },
- "required": [
- "value"
- ]
- },
"name": "members",
"in": "body",
- "rawType": "array",
"description": "",
"isRequired": false,
"childParamsGroups": [
@@ -177489,10 +176336,7 @@
"description": "The SCIM user ID for a user.
",
"name": "value",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SCIM user ID for a user.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -177660,67 +176504,16 @@
{
"type": "array of strings",
"description": "The SCIM schema URIs.
",
- "items": {
- "type": "string"
- },
"name": "schemas",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SCIM schema URIs.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of objects",
"description": "Array of SCIM operations.
",
"minItems": 1,
- "items": {
- "type": "object",
- "properties": {
- "op": {
- "type": "string",
- "enum": [
- "add",
- "Add",
- "remove",
- "Remove",
- "replace",
- "Replace"
- ],
- "name": "op",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": true,
- "childParamsGroups": []
- },
- "path": {
- "type": "string",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "value": {
- "description": "Can be any value - string, number, array or object.
",
- "name": "value",
- "in": "body",
- "type": "",
- "rawDescription": "Can be any value - string, number, array or object.",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "op"
- ]
- },
"name": "Operations",
"in": "body",
- "rawType": "array",
- "rawDescription": "Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2).",
"isRequired": true,
"childParamsGroups": [
{
@@ -177740,28 +176533,22 @@
],
"name": "op",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"name": "path",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Can be any value - string, number, array or object.
",
"name": "value",
"in": "body",
"type": "",
- "rawDescription": "Can be any value - string, number, array or object.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -179107,15 +177894,9 @@
{
"type": "array of strings",
"description": "A list of scopes.
",
- "items": {
- "type": "string"
- },
"name": "scopes",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of [scopes](https://docs.github.com/github-ae@latest/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -180777,10 +179558,7 @@
"description": "The reason the user is being suspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Suspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being suspended. This message will be logged in the [audit log](https://docs.github.com/github-ae@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -180834,10 +179612,7 @@
"description": "The reason the user is being unsuspended. This message will be logged in the audit log. If you don't provide a reason, it will default to \"Unsuspended via API by SITE_ADMINISTRATOR\", where SITE_ADMINISTRATOR is the person who performed the action.
",
"name": "reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://docs.github.com/github-ae@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -181451,10 +180226,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names and content for the files that make up the gist
",
@@ -181489,8 +180261,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names and content for the files that make up the gist",
"isRequired": true,
"childParamsGroups": [
{
@@ -181519,10 +180289,7 @@
"type": "string",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "Content of the file",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
]
}
@@ -181554,8 +180321,7 @@
"in": "body",
"type": "boolean or string",
"description": "Flag indicating whether the gist is public
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -185209,10 +183975,7 @@
],
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "Description of the gist",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Names of files to be updated
",
@@ -185274,8 +184037,6 @@
],
"name": "files",
"in": "body",
- "rawType": "object",
- "rawDescription": "Names of files to be updated",
"isRequired": false,
"childParamsGroups": [
{
@@ -185302,22 +184063,13 @@
"description": "The new content of the file
",
"type": "string",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The new content of the file",
- "childParamsGroups": []
+ "in": "body"
},
{
"description": "The new filename for the file
",
"type": "string or null",
"name": "filename",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new filename for the file",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -191181,10 +189933,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -191881,10 +190630,7 @@
],
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The comment text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -192300,10 +191046,7 @@
"description": "The new blob's content.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blob's content.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -192311,10 +191054,7 @@
"default": "utf-8",
"name": "encoding",
"in": "body",
- "rawType": "string",
- "rawDescription": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -192548,33 +191288,21 @@
"description": "The commit message
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the tree object this commit points to
",
"name": "tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the tree object this commit points to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
",
- "items": {
- "type": "string"
- },
"name": "parents",
"in": "body",
- "rawType": "array",
- "rawDescription": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -192618,8 +191346,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -192632,20 +191358,14 @@
"description": "The name of the author (or committer) of the commit
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -192653,10 +191373,7 @@
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -192697,8 +191414,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
"isRequired": false,
"childParamsGroups": [
{
@@ -192710,29 +191425,20 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"format": "date-time",
"description": "Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -192743,10 +191449,7 @@
"description": "The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits.
",
"name": "signature",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -193618,20 +192321,14 @@
"description": "The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
",
"name": "ref",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA1 value for this reference.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value for this reference.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -193640,10 +192337,8 @@
],
"name": "key",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -193770,9 +192465,10 @@
},
{
"name": "ref",
- "description": "ref parameter
",
+ "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.
",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -193785,10 +192481,7 @@
"description": "The SHA1 value to set this reference to
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 value to set this reference to",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -193796,10 +192489,7 @@
"default": false,
"name": "force",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -194004,30 +192694,21 @@
"description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").
",
"name": "tag",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The tag message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The tag message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the git object this is tagging.
",
"name": "object",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the git object this is tagging.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -194039,10 +192720,7 @@
],
"name": "type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -194086,8 +192764,6 @@
],
"name": "tagger",
"in": "body",
- "rawType": "object",
- "rawDescription": "An object with information about the individual creating the tag.",
"isRequired": false,
"childParamsGroups": [
{
@@ -194100,20 +192776,14 @@
"description": "The name of the author of the tag
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author of the tag
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author of the tag",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -194121,10 +192791,7 @@
"description": "When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "date",
"in": "body",
- "rawType": "string",
- "rawDescription": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -194562,75 +193229,8 @@
{
"type": "array of objects",
"description": "Objects (of path, mode, type, and sha) specifying a tree structure.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The file referenced in the tree.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
- },
- "mode": {
- "type": "string",
- "description": "The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.
",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ],
- "name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
- },
- "type": {
- "type": "string",
- "description": "Either blob, tree, or commit.
",
- "enum": [
- "blob",
- "tree",
- "commit"
- ],
- "name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
- },
- "sha": {
- "type": "string or null",
- "description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- },
- "content": {
- "type": "string",
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
- "name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
- }
- }
- },
"name": "tree",
"in": "body",
- "rawType": "array",
- "rawDescription": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
"isRequired": true,
"childParamsGroups": [
{
@@ -194642,10 +193242,7 @@
"type": "string",
"description": "The file referenced in the tree.
",
"name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file referenced in the tree.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -194658,10 +193255,7 @@
"120000"
],
"name": "mode",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -194672,31 +193266,19 @@
"commit"
],
"name": "type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Either `blob`, `tree`, or `commit`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string or null",
"description": "The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "sha",
- "in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha.
\nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
",
"name": "content",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -194707,10 +193289,7 @@
"description": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree and entries defined in the tree parameter. Entries defined in the tree parameter will overwrite items from base_tree with the same path. If you're creating new changes on a branch, then normally you'd set base_tree to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the tree parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the tree parameter will be listed as deleted by the new commit.
",
"name": "base_tree",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -194866,7 +193445,7 @@
}
],
"previews": [],
- "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
",
+ "descriptionHTML": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.
\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"Create a commit\" and \"Update a reference.\"
\nReturns an error if you try to delete a file that does not exist.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -205619,32 +204198,21 @@
"name": "title",
"in": "body",
"type": "string or integer",
- "rawDescription": "The title of the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -205659,67 +204227,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -212222,40 +210745,21 @@
"type": "string or integer or null",
"name": "title",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
- "rawDescription": "The title of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "The contents of the issue.
",
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The contents of the issue.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string or null",
"description": "Login for the user that this issue should be assigned to. This field is deprecated.
",
"name": "assignee",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -212266,10 +210770,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the issue. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -212284,67 +210785,22 @@
"type": "string or integer or null",
"name": "milestone",
"in": "body",
- "rawType": [
- "null",
- "string",
- "integer"
- ],
"description": "The number of the milestone to associate this issue with or null to remove current. NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings or array of objects",
"description": "Labels to associate with this issue. Pass one or more Labels to replace the set of Labels on this Issue. Send an empty array ([]) to clear all Labels from the Issue. NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise.
",
- "items": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "color": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- ]
- },
"name": "labels",
"in": "body",
- "rawType": "array",
- "rawDescription": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -215615,10 +214071,7 @@
],
"name": "lock_reason",
"in": "body",
- "rawType": "string",
- "rawDescription": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -219521,15 +217974,9 @@
{
"type": "array of strings",
"description": "Usernames of people to assign this issue to. NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -222762,15 +221209,9 @@
{
"type": "array of strings",
"description": "Usernames of assignees to remove from an issue. NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise.
",
- "items": {
- "type": "string"
- },
"name": "assignees",
"in": "body",
- "rawType": "array",
- "rawDescription": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -227539,10 +225980,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -229134,10 +227572,7 @@
"description": "The contents of the comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -249898,14 +248333,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also replace all of the labels for an issue. For more information, see \"Set labels for an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/github-ae@latest/rest/reference/issues#set-labels-for-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -250082,14 +248511,8 @@
"type": "array of strings",
"minItems": 1,
"description": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string or an array of labels directly, but GitHub recommends passing an object with the labels key. You can also add labels to the existing labels for an issue. For more information, see \"Add labels to an issue.\"
",
- "items": {
- "type": "string"
- },
"name": "labels",
- "in": "body",
- "rawType": "array",
- "rawDescription": "The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see \"[Add labels to an issue](https://docs.github.com/github-ae@latest/rest/reference/issues#add-labels-to-an-issue).\"",
- "childParamsGroups": []
+ "in": "body"
}
],
"enabledForGitHubApps": true,
@@ -250658,30 +249081,21 @@
"description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -250988,30 +249402,21 @@
"description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see \"Emoji cheat sheet.\"
",
"name": "new_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji . For a full list of available emoji and codes, see \"[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The hexadecimal color code for the label, without the leading #.
",
"name": "color",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the label. Must be 100 characters or fewer.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the label. Must be 100 characters or fewer.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -251867,10 +250272,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -251882,20 +250284,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -251903,10 +250299,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -252752,10 +251145,7 @@
"description": "The title of the milestone.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -252767,20 +251157,14 @@
"default": "open",
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state of the milestone. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A description of the milestone.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A description of the milestone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -252788,10 +251172,7 @@
"description": "The milestone due date. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
",
"name": "due_on",
"in": "body",
- "rawType": "string",
- "rawDescription": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -269667,10 +268048,7 @@
"type": "string",
"name": "text",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Markdown text to render in HTML.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The rendering mode. Can be either markdown or gfm.
",
@@ -269685,20 +268063,14 @@
],
"name": "mode",
"in": "body",
- "rawType": "string",
- "rawDescription": "The rendering mode. Can be either `markdown` or `gfm`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository.
",
"type": "string",
"name": "context",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -272990,15 +271362,9 @@
{
"type": "array of strings",
"description": "A list of arrays indicating which repositories should be migrated.
",
- "items": {
- "type": "string"
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
- "rawDescription": "A list of arrays indicating which repositories should be migrated.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -273009,10 +271375,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -273020,10 +271383,7 @@
"default": false,
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -273031,10 +271391,7 @@
"default": false,
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -273045,10 +271402,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -273059,10 +271413,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether releases should be excluded from the migration (to reduce migration archive file size).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -273073,10 +271424,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded. from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -273087,26 +271435,14 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: \"repositories\".
",
- "items": {
- "type": "string",
- "enum": [
- "repositories"
- ]
- },
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\"repositories\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -278724,10 +277060,7 @@
],
"name": "lock_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Lock the repositories being migrated at the start of the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether metadata should be excluded and only git source should be included for the migration.
",
@@ -278738,10 +277071,7 @@
],
"name": "exclude_metadata",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether metadata should be excluded and only git source should be included for the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether the repository git data should be excluded from the migration.
",
@@ -278752,10 +277082,7 @@
],
"name": "exclude_git_data",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the repository git data should be excluded from the migration.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include attachments in the migration
",
@@ -278766,10 +277093,7 @@
],
"name": "exclude_attachments",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include attachments in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Do not include releases in the migration
",
@@ -278780,10 +277104,7 @@
],
"name": "exclude_releases",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Do not include releases in the migration",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Indicates whether projects owned by the organization or users should be excluded.
",
@@ -278794,10 +277115,7 @@
],
"name": "exclude_owner_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether projects owned by the organization or users should be excluded.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -278808,50 +277126,25 @@
],
"name": "org_metadata_only",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Exclude attributes from the API response to improve performance
",
"readOnly": false,
"type": "array of strings",
- "items": {
- "description": "Allowed values that can be passed to the exclude param.",
- "enum": [
- "repositories"
- ],
- "type": "string",
- "examples": [
- "repositories"
- ]
- },
"examples": [
"repositories"
],
"name": "exclude",
"in": "body",
- "rawType": "array",
- "rawDescription": "Exclude attributes from the API response to improve performance",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
- "items": {
- "description": "Repository path, owner and name",
- "type": "string",
- "examples": [
- "acme/widgets"
- ]
- },
"name": "repositories",
"in": "body",
- "rawType": "array",
"description": "",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -283708,90 +282001,63 @@
"description": "Billing email address. This address is not publicized.
",
"name": "billing_email",
"in": "body",
- "rawType": "string",
- "rawDescription": "Billing email address. This address is not publicized.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The company name.
",
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The company name.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The publicly visible email address.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The Twitter username of the company.
",
"name": "twitter_username",
"in": "body",
- "rawType": "string",
- "rawDescription": "The Twitter username of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The location.
",
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The location.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The shorthand name of the company.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The shorthand name of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the company.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the company.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether an organization can use organization projects.
",
"name": "has_organization_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether an organization can use organization projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether repositories that belong to the organization can use repository projects.
",
"name": "has_repository_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether repositories that belong to the organization can use repository projects.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -283805,10 +282071,7 @@
"default": "read",
"name": "default_repository_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "Default permission level members have for organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -283816,40 +282079,28 @@
"default": true,
"name": "members_can_create_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_internal_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"Restricting repository creation in your organization\" in the GitHub Help documentation.
",
"name": "members_can_create_public_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create public repositories, which are visible to anyone. For more information, see \"[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -283861,10 +282112,7 @@
],
"name": "members_allowed_repository_creation_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -283872,10 +282120,7 @@
"default": true,
"name": "members_can_create_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -283883,10 +282128,7 @@
"default": true,
"name": "members_can_create_public_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -283894,10 +282136,7 @@
"default": true,
"name": "members_can_create_private_pages",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -283905,10 +282144,7 @@
"default": false,
"name": "members_can_fork_private_repositories",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether organization members can fork private organization repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -283917,10 +282153,8 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -286989,10 +285223,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -288415,10 +286646,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -289134,10 +287362,7 @@
"default": false,
"name": "async",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -289498,10 +287723,7 @@
"description": "Must be passed as \"web\".
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Must be passed as \"web\".",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -289597,8 +287819,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/github-ae@latest/rest/reference/orgs#create-hook-config-params).",
"isRequired": true,
"childParamsGroups": [
{
@@ -289615,10 +287835,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -289628,10 +287845,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -289641,10 +287855,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -289663,8 +287874,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -289673,10 +287883,8 @@
],
"name": "username",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -289685,10 +287893,8 @@
],
"name": "password",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -289700,15 +287906,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/github-ae@latest/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -289716,10 +287916,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -290194,8 +288391,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/github-ae@latest/rest/reference/orgs#update-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -290212,10 +288407,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -290225,10 +288417,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -290238,10 +288427,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -290260,8 +288446,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -290273,15 +288458,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/github-ae@latest/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -290289,10 +288468,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -290301,10 +288477,8 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -290683,10 +288857,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -290696,10 +288867,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -290709,10 +288877,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -290731,8 +288896,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -291759,10 +289923,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process in which the Page will be built. Possible values are `\"legacy\"` and `\"workflow\"`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -291799,8 +289960,6 @@
],
"name": "source",
"in": "body",
- "rawType": "object",
- "rawDescription": "The source branch and directory used to publish your Pages site.",
"isRequired": false,
"childParamsGroups": [
{
@@ -291813,10 +289972,7 @@
"description": "The repository branch used to publish your site's source files.
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository branch used to publish your site's source files.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -291828,10 +289984,7 @@
"default": "/",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -292120,33 +290273,21 @@
"description": "Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see \"Using a custom domain with GitHub Pages.\"
",
"name": "cname",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Specify whether HTTPS should be enforced for the repository.
",
"name": "https_enforced",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Specify whether HTTPS should be enforced for the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Configures access controls for the GitHub Pages site. If public is set to true, the site is accessible to anyone on the internet. If set to false, the site will only be accessible to users who have at least read access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal visibility. This feature is only available to repositories in an organization on an Enterprise plan.
",
"name": "public",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility. This feature is only available to repositories in an organization on an Enterprise plan.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -292157,10 +290298,7 @@
],
"name": "build_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"anyOf": [
@@ -292200,8 +290338,7 @@
"in": "body",
"type": "",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -293786,20 +291923,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -294583,10 +292714,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Body of the project
",
@@ -294596,13 +292724,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "State of the project; either 'open' or 'closed'
",
@@ -294612,10 +292734,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of the project; either 'open' or 'closed'",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The baseline permission that all organization members have on this project
",
@@ -294628,20 +292747,14 @@
],
"name": "organization_permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The baseline permission that all organization members have on this project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not this project can be seen by everyone.
",
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not this project can be seen by everyone.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -295557,20 +293670,14 @@
"description": "The name of the project.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the project.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the project.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the project.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -295965,10 +294072,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "Body of the project
",
@@ -295978,13 +294082,7 @@
],
"name": "body",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "Body of the project",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -297151,13 +295249,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether or not the card is archived
",
@@ -297167,10 +295259,7 @@
],
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether or not the card is archived",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -297608,10 +295697,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the column the card should be moved to
",
@@ -297621,10 +295707,7 @@
],
"name": "column_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the column the card should be moved to",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -298103,13 +296186,7 @@
],
"name": "note",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The project card's note",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The unique identifier of the content associated with the card
",
@@ -298119,10 +296196,7 @@
],
"name": "content_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The unique identifier of the content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "The piece of content associated with the card
",
@@ -298132,10 +296206,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The piece of content associated with the card",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -298813,10 +296884,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the collaborator.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -299399,10 +297467,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -299615,10 +297680,7 @@
],
"name": "position",
"in": "body",
- "rawType": "string",
- "rawDescription": "The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -299864,10 +297926,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Name of the project column",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -305598,75 +303657,55 @@
"bodyParameters": [
{
"type": "string",
- "description": "The title of the new pull request.
",
+ "description": "The title of the new pull request. Required unless issue is specified.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the new pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.
",
"name": "head",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether the pull request is a draft. See \"Draft Pull Requests\" in the GitHub Help documentation to learn more.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title is specified.
",
"examples": [
1
],
"name": "issue",
"in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -309433,7 +307472,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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nYou can create a new pull request.
\nThis 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.
",
+ "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.
\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
\nThis 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.
",
"statusCodes": [
{
"httpStatusCode": "201",
@@ -313306,20 +311345,14 @@
"description": "The title of the pull request.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The title of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The contents of the pull request.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The contents of the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -313330,30 +311363,21 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "State of this Pull Request. Either `open` or `closed`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
",
"name": "base",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "Indicates whether maintainers can modify the pull request.
",
"name": "maintainer_can_modify",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -318300,30 +316324,21 @@
"description": "Title for the automatic commit message.
",
"name": "commit_title",
"in": "body",
- "rawType": "string",
- "rawDescription": "Title for the automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Extra detail to append to automatic commit message.
",
"name": "commit_message",
"in": "body",
- "rawType": "string",
- "rawDescription": "Extra detail to append to automatic commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "SHA that pull request head must match to allow merge.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "SHA that pull request head must match to allow merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -318335,10 +316350,7 @@
],
"name": "merge_method",
"in": "body",
- "rawType": "string",
- "rawDescription": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -318459,10 +316471,7 @@
"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.
",
"name": "expected_head_sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/github-ae@latest/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -319854,10 +317863,7 @@
"description": "The text of the reply to the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the reply to the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -321232,30 +319238,21 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The relative path to the file that necessitates a comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -321266,10 +319263,7 @@
},
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -321280,30 +319274,21 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
- "rawDescription": "In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
",
"name": "line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "Required when using multi-line comments unless using in_reply_to. The start_line is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"Commenting on a pull request\" in the GitHub Help documentation.
",
"name": "start_line",
"in": "body",
- "rawType": "integer",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -321315,10 +319300,7 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -321328,10 +319310,7 @@
],
"name": "in_reply_to",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of the review comment to reply to. To find the ID of a review comment with [\"List review comments on a pull request\"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -321983,10 +319962,7 @@
"description": "The text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -322584,7 +320560,7 @@
"serverUrl": "https://HOSTNAME/api/v3",
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "title": "List requested reviewers for a pull request",
+ "title": "Get all requested reviewers for a pull request",
"category": "pulls",
"subcategory": "review-requests",
"parameters": [
@@ -322614,24 +320590,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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": [],
@@ -323074,7 +321032,7 @@
}
],
"previews": [],
- "descriptionHTML": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
+ "descriptionHTML": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the List reviews for a pull request operation.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -323122,28 +321080,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "An array of team slugs that will be requested.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be requested.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -328691,28 +326637,16 @@
{
"type": "array of strings",
"description": "An array of user logins that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of user `login`s that will be removed.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of strings",
"description": "An array of team slugs that will be removed.
",
- "items": {
- "type": "string"
- },
"name": "team_reviewers",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of team `slug`s that will be removed.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -334641,24 +332575,18 @@
"description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit in the pull request when you do not specify a value.
",
"name": "commit_id",
"in": "body",
- "rawType": "string",
- "rawDescription": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Required when using REQUEST_CHANGES or COMMENT for the event parameter. The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
- "description": "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.
",
+ "description": "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.
",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -334666,105 +332594,13 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "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](https://docs.github.com/github-ae@latest/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of objects",
"description": "Use the following table to specify the location, destination, and contents of the draft review comment.
",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string",
- "description": "The relative path to the file that necessitates a review comment.
",
- "name": "path",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "position": {
- "type": "integer",
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
- "name": "position",
- "in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
- },
- "body": {
- "type": "string",
- "description": "Text of the review comment.
",
- "name": "body",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
- },
- "line": {
- "type": "integer",
- "examples": [
- 28
- ],
- "name": "line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "side": {
- "type": "string",
- "examples": [
- "RIGHT"
- ],
- "name": "side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_line": {
- "type": "integer",
- "examples": [
- 26
- ],
- "name": "start_line",
- "in": "body",
- "rawType": "integer",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- },
- "start_side": {
- "type": "string",
- "examples": [
- "LEFT"
- ],
- "name": "start_side",
- "in": "body",
- "rawType": "string",
- "description": "",
- "isRequired": false,
- "childParamsGroups": []
- }
- },
- "required": [
- "path",
- "body"
- ]
- },
"name": "comments",
"in": "body",
- "rawType": "array",
- "rawDescription": "Use the following table to specify the location, destination, and contents of the draft review comment.",
"isRequired": false,
"childParamsGroups": [
{
@@ -334777,30 +332613,21 @@
"description": "The relative path to the file that necessitates a review comment.
",
"name": "path",
"in": "body",
- "rawType": "string",
- "rawDescription": "The relative path to the file that necessitates a review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
"description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.
",
"name": "position",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text of the review comment.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text of the review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "integer",
@@ -334809,10 +332636,8 @@
],
"name": "line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -334821,10 +332646,8 @@
],
"name": "side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
@@ -334833,10 +332656,8 @@
],
"name": "start_line",
"in": "body",
- "rawType": "integer",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -334845,10 +332666,8 @@
],
"name": "start_side",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -335221,7 +333040,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.
\nPull request reviews created in the PENDING state do not include the submitted_at property in the response.
\nNote: 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 v3 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.
\nThe 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.
",
+ "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.
\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.\"
\nNote: 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 v3 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.
\nThe 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.
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -335700,10 +333519,7 @@
"description": "The body text of the pull request review.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -337176,10 +334992,7 @@
"description": "The message for the pull request review dismissal
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The message for the pull request review dismissal",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -337191,10 +335004,8 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -337623,10 +335434,7 @@
"description": "The body text of the pull request review
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The body text of the pull request review",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -337638,10 +335446,7 @@
],
"name": "event",
"in": "body",
- "rawType": "string",
- "rawDescription": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -338002,8 +335807,8 @@
}
}
],
- "descriptionHTML": "",
"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.\"
",
"statusCodes": [
{
"httpStatusCode": "200",
@@ -338772,10 +336577,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the team discussion comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -339821,10 +337623,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the team discussion.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -340862,10 +338661,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the commit comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -341911,10 +339707,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the issue comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -342960,10 +340753,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the issue.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -344005,10 +341795,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the pull request review comment.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -345050,10 +342837,7 @@
],
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The [reaction type](https://docs.github.com/github-ae@latest/rest/reference/reactions#reaction-types) to add to the release.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -346461,40 +344245,28 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -346502,10 +344274,7 @@
"default": false,
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -346513,10 +344282,7 @@
"default": false,
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -349423,60 +347189,42 @@
"description": "The name of the tag.
",
"name": "tag_name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master).
",
"name": "target_commitish",
"in": "body",
- "rawType": "string",
- "rawDescription": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the release.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Text describing the contents of the tag.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "Text describing the contents of the tag.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true makes the release a draft, and false publishes the release.
",
"name": "draft",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` makes the release a draft, and `false` publishes the release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
"description": "true to identify the release as a prerelease, false to identify the release as a full release.
",
"name": "prerelease",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -350632,20 +348380,14 @@
"description": "The file name of the asset.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The file name of the asset.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "An alternate short description of the asset. Used in place of the filename.
",
"name": "label",
"in": "body",
- "rawType": "string",
- "rawDescription": "An alternate short description of the asset. Used in place of the filename.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -350654,10 +348396,8 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -354127,30 +351867,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354158,10 +351889,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -354173,10 +351901,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see \"[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)\" in the GitHub Help documentation.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354184,10 +351909,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354195,10 +351917,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354206,10 +351925,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354217,20 +351933,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354238,30 +351948,21 @@
"default": false,
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Pass `true` to create an initial commit with empty README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\".
",
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Choose an open source license template that best suits your needs, and then use the license keyword as the license_template string. For example, \"mit\" or \"mpl-2.0\".
",
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354269,10 +351970,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354280,10 +351978,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354291,10 +351986,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354302,10 +351994,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354313,10 +352002,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -354324,10 +352010,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -361728,30 +359411,21 @@
"description": "The name of the repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A short description of the repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "A URL with more information about the repository.
",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -361759,10 +359433,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -361774,10 +359445,7 @@
],
"name": "visibility",
"in": "body",
- "rawType": "string",
- "rawDescription": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object or null",
@@ -361811,10 +359479,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -361848,10 +359513,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -361885,10 +359547,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -361897,11 +359556,6 @@
},
"name": "security_and_analysis",
"in": "body",
- "rawType": [
- "object",
- "null"
- ],
- "rawDescription": "Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see \"[Managing security managers in your organization](https://docs.github.com/github-ae@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).\"\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ \"security_and_analysis\": {\"advanced_security\": { \"status\": \"enabled\" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.",
"isRequired": false,
"childParamsGroups": [
{
@@ -361925,8 +359579,6 @@
},
"name": "advanced_security",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see \"[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security).\"",
"childParamsGroups": [
{
"parentName": "advanced_security",
@@ -361937,10 +359589,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -361962,8 +359611,6 @@
},
"name": "secret_scanning",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning for this repository. For more information, see \"[About secret scanning](/code-security/secret-security/about-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning",
@@ -361974,10 +359621,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -361999,8 +359643,6 @@
},
"name": "secret_scanning_push_protection",
"in": "body",
- "rawType": "object",
- "rawDescription": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \"[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning).\"",
"childParamsGroups": [
{
"parentName": "secret_scanning_push_protection",
@@ -362011,10 +359653,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -362031,10 +359670,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -362047,10 +359683,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
},
@@ -362063,10 +359696,7 @@
"type": "string",
"description": "Can be enabled or disabled.
",
"name": "status",
- "in": "body",
- "rawType": "string",
- "rawDescription": "Can be `enabled` or `disabled`.",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -362078,10 +359708,7 @@
"default": true,
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable issues for this repository or `false` to disable them.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362089,10 +359716,7 @@
"default": true,
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362100,10 +359724,7 @@
"default": true,
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362111,20 +359732,14 @@
"default": false,
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to make this repo available as a template repository or `false` to prevent it.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "Updates the default branch for this repository.
",
"name": "default_branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "Updates the default branch for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362132,10 +359747,7 @@
"default": true,
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362143,10 +359755,7 @@
"default": true,
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362154,10 +359763,7 @@
"default": true,
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362165,10 +359771,7 @@
"default": false,
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362176,10 +359779,7 @@
"default": false,
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362187,10 +359787,7 @@
"default": false,
"name": "allow_update_branch",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362198,10 +359795,7 @@
"default": false,
"name": "use_squash_pr_title_as_default",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362209,10 +359803,7 @@
"default": false,
"name": "archived",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -362220,10 +359811,7 @@
"default": false,
"name": "allow_forking",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to allow private forks, or `false` to prevent private forks.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -368512,10 +366100,7 @@
"maxLength": 100,
"name": "event_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "A custom webhook event name. Must be 100 characters or fewer.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "object",
@@ -368524,10 +366109,7 @@
"maxProperties": 10,
"name": "client_payload",
"in": "body",
- "rawType": "object",
- "rawDescription": "JSON payload with extra information about the webhook event that your action or workflow may use.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -369205,15 +366787,9 @@
{
"type": "array of strings",
"description": "An array of topics to add to the repository. Pass one or more topics to replace the set of existing topics. Send an empty array ([]) to clear all topics from the repository. Note: Topic names cannot contain uppercase letters.
",
- "items": {
- "type": "string"
- },
"name": "names",
"in": "body",
- "rawType": "array",
- "rawDescription": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -369318,23 +366894,14 @@
"description": "The username or organization name the repository will be transferred to.
",
"name": "new_owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The username or organization name the repository will be transferred to.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "array of integers",
"description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
",
- "items": {
- "type": "integer"
- },
"name": "team_ids",
"in": "body",
- "rawType": "array",
- "rawDescription": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -371749,30 +369316,21 @@
"description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
",
"name": "owner",
"in": "body",
- "rawType": "string",
- "rawDescription": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The name of the new repository.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the new repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "A short description of the new repository.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the new repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -371780,10 +369338,7 @@
"default": false,
"name": "include_all_branches",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -371791,10 +369346,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Either `true` to create a new private repository or `false` to create a new public one.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -375001,30 +372553,21 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the repository.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"description": "A short description of the repository.
",
"type": "string",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "A short description of the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "A URL with more information about the repository.
",
"type": "string",
"name": "homepage",
"in": "body",
- "rawType": "string",
- "rawDescription": "A URL with more information about the repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is private.
",
@@ -375032,10 +372575,7 @@
"type": "boolean",
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is private.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether issues are enabled.
",
@@ -375046,10 +372586,7 @@
],
"name": "has_issues",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether issues are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether projects are enabled.
",
@@ -375060,10 +372597,7 @@
],
"name": "has_projects",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether projects are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the wiki is enabled.
",
@@ -375074,20 +372608,14 @@
],
"name": "has_wiki",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the wiki is enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
",
"type": "integer",
"name": "team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether the repository is initialized with a minimal README.
",
@@ -375095,10 +372623,7 @@
"type": "boolean",
"name": "auto_init",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether the repository is initialized with a minimal README.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The desired language or platform to apply to the .gitignore.
",
@@ -375108,10 +372633,7 @@
],
"name": "gitignore_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The desired language or platform to apply to the .gitignore.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The license keyword of the open source license for this repository.
",
@@ -375121,10 +372643,7 @@
],
"name": "license_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The license keyword of the open source license for this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow squash merges for pull requests.
",
@@ -375135,10 +372654,7 @@
],
"name": "allow_squash_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow squash merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow merge commits for pull requests.
",
@@ -375149,10 +372665,7 @@
],
"name": "allow_merge_commit",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow merge commits for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow rebase merges for pull requests.
",
@@ -375163,10 +372676,7 @@
],
"name": "allow_rebase_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow rebase merges for pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to allow Auto-merge to be used on pull requests.
",
@@ -375177,10 +372687,7 @@
],
"name": "allow_auto_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to allow Auto-merge to be used on pull requests.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether to delete head branches when pull requests are merged
",
@@ -375191,10 +372698,7 @@
],
"name": "delete_branch_on_merge",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether to delete head branches when pull requests are merged",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether downloads are enabled.
",
@@ -375205,10 +372709,7 @@
],
"name": "has_downloads",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether downloads are enabled.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "Whether this repository acts as a template that can be used to generate new repositories.
",
@@ -375219,10 +372720,7 @@
],
"name": "is_template",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Whether this repository acts as a template that can be used to generate new repositories.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -379249,20 +376747,14 @@
"description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
",
"name": "key_prefix",
"in": "body",
- "rawType": "string",
- "rawDescription": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The URL must contain <num> for the reference number.
",
"name": "url_template",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL must contain `` for the reference number.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -381333,40 +378825,28 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The new file content, using Base64 encoding.
",
"name": "content",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new file content, using Base64 encoding.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "Required if you are updating a file. The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -381411,8 +378891,6 @@
],
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "The person that committed the file. Default: the authenticated user.",
"isRequired": false,
"childParamsGroups": [
{
@@ -381425,20 +378903,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -381447,10 +378919,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -381499,8 +378969,6 @@
],
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
"isRequired": false,
"childParamsGroups": [
{
@@ -381513,20 +378981,14 @@
"description": "The name of the author or committer of the commit. You'll receive a 422 status code if name is omitted.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The email of the author or committer of the commit. You'll receive a 422 status code if email is omitted.
",
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -381535,10 +378997,8 @@
],
"name": "date",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -382091,30 +379551,21 @@
"description": "The commit message.
",
"name": "message",
"in": "body",
- "rawType": "string",
- "rawDescription": "The commit message.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The blob SHA of the file being replaced.
",
"name": "sha",
"in": "body",
- "rawType": "string",
- "rawDescription": "The blob SHA of the file being replaced.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The branch name. Default: the repository’s default branch (usually master)
",
"name": "branch",
"in": "body",
- "rawType": "string",
- "rawDescription": "The branch name. Default: the repository’s default branch (usually `master`)",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -382141,8 +379592,6 @@
},
"name": "committer",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the committer.",
"isRequired": false,
"childParamsGroups": [
{
@@ -382154,19 +379603,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -382197,8 +379640,6 @@
},
"name": "author",
"in": "body",
- "rawType": "object",
- "rawDescription": "object containing information about the author.",
"isRequired": false,
"childParamsGroups": [
{
@@ -382210,19 +379651,13 @@
"type": "string",
"description": "The name of the author (or committer) of the commit
",
"name": "name",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The name of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
"description": "The email of the author (or committer) of the commit
",
"name": "email",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The email of the author (or committer) of the commit",
- "childParamsGroups": []
+ "in": "body"
}
]
}
@@ -385381,10 +382816,7 @@
"description": "Optional parameter to specify the organization name if forking into an organization.
",
"name": "organization",
"in": "body",
- "rawType": "string",
- "rawDescription": "Optional parameter to specify the organization name if forking into an organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -402208,10 +399640,7 @@
],
"name": "state",
"in": "body",
- "rawType": "string",
- "rawDescription": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string or null",
@@ -402225,13 +399654,7 @@
],
"name": "resolution",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "**Required when the `state` is `resolved`.** The reason for resolving the alert.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -402872,46 +400295,28 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "List GitHub IDs for organization members who will become team maintainers.
",
- "items": {
- "type": "string"
- },
"name": "maintainers",
"in": "body",
- "rawType": "array",
- "rawDescription": "List GitHub IDs for organization members who will become team maintainers.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.
",
- "items": {
- "type": "string"
- },
"name": "repo_names",
"in": "body",
- "rawType": "array",
- "rawDescription": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -402922,10 +400327,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -402937,20 +400339,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -404412,20 +401808,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -404436,10 +401826,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -404452,23 +401839,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -406000,10 +403378,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -411049,20 +408424,10 @@
{
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's permission attribute will be used to determine what permission to grant the team on this repository.
",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -412214,20 +409579,14 @@
"description": "The name of the team.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The name of the team.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The description of the team.
",
"name": "description",
"in": "body",
- "rawType": "string",
- "rawDescription": "The description of the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -412238,10 +409597,7 @@
],
"name": "privacy",
"in": "body",
- "rawType": "string",
- "rawDescription": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -412254,23 +409610,14 @@
"default": "pull",
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "integer or null",
"description": "The ID of a team to set as the parent team.
",
"name": "parent_team_id",
"in": "body",
- "rawType": [
- "integer",
- "null"
- ],
- "rawDescription": "The ID of a team to set as the parent team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -414473,10 +411820,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#http-verbs).\"",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -419506,10 +416850,7 @@
],
"name": "permission",
"in": "body",
- "rawType": "string",
- "rawDescription": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -421158,10 +418499,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -422040,10 +419378,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -422997,10 +420332,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -423859,10 +421191,7 @@
"description": "The discussion comment's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion comment's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": true,
@@ -424860,20 +422189,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -424881,10 +422204,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -425832,20 +423152,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -426857,20 +424171,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "boolean",
@@ -426878,10 +424186,7 @@
"default": false,
"name": "private",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -427809,20 +425114,14 @@
"description": "The discussion post's title.
",
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's title.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
"description": "The discussion post's body text.
",
"name": "body",
"in": "body",
- "rawType": "string",
- "rawDescription": "The discussion post's body text.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -428704,10 +426003,7 @@
],
"name": "group_id",
"in": "body",
- "rawType": "integer",
- "rawDescription": "External Group Id",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -429389,10 +426685,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -430139,10 +427432,7 @@
"default": "member",
"name": "role",
"in": "body",
- "rawType": "string",
- "rawDescription": "The role that this user should have in the team.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -431608,10 +428898,7 @@
],
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new name of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The publicly visible email address of the user.
",
@@ -431621,10 +428908,7 @@
],
"name": "email",
"in": "body",
- "rawType": "string",
- "rawDescription": "The publicly visible email address of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new blog URL of the user.
",
@@ -431634,10 +428918,7 @@
],
"name": "blog",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new blog URL of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new Twitter username of the user.
",
@@ -431647,13 +428928,7 @@
],
"name": "twitter_username",
"in": "body",
- "rawType": [
- "string",
- "null"
- ],
- "rawDescription": "The new Twitter username of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new company of the user.
",
@@ -431663,10 +428938,7 @@
],
"name": "company",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new company of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new location of the user.
",
@@ -431676,30 +428948,21 @@
],
"name": "location",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new location of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new hiring availability of the user.
",
"type": "boolean",
"name": "hireable",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "The new hiring availability of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The new short biography of the user.
",
"type": "string",
"name": "bio",
"in": "body",
- "rawType": "string",
- "rawDescription": "The new short biography of the user.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": false,
@@ -435336,10 +432599,7 @@
"type": "string",
"name": "armored_public_key",
"in": "body",
- "rawType": "string",
- "rawDescription": "A GPG key in ASCII-armored format.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -436361,10 +433621,7 @@
],
"name": "title",
"in": "body",
- "rawType": "string",
- "rawDescription": "A descriptive name for the new key.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"description": "The public SSH key to add to your GitHub account.
",
@@ -436372,10 +433629,7 @@
"pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ",
"name": "key",
"in": "body",
- "rawType": "string",
- "rawDescription": "The public SSH key to add to your GitHub account.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
}
],
"enabledForGitHubApps": false,
@@ -436895,10 +434149,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -436908,10 +434159,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -436921,10 +434169,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -436943,8 +434188,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -437981,10 +435225,7 @@
"description": "Use web to create a webhook. Default: web. This parameter only accepts the value web.
",
"name": "name",
"in": "body",
- "rawType": "string",
- "rawDescription": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "object",
@@ -438071,8 +435312,6 @@
},
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/github-ae@latest/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -438088,10 +435327,7 @@
"https://example.com/webhook"
],
"name": "url",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -438100,10 +435336,7 @@
"\"json\""
],
"name": "content_type",
- "in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "childParamsGroups": []
+ "in": "body"
},
{
"type": "string",
@@ -438112,10 +435345,7 @@
"\"********\""
],
"name": "secret",
- "in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "childParamsGroups": []
+ "in": "body"
},
{
"oneOf": [
@@ -438133,8 +435363,7 @@
"name": "insecure_ssl",
"in": "body",
"type": "string or number",
- "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "childParamsGroups": []
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
"
},
{
"type": "string",
@@ -438143,9 +435372,7 @@
],
"name": "token",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
},
{
"type": "string",
@@ -438154,9 +435381,7 @@
],
"name": "digest",
"in": "body",
- "rawType": "string",
- "description": "",
- "childParamsGroups": []
+ "description": ""
}
]
}
@@ -438168,15 +435393,9 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/github-ae@latest/webhooks/event-payloads) the hook is triggered for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -438184,10 +435403,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
@@ -438905,8 +436121,6 @@
],
"name": "config",
"in": "body",
- "rawType": "object",
- "rawDescription": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/github-ae@latest/rest/reference/repos#create-hook-config-params).",
"isRequired": false,
"childParamsGroups": [
{
@@ -438923,10 +436137,7 @@
],
"name": "url",
"in": "body",
- "rawType": "string",
- "rawDescription": "The URL to which the payloads will be delivered.",
- "isRequired": true,
- "childParamsGroups": []
+ "isRequired": true
},
{
"type": "string",
@@ -438936,10 +436147,7 @@
],
"name": "content_type",
"in": "body",
- "rawType": "string",
- "rawDescription": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -438949,10 +436157,7 @@
],
"name": "secret",
"in": "body",
- "rawType": "string",
- "rawDescription": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/github-ae@latest/webhooks/event-payloads/#delivery-headers).",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"oneOf": [
@@ -438971,8 +436176,7 @@
"in": "body",
"type": "string or number",
"description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.
",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -438981,10 +436185,8 @@
],
"name": "address",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "string",
@@ -438993,10 +436195,8 @@
],
"name": "room",
"in": "body",
- "rawType": "string",
"description": "",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
]
}
@@ -439008,41 +436208,23 @@
"default": [
"push"
],
- "items": {
- "type": "string"
- },
"name": "events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines what [events](https://docs.github.com/github-ae@latest/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be added to the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "add_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "array of strings",
"description": "Determines a list of events to be removed from the list of events that the Hook triggers for.
",
- "items": {
- "type": "string"
- },
"name": "remove_events",
"in": "body",
- "rawType": "array",
- "rawDescription": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
},
{
"type": "boolean",
@@ -439050,10 +436232,7 @@
"default": true,
"name": "active",
"in": "body",
- "rawType": "boolean",
- "rawDescription": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "isRequired": false,
- "childParamsGroups": []
+ "isRequired": false
}
],
"enabledForGitHubApps": true,
diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json
index 149fd96038..b729e17edc 100644
--- a/lib/rest/static/dereferenced/api.github.com.deref.json
+++ b/lib/rest/static/dereferenced/api.github.com.deref.json
@@ -4719,7 +4719,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -52580,15 +52580,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -52597,6 +52588,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -140002,14 +140002,7 @@
"properties": {
"permission": {
"type": "string",
- "description": "The permission to grant the team on this repository. In addition to the enumerated values, you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
+ "description": "The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
"default": "push"
}
}
@@ -166384,7 +166377,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -187409,7 +187402,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -250007,14 +250000,7 @@
"properties": {
"permission": {
"type": "string",
- "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** In addition to the enumerated values, you can also specify a custom repository role name, if the owning organization has defined any.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
+ "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.",
"default": "push"
}
}
@@ -283157,15 +283143,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -283882,7 +283868,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -283890,7 +283876,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -283922,7 +283908,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -284591,7 +284577,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -284623,7 +284609,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -284699,6 +284685,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -285424,7 +285431,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -285443,6 +285450,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -299694,9 +300279,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -300605,7 +301191,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -394497,7 +395083,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -394535,7 +395121,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -394559,6 +395145,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -419157,15 +419744,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -419194,24 +419781,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -431313,7 +431882,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -431368,7 +431937,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -434354,7 +434923,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
@@ -456130,7 +456699,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -456266,7 +456835,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -456372,7 +456941,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -456464,7 +457033,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -456569,7 +457138,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.2.deref.json b/lib/rest/static/dereferenced/ghes-3.2.deref.json
index 61c9f1d79c..0b21bb2423 100644
--- a/lib/rest/static/dereferenced/ghes-3.2.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.2.deref.json
@@ -11358,7 +11358,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -62603,15 +62603,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -62620,6 +62611,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -116430,13 +116430,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -140698,7 +140691,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.2/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -154334,7 +154327,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.2/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -199272,13 +199265,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -231174,15 +231160,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -231899,7 +231885,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -231907,7 +231893,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -231939,7 +231925,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -232608,7 +232594,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -232640,7 +232626,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -232716,6 +232702,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -233441,7 +233448,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -233460,6 +233467,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -247586,9 +248171,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -248497,7 +249083,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.2/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.2/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.2/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.2/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -339555,7 +340141,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -339593,7 +340179,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -339617,6 +340203,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -358184,15 +358771,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.2/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.2/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.2/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -358221,24 +358808,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -370264,7 +370833,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.2/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.2/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/enterprise-server@3.2/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.2/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -370319,7 +370888,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/enterprise-server@3.2/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/enterprise-server@3.2/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -373305,7 +373874,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/enterprise-server@3.2/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
@@ -392668,7 +393237,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -392804,7 +393373,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -392910,7 +393479,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -393002,7 +393571,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -393107,7 +393676,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.3.deref.json b/lib/rest/static/dereferenced/ghes-3.3.deref.json
index 0b0269ba70..b20c34f952 100644
--- a/lib/rest/static/dereferenced/ghes-3.3.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.3.deref.json
@@ -11212,7 +11212,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -62915,15 +62915,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -62932,6 +62923,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -118255,13 +118255,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -142075,7 +142068,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -155819,7 +155812,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.3/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -201429,13 +201422,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -233267,15 +233253,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -233992,7 +233978,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -234000,7 +233986,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -234032,7 +234018,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -234701,7 +234687,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -234733,7 +234719,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -234809,6 +234795,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -235534,7 +235541,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -235553,6 +235560,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -249748,9 +250333,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -250659,7 +251245,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.3/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.3/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.3/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.3/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -341940,7 +342526,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -341978,7 +342564,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -342002,6 +342588,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -360512,15 +361099,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.3/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.3/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -360549,24 +361136,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -372636,7 +373205,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.3/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.3/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/enterprise-server@3.3/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.3/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.3/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -372691,7 +373260,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/enterprise-server@3.3/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/enterprise-server@3.3/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -375677,7 +376246,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/enterprise-server@3.3/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
@@ -395379,7 +395948,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -395515,7 +396084,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -395621,7 +396190,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -395713,7 +396282,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -395818,7 +396387,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.4.deref.json b/lib/rest/static/dereferenced/ghes-3.4.deref.json
index 7f757151ef..771f867fdb 100644
--- a/lib/rest/static/dereferenced/ghes-3.4.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.4.deref.json
@@ -11164,7 +11164,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -63157,15 +63157,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -63174,6 +63165,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -128480,13 +128480,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -153226,7 +153219,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -166970,7 +166963,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -217845,13 +217838,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -249823,15 +249809,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -250548,7 +250534,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -250556,7 +250542,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -250588,7 +250574,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -251257,7 +251243,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -251289,7 +251275,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -251365,6 +251351,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -252090,7 +252097,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -252109,6 +252116,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -266304,9 +266889,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -267215,7 +267801,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.4/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.4/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.4/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.4/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -358488,7 +359074,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -358526,7 +359112,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -358550,6 +359136,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -377060,15 +377647,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.4/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.4/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -377097,24 +377684,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -389184,7 +389753,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.4/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.4/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/enterprise-server@3.4/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.4/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -389239,7 +389808,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/enterprise-server@3.4/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -392225,7 +392794,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/enterprise-server@3.4/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
@@ -412126,7 +412695,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -412262,7 +412831,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -412368,7 +412937,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -412460,7 +413029,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -412565,7 +413134,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.5.deref.json b/lib/rest/static/dereferenced/ghes-3.5.deref.json
index 8b233d0ccb..5b953938f5 100644
--- a/lib/rest/static/dereferenced/ghes-3.5.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.5.deref.json
@@ -11164,7 +11164,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -63527,15 +63527,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -63544,6 +63535,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -130857,13 +130857,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -155984,7 +155977,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -176447,7 +176440,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.5/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -227928,13 +227921,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -259938,15 +259924,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -260663,7 +260649,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -260671,7 +260657,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -260703,7 +260689,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -261372,7 +261358,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -261404,7 +261390,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -261480,6 +261466,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -262205,7 +262212,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -262224,6 +262231,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -276425,9 +277010,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -277336,7 +277922,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.5/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.5/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.5/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.5/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -368627,7 +369213,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -368665,7 +369251,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -368689,6 +369275,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -387199,15 +387786,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.5/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.5/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -387236,24 +387823,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -399323,7 +399892,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.5/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.5/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.5/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/enterprise-server@3.5/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.5/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.5/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -399378,7 +399947,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/enterprise-server@3.5/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/enterprise-server@3.5/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -402364,7 +402933,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/enterprise-server@3.5/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
@@ -422723,7 +423292,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -422859,7 +423428,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -422965,7 +423534,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -423057,7 +423626,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -423162,7 +423731,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.6.deref.json b/lib/rest/static/dereferenced/ghes-3.6.deref.json
index 226e45e0a7..bdb96a774e 100644
--- a/lib/rest/static/dereferenced/ghes-3.6.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.6.deref.json
@@ -11164,7 +11164,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -63965,15 +63965,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -63982,6 +63973,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -131686,13 +131686,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -157075,7 +157068,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -177747,7 +177740,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/enterprise-server@3.6/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -229347,13 +229340,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -261690,15 +261676,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -262415,7 +262401,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -262423,7 +262409,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -262455,7 +262441,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -263124,7 +263110,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -263156,7 +263142,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -263232,6 +263218,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -263957,7 +263964,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -263976,6 +263983,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -278223,9 +278808,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -279134,7 +279720,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.6/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.6/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/enterprise-server@3.6/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/enterprise-server@3.6/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -370537,7 +371123,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -370575,7 +371161,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -370599,6 +371185,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -389109,15 +389696,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.6/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.6/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -389146,24 +389733,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -401265,7 +401834,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.6/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.6/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/enterprise-server@3.6/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/enterprise-server@3.6/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/enterprise-server@3.6/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/enterprise-server@3.6/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -401320,7 +401889,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/enterprise-server@3.6/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/enterprise-server@3.6/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -404306,7 +404875,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/enterprise-server@3.6/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
@@ -425300,7 +425869,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -425436,7 +426005,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -425542,7 +426111,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -425634,7 +426203,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -425739,7 +426308,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json
index 6a3f1a33d3..b54d303270 100644
--- a/lib/rest/static/dereferenced/github.ae.deref.json
+++ b/lib/rest/static/dereferenced/github.ae.deref.json
@@ -9294,7 +9294,7 @@
"examples": {
"default": {
"value": {
- "respoitory": "Hello-World",
+ "repository": "Hello-World",
"permissions": {
"issues": "write",
"contents": "read"
@@ -41947,15 +41947,6 @@
"format": "date-time"
}
},
- {
- "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.",
@@ -41964,6 +41955,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "per_page",
+ "description": "The number of results per page (max 50).",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "default": 50
+ }
}
],
"responses": {
@@ -95019,13 +95019,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -118742,7 +118735,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/github-ae@latest/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -137766,7 +137759,7 @@
},
{
"name": "status",
- "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`. For a list of the possible `status` and `conclusion` options, see \"[Create a check run](https://docs.github.com/github-ae@latest/rest/reference/checks#create-a-check-run).\"",
+ "description": "Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.",
"in": "query",
"required": false,
"schema": {
@@ -186312,13 +186305,6 @@
"permission": {
"type": "string",
"description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
- "enum": [
- "pull",
- "push",
- "admin",
- "maintain",
- "triage"
- ],
"default": "push"
}
}
@@ -217894,15 +217880,15 @@
},
"/repos/{owner}/{repo}/environments": {
"get": {
- "summary": "Get all environments",
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "summary": "List environments",
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
"operationId": "repos/get-all-environments",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-all-environments"
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/environments#list-environments"
},
"parameters": [
{
@@ -218619,7 +218605,7 @@
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
- "category": "repos",
+ "category": "deployments",
"subcategory": "environments"
}
}
@@ -218627,7 +218613,7 @@
"/repos/{owner}/{repo}/environments/{environment_name}": {
"get": {
"summary": "Get an environment",
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
"tags": [
"repos"
],
@@ -218659,7 +218645,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -219328,7 +219314,7 @@
},
"put": {
"summary": "Create or update an environment",
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\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.",
"tags": [
"repos"
],
@@ -219360,7 +219346,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -219436,6 +219422,27 @@
}
},
"additionalProperties": false
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "wait_timer": 30,
+ "reviewers": [
+ {
+ "type": "User",
+ "id": 1
+ },
+ {
+ "type": "Team",
+ "id": 1
+ }
+ ],
+ "deployment_branch_policy": {
+ "protected_branches": false,
+ "custom_branch_policies": true
+ }
+ }
+ }
}
}
}
@@ -220161,7 +220168,7 @@
"name": "environment_name",
"in": "path",
"required": true,
- "description": "The name of the environment",
+ "description": "The name of the environment.",
"schema": {
"type": "string"
}
@@ -220180,6 +220187,584 @@
}
}
},
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
+ "get": {
+ "summary": "List deployment branch policies",
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-deployment-branch-policies",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#list-deployment-branch-policies"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "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
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "total_count": {
+ "description": "The number of deployment branch policies for the environment.",
+ "type": "integer",
+ "examples": [
+ 2
+ ]
+ },
+ "branch_policies": {
+ "type": "array",
+ "items": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "total_count",
+ "branch_policies"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "total_count": 2,
+ "branch_policies": [
+ {
+ "id": 361471,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
+ "name": "release/*"
+ },
+ {
+ "id": 361472,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
+ "name": "main"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "post": {
+ "summary": "Create a deployment branch policy",
+ "description": "Creates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/create-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#create-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "example-wildcard": {
+ "summary": "Example of a wildcard name pattern",
+ "value": {
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "summary": "Example of a single branch name pattern",
+ "value": {
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "example-wildcard": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ },
+ "example-single-branch": {
+ "value": {
+ "id": 364663,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
+ "name": "main"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
+ },
+ "303": {
+ "description": "Response if the same branch name pattern already exists"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
+ "get": {
+ "summary": "Get a deployment branch policy",
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#get-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "put": {
+ "summary": "Update a deployment branch policy",
+ "description": "Updates a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/update-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#update-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy name pattern",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Deployment branch policy",
+ "description": "Details of a deployment branch policy.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the branch policy.",
+ "type": "integer",
+ "examples": [
+ 361471
+ ]
+ },
+ "node_id": {
+ "type": "string",
+ "examples": [
+ "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
+ ]
+ },
+ "name": {
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
+ "type": "string",
+ "examples": [
+ "release/*"
+ ]
+ }
+ }
+ },
+ "examples": {
+ "default": {
+ "value": {
+ "id": 364662,
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
+ "name": "release/*"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ },
+ "delete": {
+ "summary": "Delete a deployment branch policy",
+ "description": "Deletes a deployment branch policy for an environment.\n\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.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/delete-deployment-branch-policy",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/deployments/branch-policies#delete-deployment-branch-policy"
+ },
+ "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. The name is not case sensitive.",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "environment_name",
+ "in": "path",
+ "required": true,
+ "description": "The name of the environment.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "branch_policy_id",
+ "in": "path",
+ "required": true,
+ "description": "The unique identifier of the branch policy.",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Response"
+ }
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "category": "deployments",
+ "subcategory": "branch-policies"
+ }
+ }
+ },
"/repos/{owner}/{repo}/events": {
"get": {
"summary": "List repository events",
@@ -234387,9 +234972,10 @@
},
{
"name": "ref",
- "description": "ref parameter",
+ "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.",
"in": "path",
"required": true,
+ "example": "refs/head/master",
"schema": {
"type": "string"
},
@@ -235298,7 +235884,7 @@
"/repos/{owner}/{repo}/git/trees": {
"post": {
"summary": "Create a tree",
- "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/github-ae@latest/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/github-ae@latest/rest/reference/git#update-a-reference).\"",
+ "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/github-ae@latest/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/github-ae@latest/rest/reference/git#update-a-reference).\"\n\nReturns an error if you try to delete a file that does not exist.",
"tags": [
"git"
],
@@ -326213,7 +326799,7 @@
},
"post": {
"summary": "Create a pull request",
- "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/github-ae@latest/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
+ "description": "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](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nThis endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/github-ae@latest/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -326251,7 +326837,7 @@
"properties": {
"title": {
"type": "string",
- "description": "The title of the new pull request."
+ "description": "The title of the new pull request. Required unless `issue` is specified."
},
"head": {
"type": "string",
@@ -326275,6 +326861,7 @@
},
"issue": {
"type": "integer",
+ "description": "An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.",
"examples": [
1
]
@@ -344800,15 +345387,15 @@
},
"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
"get": {
- "summary": "List requested reviewers for a pull request",
- "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/github-ae@latest/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
+ "summary": "Get all requested reviewers for a pull request",
+ "description": "Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/github-ae@latest/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
"tags": [
"pulls"
],
"operationId": "pulls/list-requested-reviewers",
"externalDocs": {
"description": "API method documentation",
- "url": "https://docs.github.com/github-ae@latest/rest/reference/pulls#list-requested-reviewers-for-a-pull-request"
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/pulls#get-all-requested-reviewers-for-a-pull-request"
},
"parameters": [
{
@@ -344837,24 +345424,6 @@
"schema": {
"type": "integer"
}
- },
- {
- "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
- }
}
],
"responses": {
@@ -356924,7 +357493,7 @@
},
"post": {
"summary": "Create a review for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/github-ae@latest/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/github-ae@latest/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
+ "description": "This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See \"[Secondary rate limits](https://docs.github.com/github-ae@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits)\" and \"[Dealing with secondary rate limits](https://docs.github.com/github-ae@latest/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)\" for details.\n\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](https://docs.github.com/github-ae@latest/rest/pulls#submit-a-review-for-a-pull-request).\"\n\n**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 v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/github-ae@latest/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `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.",
"tags": [
"pulls"
],
@@ -356979,7 +357548,7 @@
},
"event": {
"type": "string",
- "description": "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](https://docs.github.com/github-ae@latest/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.",
+ "description": "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](https://docs.github.com/github-ae@latest/rest/pulls#submit-a-review-for-a-pull-request) when you are ready.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
@@ -359965,7 +360534,7 @@
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
"post": {
"summary": "Submit a review for a pull request",
- "description": "",
+ "description": "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](https://docs.github.com/github-ae@latest/rest/pulls#create-a-review-for-a-pull-request).\"",
"tags": [
"pulls"
],
diff --git a/lib/search/indexes/github-docs-3.2-cn-records.json.br b/lib/search/indexes/github-docs-3.2-cn-records.json.br
index 900f7c5fb5..b742eae920 100644
--- a/lib/search/indexes/github-docs-3.2-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4e05624ee8f6ebb844cab490ec7224f318787657646f028d1e039cf48622ada9
-size 794279
+oid sha256:86fc2e78ee017a7648cd7d197918136385f23a79c8106ddda6e0b42da587e7b6
+size 794521
diff --git a/lib/search/indexes/github-docs-3.2-cn.json.br b/lib/search/indexes/github-docs-3.2-cn.json.br
index c7374cd8f8..eaa01c95e1 100644
--- a/lib/search/indexes/github-docs-3.2-cn.json.br
+++ b/lib/search/indexes/github-docs-3.2-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c108d9ec444b901e34178d2597c71b1810edf2fbb1930d7e8c655d009037c95e
-size 1636274
+oid sha256:ae5b81a6dd8367b60dd98fb944286f9ae63020370c68cbbed43ac131bb07ed5f
+size 1637865
diff --git a/lib/search/indexes/github-docs-3.2-en-records.json.br b/lib/search/indexes/github-docs-3.2-en-records.json.br
index 3d5e1e8977..de038573c1 100644
--- a/lib/search/indexes/github-docs-3.2-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c446f17019a5a5e3737fe0b930902560c4bf9051aacd8d1250f00204e046bb03
-size 1089436
+oid sha256:6a74b1704921ab319fce7a7d3c9d18e9429d18b20099386612ce6dab0da43f2d
+size 1090448
diff --git a/lib/search/indexes/github-docs-3.2-en.json.br b/lib/search/indexes/github-docs-3.2-en.json.br
index 64ffbd88e1..73ac348b53 100644
--- a/lib/search/indexes/github-docs-3.2-en.json.br
+++ b/lib/search/indexes/github-docs-3.2-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:44f8e1e4ffda02c497ebda37fa9e7a7159324d239971ca6aa55ce2ee7ea03cf1
-size 4417085
+oid sha256:e83e4e9b228c5b6101cdd21eb5b2db64b668484496ad79ccee6d05fead523658
+size 4421467
diff --git a/lib/search/indexes/github-docs-3.2-es-records.json.br b/lib/search/indexes/github-docs-3.2-es-records.json.br
index 655f65db77..77ef95485a 100644
--- a/lib/search/indexes/github-docs-3.2-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:816f32b442b95fa5f73375cedae5a03b30837835c9ac7b46ec6ae58fd0d9bff1
-size 733806
+oid sha256:fb231f27048ae8af58cde957dede167e8eeb62cded20b6d0de31afe86b65109b
+size 733561
diff --git a/lib/search/indexes/github-docs-3.2-es.json.br b/lib/search/indexes/github-docs-3.2-es.json.br
index b8b1edd020..8d9d30e7b5 100644
--- a/lib/search/indexes/github-docs-3.2-es.json.br
+++ b/lib/search/indexes/github-docs-3.2-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2092a02af4eb6e09cc28d958d6308e04c8078fa9e87b73817d9d4f2e3186d85d
-size 3130764
+oid sha256:e1ea376a71db795428f375c3bac0358df4ad2f0eeaf876503537c0494e9b1ff0
+size 3126504
diff --git a/lib/search/indexes/github-docs-3.2-ja-records.json.br b/lib/search/indexes/github-docs-3.2-ja-records.json.br
index 6a7a8425db..363546914b 100644
--- a/lib/search/indexes/github-docs-3.2-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:18d3e7b6402f3e943b3a042d9a2d96efc21aed1067da7da41b0a4e3c9e19a3b4
-size 807913
+oid sha256:686c671b668da4ec57064f4137bb36aecf0d14a457ab50fd985cb4374e3a12ed
+size 808047
diff --git a/lib/search/indexes/github-docs-3.2-ja.json.br b/lib/search/indexes/github-docs-3.2-ja.json.br
index 6a94ef0a74..3127f8235b 100644
--- a/lib/search/indexes/github-docs-3.2-ja.json.br
+++ b/lib/search/indexes/github-docs-3.2-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bd1330a276b33d01042a577c763981d7bfefb290675e5744fa1786b236a44d4d
-size 4445432
+oid sha256:c98f73aef92e810ed88432c5e404bf709e85da7005f6603adcadad4ec504ca5c
+size 4445233
diff --git a/lib/search/indexes/github-docs-3.2-pt-records.json.br b/lib/search/indexes/github-docs-3.2-pt-records.json.br
index 9562b852e5..585e75f928 100644
--- a/lib/search/indexes/github-docs-3.2-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.2-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c9ce040190706cd1721a6386113d8b81db477b1f723f5ff7c02458e04f7b2c16
-size 722246
+oid sha256:c3f9ba291e37695be414bb189cc0dfcd15a1209d9427def0e58a6f3cd230398b
+size 722448
diff --git a/lib/search/indexes/github-docs-3.2-pt.json.br b/lib/search/indexes/github-docs-3.2-pt.json.br
index 2c7e7ad22c..1d36ab590a 100644
--- a/lib/search/indexes/github-docs-3.2-pt.json.br
+++ b/lib/search/indexes/github-docs-3.2-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:23f6a7f6f41697cccb8a0b113a4acb009a5f5436713f8a2148d0c847ad41e5ec
-size 3027533
+oid sha256:72cf60a1bc0f1364ad9d1bb47ed7b4009849093cacc0916c15ffe518bc114187
+size 3028070
diff --git a/lib/search/indexes/github-docs-3.3-cn-records.json.br b/lib/search/indexes/github-docs-3.3-cn-records.json.br
index b02251de31..464f148e77 100644
--- a/lib/search/indexes/github-docs-3.3-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.3-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5bd8c26704036bae59c19d126d26b5a4f348980fcc6573e08557277a2235ee3e
-size 819696
+oid sha256:13871aa7b8af6ade7b2f4882f0a109b96dc3318779dc861382edb04d61518661
+size 819505
diff --git a/lib/search/indexes/github-docs-3.3-cn.json.br b/lib/search/indexes/github-docs-3.3-cn.json.br
index 496b45f971..1d2b480fc2 100644
--- a/lib/search/indexes/github-docs-3.3-cn.json.br
+++ b/lib/search/indexes/github-docs-3.3-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:18db234bc0828dffca4bf08cc90fb612b344ad9d1dee86cb6c0da35e523c9e65
-size 1684323
+oid sha256:e08f3c889477dcc7e1bab361bde1569c126a5395f5aad29c3bca6c56728f59d8
+size 1685223
diff --git a/lib/search/indexes/github-docs-3.3-en-records.json.br b/lib/search/indexes/github-docs-3.3-en-records.json.br
index 5f9abc41d4..d00d0d44a8 100644
--- a/lib/search/indexes/github-docs-3.3-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.3-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c3a174d10c12a55472e4903bd0e29c88ce24af5f15c61bf35a79a118309b24c2
-size 1124343
+oid sha256:2b96ac0c35d35d12df0af45021361803ee45b4d1980f89c40ebad05e2872eb7b
+size 1125312
diff --git a/lib/search/indexes/github-docs-3.3-en.json.br b/lib/search/indexes/github-docs-3.3-en.json.br
index 66061e3bc7..e995edf447 100644
--- a/lib/search/indexes/github-docs-3.3-en.json.br
+++ b/lib/search/indexes/github-docs-3.3-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ac95cec5e119fa56de3dcd8125da659d8467d25641667686fe78a07f35764460
-size 4521313
+oid sha256:9aa739b63d0c1a7ce9c267f1d8612d3d577d014e96665bb7568ae6c3461a9527
+size 4526936
diff --git a/lib/search/indexes/github-docs-3.3-es-records.json.br b/lib/search/indexes/github-docs-3.3-es-records.json.br
index 21dd59a9fe..6b83d7dedb 100644
--- a/lib/search/indexes/github-docs-3.3-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.3-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d6e9fe363564ae34936abd64a71032abd12ffd92b2f39e3f7079fec7c406a627
-size 755013
+oid sha256:65aeff420badcc1c9b86bbeebfd1ea10d2b2068b05617bc414d51797de04e710
+size 754779
diff --git a/lib/search/indexes/github-docs-3.3-es.json.br b/lib/search/indexes/github-docs-3.3-es.json.br
index c5e0038aeb..eef12108a2 100644
--- a/lib/search/indexes/github-docs-3.3-es.json.br
+++ b/lib/search/indexes/github-docs-3.3-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b6ec83391ecb80d65bcb0f3f38fd02e4d554dd656fea851afc31595b25bb10ef
-size 3217548
+oid sha256:e42dbc34ff84069692559cc61fc6afbcb7e81bdc3e321ea1b102fac90600604f
+size 3211374
diff --git a/lib/search/indexes/github-docs-3.3-ja-records.json.br b/lib/search/indexes/github-docs-3.3-ja-records.json.br
index cdc8d0e982..7dad1bef17 100644
--- a/lib/search/indexes/github-docs-3.3-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.3-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:88951bf1586fc18f70efc85b5b443f3a056e4672308a047cbdd20ca8069b5870
-size 833709
+oid sha256:a446c5e8f4859cbd7421dee460b3e7b3e29bc8361d58705e30f8fc5ae28bc5be
+size 833751
diff --git a/lib/search/indexes/github-docs-3.3-ja.json.br b/lib/search/indexes/github-docs-3.3-ja.json.br
index 5302111d45..36703443bd 100644
--- a/lib/search/indexes/github-docs-3.3-ja.json.br
+++ b/lib/search/indexes/github-docs-3.3-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b85a619b5fde2151567a9a7374c7ee6d7e67b17edec21d14add2dcc563ee1521
-size 4581817
+oid sha256:e9c6bff08d48a0cbcc60c6810f9e2aba681e8936855697964c9a3a8ad0c8c926
+size 4581068
diff --git a/lib/search/indexes/github-docs-3.3-pt-records.json.br b/lib/search/indexes/github-docs-3.3-pt-records.json.br
index ae80c06630..30d943f83d 100644
--- a/lib/search/indexes/github-docs-3.3-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.3-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:335e583dc343fdbd43b0cf373e954df54370ff685d42bdcb5dcb4ee7ca47938a
-size 743782
+oid sha256:25cd357ad40337fdb1bdf3825d192ef3d62fef2cdd0ad0cf1905478418c0b48b
+size 744053
diff --git a/lib/search/indexes/github-docs-3.3-pt.json.br b/lib/search/indexes/github-docs-3.3-pt.json.br
index ffe7f9328b..0388b7af22 100644
--- a/lib/search/indexes/github-docs-3.3-pt.json.br
+++ b/lib/search/indexes/github-docs-3.3-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d9ec27f299196c50f4059172bc54cb248fc0056380c031d4b813cfb52cc5cfc7
-size 3113575
+oid sha256:61d90a76cc110074a85c6182ee7328a19784f84b1df255ab65e3d5c8086459bc
+size 3113640
diff --git a/lib/search/indexes/github-docs-3.4-cn-records.json.br b/lib/search/indexes/github-docs-3.4-cn-records.json.br
index c90d8e5c58..ae4ff7f092 100644
--- a/lib/search/indexes/github-docs-3.4-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.4-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:23b05992b823957207665db965adcc7eef5eed99e564d37f48b4aa3454bf6a05
-size 822177
+oid sha256:0486c75b2ffca786a44cde314cf62e6441d3c2dfa0b87f338d2b3e83b9f0ce29
+size 822327
diff --git a/lib/search/indexes/github-docs-3.4-cn.json.br b/lib/search/indexes/github-docs-3.4-cn.json.br
index 51f3c0315f..4b6a325a47 100644
--- a/lib/search/indexes/github-docs-3.4-cn.json.br
+++ b/lib/search/indexes/github-docs-3.4-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d27f6b397a434082a0a14971b22f1b5867fdc2459722ed63c34f21222faae1b5
-size 1699319
+oid sha256:f85ff528a03f7d2ede0738eea7510911c37290bfc876cc572b4aaf2124965fe8
+size 1700494
diff --git a/lib/search/indexes/github-docs-3.4-en-records.json.br b/lib/search/indexes/github-docs-3.4-en-records.json.br
index 581d461e54..c5abcd48f0 100644
--- a/lib/search/indexes/github-docs-3.4-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.4-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2de84b5e7ebd3a5007b825630e2f34e1d40748ac13862556d94f846306583197
-size 1135180
+oid sha256:19776b292f46ed4635813b4292ede933eb33b991d13ee4de5e5a5164016c3c51
+size 1136278
diff --git a/lib/search/indexes/github-docs-3.4-en.json.br b/lib/search/indexes/github-docs-3.4-en.json.br
index f6f12cfa93..f4d06e4530 100644
--- a/lib/search/indexes/github-docs-3.4-en.json.br
+++ b/lib/search/indexes/github-docs-3.4-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5365f5e01a654d1475c24d05f84e69d3c706711bf576d24fc94853e97c8a586d
-size 4578320
+oid sha256:4a636a4aa23fb0cfb594443153a5528ebd103182c642520ce6112b893daf36c3
+size 4582795
diff --git a/lib/search/indexes/github-docs-3.4-es-records.json.br b/lib/search/indexes/github-docs-3.4-es-records.json.br
index 615bd6e4eb..69448ed991 100644
--- a/lib/search/indexes/github-docs-3.4-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.4-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5e604fe693e307708146108a865c5654bf3d328f9351b63d9b75b1ab36a78686
-size 759350
+oid sha256:047f077dc6caa151c3ccb5535e4f6806b84b9bbf53d01697e1b769d591a421f0
+size 759257
diff --git a/lib/search/indexes/github-docs-3.4-es.json.br b/lib/search/indexes/github-docs-3.4-es.json.br
index 2c1f055cba..5e104d69c5 100644
--- a/lib/search/indexes/github-docs-3.4-es.json.br
+++ b/lib/search/indexes/github-docs-3.4-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e0d3f4a89a5184f9a496aa8fe82df7d74103a6aeb7788e71642ee4b0ff90b574
-size 3239562
+oid sha256:a7a6aa0de87462b2bd8568cd96a239e9ec735b4574014625886c52f8f8e11cb4
+size 3234429
diff --git a/lib/search/indexes/github-docs-3.4-ja-records.json.br b/lib/search/indexes/github-docs-3.4-ja-records.json.br
index 1ef52c03db..b73c2a8bfd 100644
--- a/lib/search/indexes/github-docs-3.4-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.4-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:64e4f6a3e6bb96e59f8ade00bc05ec6d06bf836941686b740d6e4eb57792b8cb
-size 836633
+oid sha256:979aa3f03548a2e85554be00efbabfe71e05cb885a87af1be49952e77840948e
+size 836807
diff --git a/lib/search/indexes/github-docs-3.4-ja.json.br b/lib/search/indexes/github-docs-3.4-ja.json.br
index 78da0f5c54..edb91c96ad 100644
--- a/lib/search/indexes/github-docs-3.4-ja.json.br
+++ b/lib/search/indexes/github-docs-3.4-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4a3893d0f0f3ad76839c5c03dc1e6eaeedfd2108f223fea5ddfeca4199d0a9e5
-size 4616463
+oid sha256:f64387bba1e6087c1adead30b53a7c2c9d8cd67ab06cfc506e60440611be4a0d
+size 4616162
diff --git a/lib/search/indexes/github-docs-3.4-pt-records.json.br b/lib/search/indexes/github-docs-3.4-pt-records.json.br
index d1046c54b8..014e86db88 100644
--- a/lib/search/indexes/github-docs-3.4-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.4-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ce38e402e5b71812deeff53863f7f073511ec348ea55fd8b589da6a043764edb
-size 747862
+oid sha256:2a8e5a8f0cc58cf82db3c66bd318dc4d35d5db3aab5d67160e8fe41c8da26b70
+size 747972
diff --git a/lib/search/indexes/github-docs-3.4-pt.json.br b/lib/search/indexes/github-docs-3.4-pt.json.br
index 3a3e7ba493..2720cc827e 100644
--- a/lib/search/indexes/github-docs-3.4-pt.json.br
+++ b/lib/search/indexes/github-docs-3.4-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1668b48569c80d0c9935481a96a4d536c0eeb981e38dcdb69d48168d368ad20c
-size 3136751
+oid sha256:19604d4ec04e64614ae539f258c525d78ac64f75a2005bc4b93867fdc93b174b
+size 3137121
diff --git a/lib/search/indexes/github-docs-3.5-cn-records.json.br b/lib/search/indexes/github-docs-3.5-cn-records.json.br
index 60f4503d19..177ae072ad 100644
--- a/lib/search/indexes/github-docs-3.5-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.5-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:62ae6e5867dd441d6393c7edcf28b5661bfd19bc761e8845999ace814bdda2dd
-size 851611
+oid sha256:2f04a47adbefb27f1a58a9118803587d3b8e933cea789c21bd775d6a43942098
+size 851678
diff --git a/lib/search/indexes/github-docs-3.5-cn.json.br b/lib/search/indexes/github-docs-3.5-cn.json.br
index 7603b9a6fe..0ec508b4f5 100644
--- a/lib/search/indexes/github-docs-3.5-cn.json.br
+++ b/lib/search/indexes/github-docs-3.5-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b032f49be7ee9621fb8c5b00b7acb904fe82f2a7068a6897a70f8cfeff1ecc36
-size 1759626
+oid sha256:8f4a97a4e3c443ab8d1b3b790c62fa376c607b72ff98e3fad11cedf411dba48c
+size 1760094
diff --git a/lib/search/indexes/github-docs-3.5-en-records.json.br b/lib/search/indexes/github-docs-3.5-en-records.json.br
index c2b932f1a7..adcd5ddef0 100644
--- a/lib/search/indexes/github-docs-3.5-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.5-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8fb1718415ffe38c35b5656d7b8705568139171a0f8c65da1c3b56febaad693c
-size 1174136
+oid sha256:2213aa656c4a59c77fe6ef9bac7ac208bd81ea63c9a5b190e58513fb872416bd
+size 1174892
diff --git a/lib/search/indexes/github-docs-3.5-en.json.br b/lib/search/indexes/github-docs-3.5-en.json.br
index f75504a9ff..fc330d1666 100644
--- a/lib/search/indexes/github-docs-3.5-en.json.br
+++ b/lib/search/indexes/github-docs-3.5-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:743c083d827e9155acfe32e04a3dac488ce202cd97730006b1e0945ffed4a458
-size 4736764
+oid sha256:6c3b9461a8f05e0435e1267bce6ecf003de110109ad6da64a09a1e81673c45c0
+size 4743174
diff --git a/lib/search/indexes/github-docs-3.5-es-records.json.br b/lib/search/indexes/github-docs-3.5-es-records.json.br
index 22b6d91b2d..e17086b525 100644
--- a/lib/search/indexes/github-docs-3.5-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.5-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f8dbc2361b75dc43a18b7e4e6279c1b485f12615d17c6181b195e43bb851472c
-size 782570
+oid sha256:9ea69ca73358e743aa670d9158922d9cc0c0d3b64e38a7cb80ae92d72e24a593
+size 782408
diff --git a/lib/search/indexes/github-docs-3.5-es.json.br b/lib/search/indexes/github-docs-3.5-es.json.br
index 37c9f73a58..1eaa86483d 100644
--- a/lib/search/indexes/github-docs-3.5-es.json.br
+++ b/lib/search/indexes/github-docs-3.5-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ec7040398feec5d3cb3d6f0a0c13093c6e89d9be2d025d1c1940a70dcfe59e9d
-size 3354146
+oid sha256:96b99377326cf634898e604645db3f43141068ee2012ba362a0ebd16beff5af3
+size 3346940
diff --git a/lib/search/indexes/github-docs-3.5-ja-records.json.br b/lib/search/indexes/github-docs-3.5-ja-records.json.br
index 62b86434b7..0c9a8ae6e3 100644
--- a/lib/search/indexes/github-docs-3.5-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.5-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c507bf88e06a496f157e20d22a49c7a10652c14d9bab74b81db523eccedef5be
-size 863971
+oid sha256:259cc2d322342d8ca81218328b2ef5e4d1f52e9b6b898d82a354c3c502eebb05
+size 864017
diff --git a/lib/search/indexes/github-docs-3.5-ja.json.br b/lib/search/indexes/github-docs-3.5-ja.json.br
index 6ef7deb252..f2bb581593 100644
--- a/lib/search/indexes/github-docs-3.5-ja.json.br
+++ b/lib/search/indexes/github-docs-3.5-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b14c906bcfd4728a0ea9886e64a47e98062b0b4d5d107e01c50de7c0f6529bf4
-size 4780237
+oid sha256:0ba54be9f59fd1336a3b4f6ea9158657b6d5897ba8ab190a69ca4c276fcffb88
+size 4779717
diff --git a/lib/search/indexes/github-docs-3.5-pt-records.json.br b/lib/search/indexes/github-docs-3.5-pt-records.json.br
index 153b5fa81c..b4d507573d 100644
--- a/lib/search/indexes/github-docs-3.5-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.5-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:08e87f73971ebde3a1d09c1acb4be6cb13be6b1701ee1f97e7214fa5847dead0
-size 770697
+oid sha256:de8f53552f2f728195617259da7b3cba78fe5f775a91c2d0ab9147685520bb7f
+size 770814
diff --git a/lib/search/indexes/github-docs-3.5-pt.json.br b/lib/search/indexes/github-docs-3.5-pt.json.br
index 4e98c762f9..7efd494fb3 100644
--- a/lib/search/indexes/github-docs-3.5-pt.json.br
+++ b/lib/search/indexes/github-docs-3.5-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1da56463d8650a188acd4f3eae1866762f242f49231931ac0d60c4a261e8b5c6
-size 3246942
+oid sha256:0688811b6cd30c758789e79fab00c0687143d4c354178a4e6c4d63085db1e8a2
+size 3247698
diff --git a/lib/search/indexes/github-docs-3.6-cn-records.json.br b/lib/search/indexes/github-docs-3.6-cn-records.json.br
index fcefa08d4b..6cd009b817 100644
--- a/lib/search/indexes/github-docs-3.6-cn-records.json.br
+++ b/lib/search/indexes/github-docs-3.6-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a08c68cc86cc6a5c27080e69884453e5475b882714a29b50fbb4d67d074adf28
-size 874505
+oid sha256:0fc8a78b0bef1b255a63afe2da2ec793c427067800a5f8807a419b591647537a
+size 874508
diff --git a/lib/search/indexes/github-docs-3.6-cn.json.br b/lib/search/indexes/github-docs-3.6-cn.json.br
index 7860a373f3..648ec2f85e 100644
--- a/lib/search/indexes/github-docs-3.6-cn.json.br
+++ b/lib/search/indexes/github-docs-3.6-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c9b1b4906f1d497610f266cc8ed1b5c0363c20098c13486c53cda518c0b40a3d
-size 1807571
+oid sha256:a611da027c2987424b267cf7da9a2283ee13717bf781bf8913da84fe01f391df
+size 1808507
diff --git a/lib/search/indexes/github-docs-3.6-en-records.json.br b/lib/search/indexes/github-docs-3.6-en-records.json.br
index 4c409d1ad0..35eaaa3f2f 100644
--- a/lib/search/indexes/github-docs-3.6-en-records.json.br
+++ b/lib/search/indexes/github-docs-3.6-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:508d13d8ba53eb0fabffeca03a9e4b3dc460aa688996a740e93061c4eab743c2
-size 1202807
+oid sha256:8338e0bffb8ad074cd08abd358f6684b32605c0185c6207ad3a135e58cb139de
+size 1203521
diff --git a/lib/search/indexes/github-docs-3.6-en.json.br b/lib/search/indexes/github-docs-3.6-en.json.br
index afd4a31c30..44b31433f1 100644
--- a/lib/search/indexes/github-docs-3.6-en.json.br
+++ b/lib/search/indexes/github-docs-3.6-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f50c7359248b8dfccb716b7eedccc5e29c48c138a78b993a4902530dec26d5d4
-size 4852404
+oid sha256:c15f2b4711ab328f64d072eaff3092bcf19d3d28a852a1e0f1b2ccba69b5409e
+size 4857297
diff --git a/lib/search/indexes/github-docs-3.6-es-records.json.br b/lib/search/indexes/github-docs-3.6-es-records.json.br
index bf6ddca192..0553fa83aa 100644
--- a/lib/search/indexes/github-docs-3.6-es-records.json.br
+++ b/lib/search/indexes/github-docs-3.6-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:61857c48d92589ded99a3fe5e6529b116cd20b53107283f5d0d84523be435b2e
-size 803088
+oid sha256:933af3c63122c7b3c7288852036a1796f2f3ca693a4fb605499bf33d81bc3a47
+size 802723
diff --git a/lib/search/indexes/github-docs-3.6-es.json.br b/lib/search/indexes/github-docs-3.6-es.json.br
index 5ec1a8a9fd..ef66f907c0 100644
--- a/lib/search/indexes/github-docs-3.6-es.json.br
+++ b/lib/search/indexes/github-docs-3.6-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f736851b743c7e1c41d710ca60ad5b6d14a7b19c5fe5c78d856bb4eecb32bc6c
-size 3451885
+oid sha256:74829bcbe8505e9eff2cb711533a044ec7e436ac8d6a9de9959533dc14b537ae
+size 3445651
diff --git a/lib/search/indexes/github-docs-3.6-ja-records.json.br b/lib/search/indexes/github-docs-3.6-ja-records.json.br
index bcd3e37fb1..e7d73e924f 100644
--- a/lib/search/indexes/github-docs-3.6-ja-records.json.br
+++ b/lib/search/indexes/github-docs-3.6-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:babe221a8fc95bda88185d162cd6639099d4765d505d8f89bb0b61719998f8f7
-size 886560
+oid sha256:951939884394b7585d597598e6e538bfd95bb6e7ed8501d501b6aa5b4a01cbd1
+size 886608
diff --git a/lib/search/indexes/github-docs-3.6-ja.json.br b/lib/search/indexes/github-docs-3.6-ja.json.br
index 75f52796c0..c9d7986dd2 100644
--- a/lib/search/indexes/github-docs-3.6-ja.json.br
+++ b/lib/search/indexes/github-docs-3.6-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:aab8388e0c5807390ffc46eae3c61c62d5ddd87cd5d5713ed0f82f1696a0af65
-size 4911859
+oid sha256:d8f15833d68f0eca6bd9b8a4f1bcd10f3353b3cd4588e9d3a04aea73eb44b740
+size 4911960
diff --git a/lib/search/indexes/github-docs-3.6-pt-records.json.br b/lib/search/indexes/github-docs-3.6-pt-records.json.br
index 6869794c3a..79972238e4 100644
--- a/lib/search/indexes/github-docs-3.6-pt-records.json.br
+++ b/lib/search/indexes/github-docs-3.6-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8ec2b71d094f418e311101866d168c97fbf13e82ae8171a93d7da7fd661dad19
-size 791430
+oid sha256:a1e16f15a4ab885df58751e40e183c9092fd723dccb92d95d703150cfc40ce96
+size 791465
diff --git a/lib/search/indexes/github-docs-3.6-pt.json.br b/lib/search/indexes/github-docs-3.6-pt.json.br
index fd28928243..407e2c2717 100644
--- a/lib/search/indexes/github-docs-3.6-pt.json.br
+++ b/lib/search/indexes/github-docs-3.6-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:dd4cba30e797a56d9aa382792dbf83d74a0891501ec18e5b59864aa143d21a02
-size 3342763
+oid sha256:50f84a6caec684973815bd6a3b041efafc06eff64c144749c22596d201821a86
+size 3342729
diff --git a/lib/search/indexes/github-docs-dotcom-cn-records.json.br b/lib/search/indexes/github-docs-dotcom-cn-records.json.br
index f413a9babe..a05151a92f 100644
--- a/lib/search/indexes/github-docs-dotcom-cn-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7c4002bb3a3367941fc2e97cc784e443c8b3a6e90fb2a4991dfce7f784dbc183
-size 1036113
+oid sha256:aa63a9369d6eef7bb27466fc03755504ad5c111e5ed4a1d427be02e9b1c640ac
+size 1036122
diff --git a/lib/search/indexes/github-docs-dotcom-cn.json.br b/lib/search/indexes/github-docs-dotcom-cn.json.br
index 141e7bc4d8..3bf09d7d26 100644
--- a/lib/search/indexes/github-docs-dotcom-cn.json.br
+++ b/lib/search/indexes/github-docs-dotcom-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:475e2e816bd8d6a63ecce6712cdfc6bc563c55e5dd3561c150524d009e12f594
-size 1841960
+oid sha256:7835f381f892c4857790adfd1de025cc852ca3906d382fd1f32070c29f6923f6
+size 1845851
diff --git a/lib/search/indexes/github-docs-dotcom-en-records.json.br b/lib/search/indexes/github-docs-dotcom-en-records.json.br
index d26db70fe0..bf721abad9 100644
--- a/lib/search/indexes/github-docs-dotcom-en-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7ea944c6877de227db1bbd0a900669602d0b65a700b3decd149e971bb14aa0c2
-size 1445316
+oid sha256:7830082f91340100bcd0bd8e305d5d5fa641cc29958671406b3d8149fdfbc20b
+size 1446841
diff --git a/lib/search/indexes/github-docs-dotcom-en.json.br b/lib/search/indexes/github-docs-dotcom-en.json.br
index 208502779a..75a46db340 100644
--- a/lib/search/indexes/github-docs-dotcom-en.json.br
+++ b/lib/search/indexes/github-docs-dotcom-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c11daa836e0ef6cc99b3b08e68ab48a0b95ce92171e33fa077b3cbc81fdc402c
-size 5568416
+oid sha256:8df64377e3af7c3c945225d1b66cfd92809abfb78bf3b13ec83797e34cf4d546
+size 5573772
diff --git a/lib/search/indexes/github-docs-dotcom-es-records.json.br b/lib/search/indexes/github-docs-dotcom-es-records.json.br
index 74422c3d57..71a84c9529 100644
--- a/lib/search/indexes/github-docs-dotcom-es-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b0f5b18ed45e510c9c64c9628f520ea80840af12a405e1a6a495d58d5fe4ee60
-size 934135
+oid sha256:573774bdbc2d95e102b9af2373c339237c2e5f11b2ba19903cb4197199cddedb
+size 934024
diff --git a/lib/search/indexes/github-docs-dotcom-es.json.br b/lib/search/indexes/github-docs-dotcom-es.json.br
index d21d632d8b..b18c6510ce 100644
--- a/lib/search/indexes/github-docs-dotcom-es.json.br
+++ b/lib/search/indexes/github-docs-dotcom-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:294e58d515c2883c79daa5ece957000c946329f79390ef5c74e981f525d23094
-size 3885546
+oid sha256:9f99e3a6ade958af31916e22219023aa7aea1e46440f41064840956eaf0f71d9
+size 3877640
diff --git a/lib/search/indexes/github-docs-dotcom-ja-records.json.br b/lib/search/indexes/github-docs-dotcom-ja-records.json.br
index afe95cb3fe..63e898ce53 100644
--- a/lib/search/indexes/github-docs-dotcom-ja-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:21e8bcdf90c31530e5c961308383603bcfc3768041a5869f35a26eaca66851c9
-size 1042504
+oid sha256:8779b596d396b5f30b77f83a9cae305c243bfb17f5b7bfc08b497946a2c95d12
+size 1042584
diff --git a/lib/search/indexes/github-docs-dotcom-ja.json.br b/lib/search/indexes/github-docs-dotcom-ja.json.br
index eabaa84376..16ef7854e9 100644
--- a/lib/search/indexes/github-docs-dotcom-ja.json.br
+++ b/lib/search/indexes/github-docs-dotcom-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c8568c7ce9ac06a4e2dcda0813a1bca89b7438409f2eada4540610dc6375d376
-size 5603150
+oid sha256:70eb9f717597eb3195a636b11f1dadcf965efdfc38398d8f9b8e2cf41831a289
+size 5603781
diff --git a/lib/search/indexes/github-docs-dotcom-pt-records.json.br b/lib/search/indexes/github-docs-dotcom-pt-records.json.br
index fccbe59d8d..899b3b2aa7 100644
--- a/lib/search/indexes/github-docs-dotcom-pt-records.json.br
+++ b/lib/search/indexes/github-docs-dotcom-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ad89e256214fe9d652207cc8218e3d1dd33a679245a49935a566de647c1aba56
-size 923302
+oid sha256:bcc6a28e5b8c806993574642fbc552fc302d293005edbad7774337f2909e7b94
+size 923303
diff --git a/lib/search/indexes/github-docs-dotcom-pt.json.br b/lib/search/indexes/github-docs-dotcom-pt.json.br
index c432a4277e..b65786f8ce 100644
--- a/lib/search/indexes/github-docs-dotcom-pt.json.br
+++ b/lib/search/indexes/github-docs-dotcom-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a3531bd196e679aa8eac4156c9ced5f702ec526b07214ba25b7b8a3a552cb9e6
-size 3800584
+oid sha256:dde8dbe8afad82e5c517236fc0e1bd60c9768ec29e27926d8195bf32614c78db
+size 3800809
diff --git a/lib/search/indexes/github-docs-ghae-cn-records.json.br b/lib/search/indexes/github-docs-ghae-cn-records.json.br
index c34289f9ce..a5d748fc70 100644
--- a/lib/search/indexes/github-docs-ghae-cn-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a7540f3cb2398168ded1a94f83199c5e97bfac9c1a98c35049bc3f13b258fb1f
-size 659211
+oid sha256:bfe9de5d45052b80eed5d416d3e834cb8511890f95d32deb1c1c662dd7dba6f9
+size 659486
diff --git a/lib/search/indexes/github-docs-ghae-cn.json.br b/lib/search/indexes/github-docs-ghae-cn.json.br
index 94c341252e..c37a875971 100644
--- a/lib/search/indexes/github-docs-ghae-cn.json.br
+++ b/lib/search/indexes/github-docs-ghae-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:79705db652382169111040119b71a00b17744c33cda560137868753518fea374
-size 1311052
+oid sha256:c4400c4545c8f7a9474baecfd979f51392852d0632797536e85161492340b4bd
+size 1310985
diff --git a/lib/search/indexes/github-docs-ghae-en-records.json.br b/lib/search/indexes/github-docs-ghae-en-records.json.br
index 1a8bf9523c..e67f0bba1e 100644
--- a/lib/search/indexes/github-docs-ghae-en-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e9054163a223275a7cb828d7fa7e192be67ccafdc2630af0b438ca98ea716d99
-size 932345
+oid sha256:5ee15ca9da9e0e5cf721db30cc249a9f9240ac54cdc2a314de42ae176db46b66
+size 933414
diff --git a/lib/search/indexes/github-docs-ghae-en.json.br b/lib/search/indexes/github-docs-ghae-en.json.br
index 0cb029e759..1fe3045fcd 100644
--- a/lib/search/indexes/github-docs-ghae-en.json.br
+++ b/lib/search/indexes/github-docs-ghae-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:481008b9e2dfaee5de9a2c462af9cbcc1e173ee2e62f9a6588b75c6de278f8ab
-size 3696604
+oid sha256:8c2765b1069d8a4bf765aecd07b14077aca1a1ac9ba5c1463fbff2fa50b1eb75
+size 3702602
diff --git a/lib/search/indexes/github-docs-ghae-es-records.json.br b/lib/search/indexes/github-docs-ghae-es-records.json.br
index 760735a670..b17a42f421 100644
--- a/lib/search/indexes/github-docs-ghae-es-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c98a5626db824b00b210ad23c14d42ee4222b7a59f82468830b6d539e03c405a
-size 613264
+oid sha256:a51ce51083a261d5b943ca7011101f5b6c8f0664c16027f969c2748e110f98f5
+size 613188
diff --git a/lib/search/indexes/github-docs-ghae-es.json.br b/lib/search/indexes/github-docs-ghae-es.json.br
index 34a38893e3..588ae4d2fb 100644
--- a/lib/search/indexes/github-docs-ghae-es.json.br
+++ b/lib/search/indexes/github-docs-ghae-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:59b8f3862467169301c17f1314a42a4eb40ef164204f86681d6713e33d089ada
-size 2536962
+oid sha256:e8192240a9a9eee1b8c7845f3a586a1b0e3268b027d4acc6eb5f5cde02b9c95a
+size 2530982
diff --git a/lib/search/indexes/github-docs-ghae-ja-records.json.br b/lib/search/indexes/github-docs-ghae-ja-records.json.br
index 78a2bd19c5..1c387ef459 100644
--- a/lib/search/indexes/github-docs-ghae-ja-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2e44debc7479b54e6a1ebfc37ea577908bdbd52149d0277bc0704d2fd6130a41
-size 672338
+oid sha256:528cee4d4ba9610c4979ab51e709b2b49bdbc069bc74137b8ec4a7638db57bd0
+size 672493
diff --git a/lib/search/indexes/github-docs-ghae-ja.json.br b/lib/search/indexes/github-docs-ghae-ja.json.br
index 704696f59c..5cb2997242 100644
--- a/lib/search/indexes/github-docs-ghae-ja.json.br
+++ b/lib/search/indexes/github-docs-ghae-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:10d96e7c258fd606a180638d5b5d6289b5787333929f6b1b1ae2b62622d3cac4
-size 3597717
+oid sha256:173bddbd7e8f007e6d17dabf7dee6ffafb564330bd4ca281bb4495c7a4b3d27e
+size 3597350
diff --git a/lib/search/indexes/github-docs-ghae-pt-records.json.br b/lib/search/indexes/github-docs-ghae-pt-records.json.br
index 203dfc5334..ef573fca4d 100644
--- a/lib/search/indexes/github-docs-ghae-pt-records.json.br
+++ b/lib/search/indexes/github-docs-ghae-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a53b273b1b7c4ecd17cb99760624fd40c9802563d0650d40efd64af2f3ed9ddc
-size 604239
+oid sha256:7780e8059ef6b3198a0812a54cd95750f359eafe391258b57f8d855769707e7f
+size 604371
diff --git a/lib/search/indexes/github-docs-ghae-pt.json.br b/lib/search/indexes/github-docs-ghae-pt.json.br
index f4c8f315f3..48d5db7a90 100644
--- a/lib/search/indexes/github-docs-ghae-pt.json.br
+++ b/lib/search/indexes/github-docs-ghae-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4c86353936b741d550e3bd7481b5135306e5d9c8d58c0b915a679d283f84414c
-size 2434305
+oid sha256:5b0b190366d4b877e797e7458825190a5ed8c7fd770b628170a7b01f144147a0
+size 2434775
diff --git a/lib/search/indexes/github-docs-ghec-cn-records.json.br b/lib/search/indexes/github-docs-ghec-cn-records.json.br
index 5f5429b38c..6639e73728 100644
--- a/lib/search/indexes/github-docs-ghec-cn-records.json.br
+++ b/lib/search/indexes/github-docs-ghec-cn-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8755c23ab048a89d407c75647c228ccb788cce36b0ed25888990e3708c20c2f8
-size 1005383
+oid sha256:2b3374254d547f351484bf10dc1cda1b0f5623fe67ee0ef1d4a07053a548bd8c
+size 1006326
diff --git a/lib/search/indexes/github-docs-ghec-cn.json.br b/lib/search/indexes/github-docs-ghec-cn.json.br
index 431d6e265f..a59be122fe 100644
--- a/lib/search/indexes/github-docs-ghec-cn.json.br
+++ b/lib/search/indexes/github-docs-ghec-cn.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:433c3374b2a17945dfa844ab065514b3a3f557c02281acb96b6b9b595aa6d41c
-size 1964883
+oid sha256:fd3afb8d638f9d20b16d62eac0f9386a8b8e1f9ab4547ff3f7206bef0fe90154
+size 1971229
diff --git a/lib/search/indexes/github-docs-ghec-en-records.json.br b/lib/search/indexes/github-docs-ghec-en-records.json.br
index b07d5ec446..9d5447d991 100644
--- a/lib/search/indexes/github-docs-ghec-en-records.json.br
+++ b/lib/search/indexes/github-docs-ghec-en-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9e32ad50465c9d4fb1213924f3c70db366246a8aac73caf825b2f49e0dacb9e3
-size 1371786
+oid sha256:2010ee4b156a692d447b6fcd802c1dc89b8b5e8c9b69c679c7db60f211e179f0
+size 1378305
diff --git a/lib/search/indexes/github-docs-ghec-en.json.br b/lib/search/indexes/github-docs-ghec-en.json.br
index ebb6753aa7..361a111f05 100644
--- a/lib/search/indexes/github-docs-ghec-en.json.br
+++ b/lib/search/indexes/github-docs-ghec-en.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ad041bc6c2d856d2884153b9fcd57d041ad5d2f0c3ef4dd40b58db14a4f4e849
-size 5570755
+oid sha256:12452e21aeeaf27295eeefa1c8755b9323c4c20a4a19770ac4708deb2589d54f
+size 5577253
diff --git a/lib/search/indexes/github-docs-ghec-es-records.json.br b/lib/search/indexes/github-docs-ghec-es-records.json.br
index c6a8a1ed9e..5786f63ec6 100644
--- a/lib/search/indexes/github-docs-ghec-es-records.json.br
+++ b/lib/search/indexes/github-docs-ghec-es-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e92fda231e3dc8fa0be129d0e6ac8e1f43fd508bf86b742815761bf597dc7849
-size 930820
+oid sha256:226ab88d75685b35e79b51bf93562384b4cbd21c58c0a0f7c8dd23842d67a220
+size 930918
diff --git a/lib/search/indexes/github-docs-ghec-es.json.br b/lib/search/indexes/github-docs-ghec-es.json.br
index 797e533fb5..a2f6ba71d8 100644
--- a/lib/search/indexes/github-docs-ghec-es.json.br
+++ b/lib/search/indexes/github-docs-ghec-es.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a499c3cd9df467d8d16f54df090cdb8ee8544bc177962edb93f76a32b8b40c83
-size 4018509
+oid sha256:ac11f6fc11e94310f8d3c326c9a4988330bf607b7931eda0c2182c04ecca0d53
+size 4013596
diff --git a/lib/search/indexes/github-docs-ghec-ja-records.json.br b/lib/search/indexes/github-docs-ghec-ja-records.json.br
index b184909c2d..e8fbbd6c36 100644
--- a/lib/search/indexes/github-docs-ghec-ja-records.json.br
+++ b/lib/search/indexes/github-docs-ghec-ja-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:86ade65c287b63e4f369d20308d2aa3f1673740444a9085d430bf3c1950e45a1
-size 1018007
+oid sha256:9fc9b75e29faa7b7f74a170c595dd5a3d3930c88cf401dbda02a49f7a6eadabf
+size 1018138
diff --git a/lib/search/indexes/github-docs-ghec-ja.json.br b/lib/search/indexes/github-docs-ghec-ja.json.br
index 14ddbffae0..3ad5593944 100644
--- a/lib/search/indexes/github-docs-ghec-ja.json.br
+++ b/lib/search/indexes/github-docs-ghec-ja.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2efb26ad9b3bd50a8407806966100ef2559abe325ea0d58bdde0096ea05466ab
-size 5687125
+oid sha256:9b5db3d84dae503f8a4b4b638e2e0ea9fe99c35e3b3b18c86e01447fafecdd0d
+size 5687603
diff --git a/lib/search/indexes/github-docs-ghec-pt-records.json.br b/lib/search/indexes/github-docs-ghec-pt-records.json.br
index 61ccf0057a..9893f8937f 100644
--- a/lib/search/indexes/github-docs-ghec-pt-records.json.br
+++ b/lib/search/indexes/github-docs-ghec-pt-records.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8ae9368ce26fe54ef810f233c8888dc0943b34def54150d7e69b96fc71cc353f
-size 918751
+oid sha256:94b196422f1ba59ab80e0bf164efe73dfe76cd5dce1c9f95d9e885265a971b95
+size 918906
diff --git a/lib/search/indexes/github-docs-ghec-pt.json.br b/lib/search/indexes/github-docs-ghec-pt.json.br
index 11ac632071..29a03bc710 100644
--- a/lib/search/indexes/github-docs-ghec-pt.json.br
+++ b/lib/search/indexes/github-docs-ghec-pt.json.br
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5c68a894b09026de4450c87814b89c4d59e3b1d10059e5f6f38afb89e617846a
-size 3920019
+oid sha256:852716d5cd809e60d2847a8f2db90fc05b32d07f8397aeba279ba6938d374e0c
+size 3920324
diff --git a/middleware/api/es-search.js b/middleware/api/es-search.js
index f0b31fc0bc..a5e983c814 100644
--- a/middleware/api/es-search.js
+++ b/middleware/api/es-search.js
@@ -123,8 +123,25 @@ export async function getSearchResults({
}
function getMatchQueries(query, { usePrefixSearch, fuzzy }) {
+ const BOOST_PHRASE = 10.0
+ const BOOST_TITLE = 4.0
+ const BOOST_HEADINGS = 3.0
+ const BOOST_CONTENT = 1.0
+ const BOOST_AND = 2.5
+ // Number doesn't matter so much but just make sure it's
+ // boosted low. Because we only really want this to come into
+ // play if nothing else matches. E.g. a search for `Acions`
+ // which wouldn't find anythig else anyway.
+ const BOOST_FUZZY = 0.1
+
const matchQueries = []
- if (query.includes(' ')) {
+
+ // If the query input is multiple words, it's good to know because you can
+ // make the query do `match_phrase` and you can make `match` query
+ // with the `AND` operator (`OR` is the default).
+ const isMultiWordQuery = query.includes(' ') || query.includes('-')
+
+ if (isMultiWordQuery) {
// If the query contains spaces, prioritize a "match phrase" query
// beyond a regular "match" query.
// Basically, that means if you search for 'foo bar' we'd rather
@@ -148,29 +165,38 @@ function getMatchQueries(query, { usePrefixSearch, fuzzy }) {
const matchPhraseStrategy = usePrefixSearch ? 'match_phrase_prefix' : 'match_phrase'
matchQueries.push(
...[
- { [matchPhraseStrategy]: { title: { boost: 20.0, query } } },
- { [matchPhraseStrategy]: { headings: { boost: 6.0, query } } },
- { [matchPhraseStrategy]: { content: { boost: 2.0, query } } },
+ { [matchPhraseStrategy]: { title: { boost: BOOST_PHRASE * BOOST_TITLE, query } } },
+ { [matchPhraseStrategy]: { headings: { boost: BOOST_PHRASE * BOOST_HEADINGS, query } } },
+ { [matchPhraseStrategy]: { content: { boost: BOOST_PHRASE, query } } },
]
)
}
// Unless the query was something like `"foo bar"` search on each word
- if (!(query.includes(' ') && query.startsWith('"') && query.endsWith('"'))) {
- if (usePrefixSearch && !query.includes(' ')) {
+ if (!(isMultiWordQuery && query.startsWith('"') && query.endsWith('"'))) {
+ if (usePrefixSearch && !isMultiWordQuery) {
matchQueries.push(
...[
- { prefix: { title: { boost: 10.0, value: query } } },
- { prefix: { headings: { boost: 3.0, value: query } } },
- { prefix: { content: { boost: 0.5, value: query } } },
+ { prefix: { title: { boost: BOOST_TITLE, value: query } } },
+ { prefix: { headings: { boost: BOOST_HEADINGS, value: query } } },
+ { prefix: { content: { boost: BOOST_CONTENT, value: query } } },
]
)
} else {
+ if (isMultiWordQuery) {
+ matchQueries.push(
+ ...[
+ { match: { title: { boost: BOOST_TITLE * BOOST_AND, query, operator: 'AND' } } },
+ { match: { headings: { boost: BOOST_HEADINGS * BOOST_AND, query, operator: 'AND' } } },
+ { match: { content: { boost: BOOST_CONTENT * BOOST_AND, query, operator: 'AND' } } },
+ ]
+ )
+ }
matchQueries.push(
...[
- { match: { title: { boost: 10.0, query } } },
- { match: { headings: { boost: 3.0, query } } },
- { match: { content: { boost: 0.5, query } } },
+ { match: { title: { boost: BOOST_TITLE, query } } },
+ { match: { headings: { boost: BOOST_HEADINGS, query } } },
+ { match: { content: { boost: BOOST_CONTENT, query } } },
]
)
}
@@ -183,7 +209,7 @@ function getMatchQueries(query, { usePrefixSearch, fuzzy }) {
if (query.length > fuzzy.minLength && query.length < fuzzy.maxLength) {
matchQueries.push({
fuzzy: {
- title: { value: query },
+ title: { value: query, boost: BOOST_FUZZY },
},
})
}
diff --git a/package-lock.json b/package-lock.json
index 46002fd01f..dae40a174b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -109,8 +109,8 @@
"@types/react-dom": "^18.0.5",
"@types/react-syntax-highlighter": "^15.5.2",
"@types/uuid": "^8.3.4",
- "@typescript-eslint/eslint-plugin": "5.30.7",
- "@typescript-eslint/parser": "5.30.7",
+ "@typescript-eslint/eslint-plugin": "5.33.0",
+ "@typescript-eslint/parser": "5.33.0",
"babel-loader": "^8.2.5",
"babel-plugin-styled-components": "^2.0.7",
"babel-preset-env": "^1.7.0",
@@ -121,7 +121,7 @@
"csp-parse": "0.0.2",
"dedent": "^0.7.0",
"domwaiter": "^1.3.0",
- "eslint": "8.20.0",
+ "eslint": "8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
@@ -2195,9 +2195,10 @@
}
},
"node_modules/@humanwhocodes/config-array": {
- "version": "0.9.5",
+ "version": "0.10.4",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz",
+ "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==",
"dev": true,
- "license": "Apache-2.0",
"dependencies": {
"@humanwhocodes/object-schema": "^1.2.1",
"debug": "^4.1.1",
@@ -2209,8 +2210,9 @@
},
"node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": {
"version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
- "license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -2218,8 +2220,9 @@
},
"node_modules/@humanwhocodes/config-array/node_modules/minimatch": {
"version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
- "license": "ISC",
"dependencies": {
"brace-expansion": "^1.1.7"
},
@@ -2227,10 +2230,21 @@
"node": "*"
}
},
+ "node_modules/@humanwhocodes/gitignore-to-minimatch": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz",
+ "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==",
+ "dev": true,
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
"node_modules/@humanwhocodes/object-schema": {
"version": "1.2.1",
- "dev": true,
- "license": "BSD-3-Clause"
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
+ "dev": true
},
"node_modules/@istanbuljs/load-nyc-config": {
"version": "1.1.0",
@@ -4418,14 +4432,14 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.30.7.tgz",
- "integrity": "sha512-l4L6Do+tfeM2OK0GJsU7TUcM/1oN/N25xHm3Jb4z3OiDU4Lj8dIuxX9LpVMS9riSXQs42D1ieX7b85/r16H9Fw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.0.tgz",
+ "integrity": "sha512-jHvZNSW2WZ31OPJ3enhLrEKvAZNyAFWZ6rx9tUwaessTc4sx9KmgMNhVcqVAl1ETnT5rU5fpXTLmY9YvC1DCNg==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.30.7",
- "@typescript-eslint/type-utils": "5.30.7",
- "@typescript-eslint/utils": "5.30.7",
+ "@typescript-eslint/scope-manager": "5.33.0",
+ "@typescript-eslint/type-utils": "5.33.0",
+ "@typescript-eslint/utils": "5.33.0",
"debug": "^4.3.4",
"functional-red-black-tree": "^1.0.1",
"ignore": "^5.2.0",
@@ -4468,14 +4482,14 @@
}
},
"node_modules/@typescript-eslint/parser": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.30.7.tgz",
- "integrity": "sha512-Rg5xwznHWWSy7v2o0cdho6n+xLhK2gntImp0rJroVVFkcYFYQ8C8UJTSuTw/3CnExBmPjycjmUJkxVmjXsld6A==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.33.0.tgz",
+ "integrity": "sha512-cgM5cJrWmrDV2KpvlcSkelTBASAs1mgqq+IUGKJvFxWrapHpaRy5EXPQz9YaKF3nZ8KY18ILTiVpUtbIac86/w==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.30.7",
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/typescript-estree": "5.30.7",
+ "@typescript-eslint/scope-manager": "5.33.0",
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/typescript-estree": "5.33.0",
"debug": "^4.3.4"
},
"engines": {
@@ -4512,13 +4526,13 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.30.7.tgz",
- "integrity": "sha512-7BM1bwvdF1UUvt+b9smhqdc/eniOnCKxQT/kj3oXtj3LqnTWCAM0qHRHfyzCzhEfWX0zrW7KqXXeE4DlchZBKw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.33.0.tgz",
+ "integrity": "sha512-/Jta8yMNpXYpRDl8EwF/M8It2A9sFJTubDo0ATZefGXmOqlaBffEw0ZbkbQ7TNDK6q55NPHFshGBPAZvZkE8Pw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/visitor-keys": "5.30.7"
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/visitor-keys": "5.33.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -4529,12 +4543,12 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.30.7.tgz",
- "integrity": "sha512-nD5qAE2aJX/YLyKMvOU5jvJyku4QN5XBVsoTynFrjQZaDgDV6i7QHFiYCx10wvn7hFvfuqIRNBtsgaLe0DbWhw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.33.0.tgz",
+ "integrity": "sha512-2zB8uEn7hEH2pBeyk3NpzX1p3lF9dKrEbnXq1F7YkpZ6hlyqb2yZujqgRGqXgRBTHWIUG3NGx/WeZk224UKlIA==",
"dev": true,
"dependencies": {
- "@typescript-eslint/utils": "5.30.7",
+ "@typescript-eslint/utils": "5.33.0",
"debug": "^4.3.4",
"tsutils": "^3.21.0"
},
@@ -4572,9 +4586,9 @@
}
},
"node_modules/@typescript-eslint/types": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.30.7.tgz",
- "integrity": "sha512-ocVkETUs82+U+HowkovV6uxf1AnVRKCmDRNUBUUo46/5SQv1owC/EBFkiu4MOHeZqhKz2ktZ3kvJJ1uFqQ8QPg==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.33.0.tgz",
+ "integrity": "sha512-nIMt96JngB4MYFYXpZ/3ZNU4GWPNdBbcB5w2rDOCpXOVUkhtNlG2mmm8uXhubhidRZdwMaMBap7Uk8SZMU/ppw==",
"dev": true,
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -4585,13 +4599,13 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.7.tgz",
- "integrity": "sha512-tNslqXI1ZdmXXrHER83TJ8OTYl4epUzJC0aj2i4DMDT4iU+UqLT3EJeGQvJ17BMbm31x5scSwo3hPM0nqQ1AEA==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.0.tgz",
+ "integrity": "sha512-tqq3MRLlggkJKJUrzM6wltk8NckKyyorCSGMq4eVkyL5sDYzJJcMgZATqmF8fLdsWrW7OjjIZ1m9v81vKcaqwQ==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/visitor-keys": "5.30.7",
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/visitor-keys": "5.33.0",
"debug": "^4.3.4",
"globby": "^11.1.0",
"is-glob": "^4.0.3",
@@ -4629,15 +4643,15 @@
}
},
"node_modules/@typescript-eslint/utils": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.30.7.tgz",
- "integrity": "sha512-Z3pHdbFw+ftZiGUnm1GZhkJgVqsDL5CYW2yj+TB2mfXDFOMqtbzQi2dNJIyPqPbx9mv2kUxS1gU+r2gKlKi1rQ==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.33.0.tgz",
+ "integrity": "sha512-JxOAnXt9oZjXLIiXb5ZIcZXiwVHCkqZgof0O8KPgz7C7y0HS42gi75PdPlqh1Tf109M0fyUw45Ao6JLo7S5AHw==",
"dev": true,
"dependencies": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.30.7",
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/typescript-estree": "5.30.7",
+ "@typescript-eslint/scope-manager": "5.33.0",
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/typescript-estree": "5.33.0",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
},
@@ -4671,12 +4685,12 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.7.tgz",
- "integrity": "sha512-KrRXf8nnjvcpxDFOKej4xkD7657+PClJs5cJVSG7NNoCNnjEdc46juNAQt7AyuWctuCgs6mVRc1xGctEqrjxWw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.0.tgz",
+ "integrity": "sha512-/XsqCzD4t+Y9p5wd9HZiptuGKBlaZO5showwqODii5C0nZawxWLF+Q6k5wYHBrQv96h6GYKyqqMHCSTqta8Kiw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/types": "5.33.0",
"eslint-visitor-keys": "^3.3.0"
},
"engines": {
@@ -4905,9 +4919,9 @@
}
},
"node_modules/acorn": {
- "version": "8.7.1",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz",
- "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==",
+ "version": "8.8.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
+ "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",
"dev": true,
"bin": {
"acorn": "bin/acorn"
@@ -7851,13 +7865,14 @@
}
},
"node_modules/eslint": {
- "version": "8.20.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.20.0.tgz",
- "integrity": "sha512-d4ixhz5SKCa1D6SCPrivP7yYVi7nyD6A4vs6HIAul9ujBzcEmZVM3/0NN/yu5nKhmO1wjp5xQ46iRfmDGlOviA==",
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.21.0.tgz",
+ "integrity": "sha512-/XJ1+Qurf1T9G2M5IHrsjp+xrGT73RZf23xA1z5wB1ZzzEAWSZKvRwhWxTFp1rvkvCfwcvAUNAP31bhKTTGfDA==",
"dev": true,
"dependencies": {
"@eslint/eslintrc": "^1.3.0",
- "@humanwhocodes/config-array": "^0.9.2",
+ "@humanwhocodes/config-array": "^0.10.4",
+ "@humanwhocodes/gitignore-to-minimatch": "^1.0.2",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
@@ -7867,14 +7882,17 @@
"eslint-scope": "^7.1.1",
"eslint-utils": "^3.0.0",
"eslint-visitor-keys": "^3.3.0",
- "espree": "^9.3.2",
+ "espree": "^9.3.3",
"esquery": "^1.4.0",
"esutils": "^2.0.2",
"fast-deep-equal": "^3.1.3",
"file-entry-cache": "^6.0.1",
+ "find-up": "^5.0.0",
"functional-red-black-tree": "^1.0.1",
"glob-parent": "^6.0.1",
"globals": "^13.15.0",
+ "globby": "^11.1.0",
+ "grapheme-splitter": "^1.0.4",
"ignore": "^5.2.0",
"import-fresh": "^3.0.0",
"imurmurhash": "^0.1.4",
@@ -8400,6 +8418,22 @@
"node": ">=4.0"
}
},
+ "node_modules/eslint/node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/eslint/node_modules/glob-parent": {
"version": "6.0.2",
"dev": true,
@@ -8431,6 +8465,21 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/eslint/node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/eslint/node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -8443,6 +8492,30 @@
"node": "*"
}
},
+ "node_modules/eslint/node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/eslint/node_modules/strip-ansi": {
"version": "6.0.1",
"dev": true,
@@ -8476,17 +8549,20 @@
}
},
"node_modules/espree": {
- "version": "9.3.2",
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz",
- "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==",
+ "version": "9.3.3",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.3.tgz",
+ "integrity": "sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==",
"dev": true,
"dependencies": {
- "acorn": "^8.7.1",
+ "acorn": "^8.8.0",
"acorn-jsx": "^5.3.2",
"eslint-visitor-keys": "^3.3.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
}
},
"node_modules/espree/node_modules/eslint-visitor-keys": {
@@ -9779,6 +9855,12 @@
"devOptional": true,
"license": "ISC"
},
+ "node_modules/grapheme-splitter": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
+ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
+ "dev": true
+ },
"node_modules/graphql": {
"version": "16.5.0",
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.5.0.tgz",
@@ -22172,7 +22254,9 @@
}
},
"@humanwhocodes/config-array": {
- "version": "0.9.5",
+ "version": "0.10.4",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz",
+ "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==",
"dev": true,
"requires": {
"@humanwhocodes/object-schema": "^1.2.1",
@@ -22182,6 +22266,8 @@
"dependencies": {
"brace-expansion": {
"version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
"requires": {
"balanced-match": "^1.0.0",
@@ -22190,6 +22276,8 @@
},
"minimatch": {
"version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
"requires": {
"brace-expansion": "^1.1.7"
@@ -22197,8 +22285,16 @@
}
}
},
+ "@humanwhocodes/gitignore-to-minimatch": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz",
+ "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==",
+ "dev": true
+ },
"@humanwhocodes/object-schema": {
"version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
"dev": true
},
"@istanbuljs/load-nyc-config": {
@@ -23904,14 +24000,14 @@
}
},
"@typescript-eslint/eslint-plugin": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.30.7.tgz",
- "integrity": "sha512-l4L6Do+tfeM2OK0GJsU7TUcM/1oN/N25xHm3Jb4z3OiDU4Lj8dIuxX9LpVMS9riSXQs42D1ieX7b85/r16H9Fw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.0.tgz",
+ "integrity": "sha512-jHvZNSW2WZ31OPJ3enhLrEKvAZNyAFWZ6rx9tUwaessTc4sx9KmgMNhVcqVAl1ETnT5rU5fpXTLmY9YvC1DCNg==",
"dev": true,
"requires": {
- "@typescript-eslint/scope-manager": "5.30.7",
- "@typescript-eslint/type-utils": "5.30.7",
- "@typescript-eslint/utils": "5.30.7",
+ "@typescript-eslint/scope-manager": "5.33.0",
+ "@typescript-eslint/type-utils": "5.33.0",
+ "@typescript-eslint/utils": "5.33.0",
"debug": "^4.3.4",
"functional-red-black-tree": "^1.0.1",
"ignore": "^5.2.0",
@@ -23932,14 +24028,14 @@
}
},
"@typescript-eslint/parser": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.30.7.tgz",
- "integrity": "sha512-Rg5xwznHWWSy7v2o0cdho6n+xLhK2gntImp0rJroVVFkcYFYQ8C8UJTSuTw/3CnExBmPjycjmUJkxVmjXsld6A==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.33.0.tgz",
+ "integrity": "sha512-cgM5cJrWmrDV2KpvlcSkelTBASAs1mgqq+IUGKJvFxWrapHpaRy5EXPQz9YaKF3nZ8KY18ILTiVpUtbIac86/w==",
"dev": true,
"requires": {
- "@typescript-eslint/scope-manager": "5.30.7",
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/typescript-estree": "5.30.7",
+ "@typescript-eslint/scope-manager": "5.33.0",
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/typescript-estree": "5.33.0",
"debug": "^4.3.4"
},
"dependencies": {
@@ -23955,22 +24051,22 @@
}
},
"@typescript-eslint/scope-manager": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.30.7.tgz",
- "integrity": "sha512-7BM1bwvdF1UUvt+b9smhqdc/eniOnCKxQT/kj3oXtj3LqnTWCAM0qHRHfyzCzhEfWX0zrW7KqXXeE4DlchZBKw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.33.0.tgz",
+ "integrity": "sha512-/Jta8yMNpXYpRDl8EwF/M8It2A9sFJTubDo0ATZefGXmOqlaBffEw0ZbkbQ7TNDK6q55NPHFshGBPAZvZkE8Pw==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/visitor-keys": "5.30.7"
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/visitor-keys": "5.33.0"
}
},
"@typescript-eslint/type-utils": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.30.7.tgz",
- "integrity": "sha512-nD5qAE2aJX/YLyKMvOU5jvJyku4QN5XBVsoTynFrjQZaDgDV6i7QHFiYCx10wvn7hFvfuqIRNBtsgaLe0DbWhw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.33.0.tgz",
+ "integrity": "sha512-2zB8uEn7hEH2pBeyk3NpzX1p3lF9dKrEbnXq1F7YkpZ6hlyqb2yZujqgRGqXgRBTHWIUG3NGx/WeZk224UKlIA==",
"dev": true,
"requires": {
- "@typescript-eslint/utils": "5.30.7",
+ "@typescript-eslint/utils": "5.33.0",
"debug": "^4.3.4",
"tsutils": "^3.21.0"
},
@@ -23987,19 +24083,19 @@
}
},
"@typescript-eslint/types": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.30.7.tgz",
- "integrity": "sha512-ocVkETUs82+U+HowkovV6uxf1AnVRKCmDRNUBUUo46/5SQv1owC/EBFkiu4MOHeZqhKz2ktZ3kvJJ1uFqQ8QPg==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.33.0.tgz",
+ "integrity": "sha512-nIMt96JngB4MYFYXpZ/3ZNU4GWPNdBbcB5w2rDOCpXOVUkhtNlG2mmm8uXhubhidRZdwMaMBap7Uk8SZMU/ppw==",
"dev": true
},
"@typescript-eslint/typescript-estree": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.7.tgz",
- "integrity": "sha512-tNslqXI1ZdmXXrHER83TJ8OTYl4epUzJC0aj2i4DMDT4iU+UqLT3EJeGQvJ17BMbm31x5scSwo3hPM0nqQ1AEA==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.0.tgz",
+ "integrity": "sha512-tqq3MRLlggkJKJUrzM6wltk8NckKyyorCSGMq4eVkyL5sDYzJJcMgZATqmF8fLdsWrW7OjjIZ1m9v81vKcaqwQ==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/visitor-keys": "5.30.7",
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/visitor-keys": "5.33.0",
"debug": "^4.3.4",
"globby": "^11.1.0",
"is-glob": "^4.0.3",
@@ -24019,15 +24115,15 @@
}
},
"@typescript-eslint/utils": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.30.7.tgz",
- "integrity": "sha512-Z3pHdbFw+ftZiGUnm1GZhkJgVqsDL5CYW2yj+TB2mfXDFOMqtbzQi2dNJIyPqPbx9mv2kUxS1gU+r2gKlKi1rQ==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.33.0.tgz",
+ "integrity": "sha512-JxOAnXt9oZjXLIiXb5ZIcZXiwVHCkqZgof0O8KPgz7C7y0HS42gi75PdPlqh1Tf109M0fyUw45Ao6JLo7S5AHw==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.30.7",
- "@typescript-eslint/types": "5.30.7",
- "@typescript-eslint/typescript-estree": "5.30.7",
+ "@typescript-eslint/scope-manager": "5.33.0",
+ "@typescript-eslint/types": "5.33.0",
+ "@typescript-eslint/typescript-estree": "5.33.0",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
},
@@ -24044,12 +24140,12 @@
}
},
"@typescript-eslint/visitor-keys": {
- "version": "5.30.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.7.tgz",
- "integrity": "sha512-KrRXf8nnjvcpxDFOKej4xkD7657+PClJs5cJVSG7NNoCNnjEdc46juNAQt7AyuWctuCgs6mVRc1xGctEqrjxWw==",
+ "version": "5.33.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.0.tgz",
+ "integrity": "sha512-/XsqCzD4t+Y9p5wd9HZiptuGKBlaZO5showwqODii5C0nZawxWLF+Q6k5wYHBrQv96h6GYKyqqMHCSTqta8Kiw==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/types": "5.33.0",
"eslint-visitor-keys": "^3.3.0"
},
"dependencies": {
@@ -24262,9 +24358,9 @@
}
},
"acorn": {
- "version": "8.7.1",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz",
- "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==",
+ "version": "8.8.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
+ "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",
"dev": true
},
"acorn-import-assertions": {
@@ -26330,13 +26426,14 @@
"dev": true
},
"eslint": {
- "version": "8.20.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.20.0.tgz",
- "integrity": "sha512-d4ixhz5SKCa1D6SCPrivP7yYVi7nyD6A4vs6HIAul9ujBzcEmZVM3/0NN/yu5nKhmO1wjp5xQ46iRfmDGlOviA==",
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.21.0.tgz",
+ "integrity": "sha512-/XJ1+Qurf1T9G2M5IHrsjp+xrGT73RZf23xA1z5wB1ZzzEAWSZKvRwhWxTFp1rvkvCfwcvAUNAP31bhKTTGfDA==",
"dev": true,
"requires": {
"@eslint/eslintrc": "^1.3.0",
- "@humanwhocodes/config-array": "^0.9.2",
+ "@humanwhocodes/config-array": "^0.10.4",
+ "@humanwhocodes/gitignore-to-minimatch": "^1.0.2",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
@@ -26346,14 +26443,17 @@
"eslint-scope": "^7.1.1",
"eslint-utils": "^3.0.0",
"eslint-visitor-keys": "^3.3.0",
- "espree": "^9.3.2",
+ "espree": "^9.3.3",
"esquery": "^1.4.0",
"esutils": "^2.0.2",
"fast-deep-equal": "^3.1.3",
"file-entry-cache": "^6.0.1",
+ "find-up": "^5.0.0",
"functional-red-black-tree": "^1.0.1",
"glob-parent": "^6.0.1",
"globals": "^13.15.0",
+ "globby": "^11.1.0",
+ "grapheme-splitter": "^1.0.4",
"ignore": "^5.2.0",
"import-fresh": "^3.0.0",
"imurmurhash": "^0.1.4",
@@ -26429,6 +26529,16 @@
"version": "5.3.0",
"dev": true
},
+ "find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
"glob-parent": {
"version": "6.0.2",
"dev": true,
@@ -26449,6 +26559,15 @@
"version": "0.4.1",
"dev": true
},
+ "locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^5.0.0"
+ }
+ },
"minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -26458,6 +26577,21 @@
"brace-expansion": "^1.1.7"
}
},
+ "p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^3.0.2"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
"strip-ansi": {
"version": "6.0.1",
"dev": true,
@@ -26752,12 +26886,12 @@
"optional": true
},
"espree": {
- "version": "9.3.2",
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz",
- "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==",
+ "version": "9.3.3",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.3.tgz",
+ "integrity": "sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==",
"dev": true,
"requires": {
- "acorn": "^8.7.1",
+ "acorn": "^8.8.0",
"acorn-jsx": "^5.3.2",
"eslint-visitor-keys": "^3.3.0"
},
@@ -27656,6 +27790,12 @@
"version": "4.2.10",
"devOptional": true
},
+ "grapheme-splitter": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
+ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
+ "dev": true
+ },
"graphql": {
"version": "16.5.0",
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.5.0.tgz",
diff --git a/package.json b/package.json
index f620c3bd15..9dd92dada7 100644
--- a/package.json
+++ b/package.json
@@ -111,8 +111,8 @@
"@types/react-dom": "^18.0.5",
"@types/react-syntax-highlighter": "^15.5.2",
"@types/uuid": "^8.3.4",
- "@typescript-eslint/eslint-plugin": "5.30.7",
- "@typescript-eslint/parser": "5.30.7",
+ "@typescript-eslint/eslint-plugin": "5.33.0",
+ "@typescript-eslint/parser": "5.33.0",
"babel-loader": "^8.2.5",
"babel-plugin-styled-components": "^2.0.7",
"babel-preset-env": "^1.7.0",
@@ -123,7 +123,7 @@
"csp-parse": "0.0.2",
"dedent": "^0.7.0",
"domwaiter": "^1.3.0",
- "eslint": "8.20.0",
+ "eslint": "8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
diff --git a/pages/_app.tsx b/pages/_app.tsx
index 1b3ffe7f32..55e80547aa 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -58,6 +58,7 @@ const MyApp = ({ Component, pageProps, languagesContext }: MyAppProps) => {
colorMode={theme.component.colorMode}
dayScheme={theme.component.dayScheme}
nightScheme={theme.component.nightScheme}
+ preventSSRMismatch
>
{/* Appears Next.js can't modify after server rendering: https://stackoverflow.com/a/54774431 */}
{}
+ const res = {}
+ const req = { language: 'en', cookies: {} }
+
+ for (const version of allVersionKeys) {
+ req.pagePath = version === fpt ? '/' : `/${version}`
+
+ // Create a subdir for the version if one doesn't exist yet.
+ const versionStaticDir = path.posix.join(staticDir, version)
+ if (!fs.existsSync(versionStaticDir)) fs.mkdirSync(versionStaticDir)
+
+ // Create a versioned filename.
+ const filename = path.posix.join(versionStaticDir, 'index.html')
+
+ // Create a minimal context object.
+ await contextualize(req, res, next)
+
+ // Add the tree to the req.context.
+ req.context.currentEnglishTree = req.context.siteTree.en[req.context.currentVersion]
+
+ // Add any defaultOpenSections to the context.
+ req.context.defaultOpenSections = defaultOpenSections
+
+ // Parse the layout in script/dev-toc/layout.html with the context we created above.
+ const outputHtml = await liquid.parseAndRender(layout, Object.assign({}, req.context))
+
+ // Write a static file for each version.
+ fs.writeFileSync(filename, outputHtml)
+ }
+
+ // Default to FPT for the file to open.
+ const fptFile = path.posix.join(staticDirName, fpt, 'index.html')
+
+ execSync(`open ${fptFile}`)
+
+ console.log(`\nCreated the TOC! If it doesn't open automatically, open the following file in your browser to view it:\n
+${fptFile}`)
+}
diff --git a/script/dev-toc/index.js b/script/dev-toc/index.js
new file mode 100644
index 0000000000..2502cf21b3
--- /dev/null
+++ b/script/dev-toc/index.js
@@ -0,0 +1,41 @@
+const expandText = 'Expand All'
+const closeText = 'Close All'
+
+document.addEventListener('DOMContentLoaded', async () => {
+ devToc()
+})
+
+function devToc() {
+ const expandButton = document.querySelector('.js-expand')
+ if (!expandButton) return
+
+ const detailsElements = document.querySelectorAll('details')
+
+ expandButton.addEventListener('click', () => {
+ // on click, toggle all the details elements open or closed
+ const anyDetailsOpen = Array.from(detailsElements).find((details) => details.open)
+
+ for (const detailsElement of detailsElements) {
+ anyDetailsOpen ? detailsElement.removeAttribute('open') : (detailsElement.open = true)
+ }
+
+ // toggle the button text on click
+ anyDetailsOpen
+ ? (expandButton.textContent = expandText)
+ : (expandButton.textContent = closeText)
+ })
+
+ // also toggle the button text on clicking any of the details elements
+ for (const detailsElement of detailsElements) {
+ detailsElement.addEventListener('click', () => {
+ expandButton.textContent = closeText
+
+ // we can only get an accurate count of the open details elements if we wait a fraction after click
+ setTimeout(() => {
+ if (!Array.from(detailsElements).find((details) => details.open)) {
+ expandButton.textContent = expandText
+ }
+ }, 50)
+ })
+ }
+}
diff --git a/script/dev-toc/layout.html b/script/dev-toc/layout.html
new file mode 100644
index 0000000000..0aa79e1971
--- /dev/null
+++ b/script/dev-toc/layout.html
@@ -0,0 +1,67 @@
+
+
+
+
+
Docs TOC
+
+
+
+
+
+
+Versions
+
+
+{% assign docsRoot = "https://docs.github.com" %}
+
+{% if allVersions[currentVersion] %}
+TOC for {{ allVersions[currentVersion].versionTitle }}
+
+
+
+
+{% for productPage in currentEnglishTree.childPages %}
+{% assign productId = productPage.page.relativePath | replace: "/index.md", "" %}
+{% if defaultOpenSections contains productId %}
+{{productPage.renderedFullTitle}}
+{% else %}
+{{productPage.renderedFullTitle}}
+{% endif %}
+
+
+{% endfor %}
+{% endif %}
+
+
+
+
+
diff --git a/script/rest/utils/operation.js b/script/rest/utils/operation.js
index c994c28a56..0b47929dfe 100644
--- a/script/rest/utils/operation.js
+++ b/script/rest/utils/operation.js
@@ -165,6 +165,9 @@ export default class Operation {
async renderBodyParameterDescriptions() {
if (!this.#operation.requestBody) return []
+ // There is currently only one operation with more than one content type
+ // and the request body parameter types are the same for both.
+ // Operation Id: markdown/render-raw
const contentType = Object.keys(this.#operation.requestBody.content)[0]
let bodyParamsObject = get(
this.#operation,
@@ -378,13 +381,17 @@ async function getBodyParams(paramsObject, requiredParams) {
param.childParamsGroups.push(
...flatten(
childParamsGroup.params
- .filter((param) => param.childParamsGroups.length)
+ .filter((param) => param.childParamsGroups?.length)
.map((param) => param.childParamsGroups)
)
)
}
-
- return param
+ const paramDecorated = { ...param }
+ delete paramDecorated.items
+ delete paramDecorated.rawDescription
+ delete paramDecorated.rawType
+ if (paramDecorated.childParamsGroups.length === 0) delete paramDecorated.childParamsGroups
+ return paramDecorated
})
)
}
diff --git a/tests/meta/repository-references.js b/tests/meta/repository-references.js
index e2112204cb..35bdfbb030 100644
--- a/tests/meta/repository-references.js
+++ b/tests/meta/repository-references.js
@@ -17,67 +17,68 @@ If this test is failing...
// These are a list of known public repositories in the GitHub organization
const PUBLIC_REPOS = new Set([
- 'site-policy',
- 'roadmap',
- 'linguist',
- 'super-linter',
+ 'actions-oidc-gateway-example',
+ 'advisory-database',
'backup-utils',
+ 'browser-support',
+ 'choosealicense.com',
'codeql-action-sync-tool',
'codeql-action',
'codeql-cli-binaries',
- 'codeql',
'codeql-go',
- 'platform-samples',
- 'github-services',
- 'explore',
- 'enterprise-releases',
- 'markup',
- 'hubot',
- 'VisualStudio',
'codeql',
- 'gitignore',
- 'feedback',
- 'semantic',
- 'git-lfs',
- 'git-sizer',
- 'dmca',
- 'gov-takedowns',
- 'janky',
- 'rest-api-description',
- 'smimesign',
- 'tweetsodium',
- 'choosealicense.com',
- 'renaming',
- 'localization-support',
- 'docs',
- 'securitylab',
- 'hello-world',
- 'hello-world.git',
- 'insights-releases',
- 'help-docs-archived-enterprise-versions',
- 'stack-graphs',
+ 'codeql',
'codespaces-precache',
- 'advisory-database',
- 'browser-support',
- 'haikus-for-codespaces',
- 'actions-oidc-gateway-example',
'copilot.vim',
'dependency-submission-toolkit',
+ 'dmca',
+ 'docs',
+ 'enterprise-releases',
+ 'explore',
+ 'feedback',
+ 'gh-net',
+ 'git-lfs',
+ 'git-sizer',
+ 'github-services',
+ 'gitignore',
+ 'gov-takedowns',
+ 'haikus-for-codespaces',
+ 'hello-world.git',
+ 'hello-world',
+ 'help-docs-archived-enterprise-versions',
+ 'hubot',
+ 'insights-releases',
+ 'janky',
+ 'linguist',
+ 'localization-support',
+ 'markup',
+ 'platform-samples',
+ 'renaming',
+ 'rest-api-description',
+ 'roadmap',
+ 'securitylab',
+ 'semantic',
+ 'site-policy',
+ 'smimesign',
+ 'stack-graphs',
+ 'super-linter',
+ 'tweetsodium',
+ 'VisualStudio',
])
const ALLOW_DOCS_PATHS = [
'.github/actions-scripts/enterprise-server-issue-templates/*.md',
'.github/review-template.md',
+ '.github/workflows/hubber-contribution-help.yml',
'.github/workflows/sync-search-indices.yml',
'contributing/search.md',
+ 'docs/index.yaml',
+ 'lib/excluded-links.js',
'lib/rest/**/*.json',
'lib/webhooks/**/*.json',
'ownership.yaml',
- 'docs/index.yaml',
- 'lib/excluded-links.js',
'script/README.md',
'script/toggle-ghae-feature-flags.js',
- '.github/workflows/hubber-contribution-help.yml',
]
const REPO_REGEXP = /\/\/github\.com\/github\/(?!docs[/'"\n])([\w-.]+)/gi
diff --git a/tests/rendering/server.js b/tests/rendering/server.js
index 8c0b70f6f5..04206efb86 100644
--- a/tests/rendering/server.js
+++ b/tests/rendering/server.js
@@ -326,7 +326,7 @@ describe('server', () => {
test('renders mini TOC in articles with more than one heading', async () => {
const $ = await getDOM('/en/github/getting-started-with-github/githubs-products')
expect($('h2#in-this-article').length).toBe(1)
- expect($('h2#in-this-article + div div ul').length).toBeGreaterThan(1)
+ expect($('h2#in-this-article + nav ul').length).toBeGreaterThan(1)
})
test('renders mini TOC in articles that includes h3s when specified by frontmatter', async () => {
@@ -334,8 +334,8 @@ describe('server', () => {
'/en/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-security-settings-in-your-enterprise'
)
expect($('h2#in-this-article').length).toBe(1)
- expect($('h2#in-this-article + div div ul').length).toBeGreaterThan(0) // non-indented items
- expect($('h2#in-this-article + div div ul li div div ul.ml-3').length).toBeGreaterThan(0) // indented items
+ expect($('h2#in-this-article + nav div ul').length).toBeGreaterThan(0) // non-indented items
+ expect($('h2#in-this-article + nav div ul li div div ul.ml-3').length).toBeGreaterThan(0) // indented items
})
test('does not render mini TOC in articles with only one heading', async () => {
@@ -358,13 +358,13 @@ describe('server', () => {
// TODO
test('renders mini TOC with correct links when headings contain markup', async () => {
const $ = await getDOM('/en/actions/using-workflows/workflow-syntax-for-github-actions')
- expect($('h2#in-this-article + div div ul a[href="#on"]').length).toBe(1)
+ expect($('h2#in-this-article + nav div ul a[href="#on"]').length).toBe(1)
})
// TODO
test('renders mini TOC with correct links when headings contain markup in localized content', async () => {
const $ = await getDOM('/ja/actions/using-workflows/workflow-syntax-for-github-actions')
- expect($('h2#in-this-article + div div ul a[href="#on"]').length).toBe(1)
+ expect($('h2#in-this-article + nav div ul a[href="#on"]').length).toBe(1)
})
})
@@ -916,11 +916,11 @@ describe('extended Markdown', () => {
test('renders expected mini TOC headings in platform-specific content', async () => {
const $ = await getDOM('/en/github/using-git/associating-text-editors-with-git')
expect($('h2#in-this-article').length).toBe(1)
- expect($('h2#in-this-article + div div ul li.extended-markdown.mac').length).toBeGreaterThan(1)
+ expect($('h2#in-this-article + nav div ul li.extended-markdown.mac').length).toBeGreaterThan(1)
expect(
- $('h2#in-this-article + div div ul li.extended-markdown.windows').length
+ $('h2#in-this-article + nav div ul li.extended-markdown.windows').length
).toBeGreaterThan(1)
- expect($('h2#in-this-article + div div ul li.extended-markdown.linux').length).toBeGreaterThan(
+ expect($('h2#in-this-article + nav div ul li.extended-markdown.linux').length).toBeGreaterThan(
1
)
})