|
24167 | 24167 | "properties": { |
24168 | 24168 | "name": { |
24169 | 24169 | "type": "string", |
24170 | | - "description": "<p><strong>Required</strong>. The name of the team.</p>", |
| 24170 | + "description": "<p>The name of the team.</p>", |
24171 | 24171 | "name": "name", |
24172 | 24172 | "in": "body", |
24173 | 24173 | "rawType": "string", |
@@ -24212,18 +24212,16 @@ |
24212 | 24212 | "childParamsGroups": [] |
24213 | 24213 | }, |
24214 | 24214 | "parent_team_id": { |
24215 | | - "type": "integer", |
| 24215 | + "type": "integer or null", |
24216 | 24216 | "description": "<p>The ID of a team to set as the parent team.</p>", |
| 24217 | + "nullable": true, |
24217 | 24218 | "name": "parent_team_id", |
24218 | 24219 | "in": "body", |
24219 | 24220 | "rawType": "integer", |
24220 | 24221 | "rawDescription": "The ID of a team to set as the parent team.", |
24221 | 24222 | "childParamsGroups": [] |
24222 | 24223 | } |
24223 | | - }, |
24224 | | - "required": [ |
24225 | | - "name" |
24226 | | - ] |
| 24224 | + } |
24227 | 24225 | }, |
24228 | 24226 | "example": { |
24229 | 24227 | "name": "new team name", |
|
24248 | 24246 | "bodyParameters": [ |
24249 | 24247 | { |
24250 | 24248 | "type": "string", |
24251 | | - "description": "<p><strong>Required</strong>. The name of the team.</p>", |
| 24249 | + "description": "<p>The name of the team.</p>", |
24252 | 24250 | "name": "name", |
24253 | 24251 | "in": "body", |
24254 | 24252 | "rawType": "string", |
|
24293 | 24291 | "childParamsGroups": [] |
24294 | 24292 | }, |
24295 | 24293 | { |
24296 | | - "type": "integer", |
| 24294 | + "type": "integer or null", |
24297 | 24295 | "description": "<p>The ID of a team to set as the parent team.</p>", |
| 24296 | + "nullable": true, |
24298 | 24297 | "name": "parent_team_id", |
24299 | 24298 | "in": "body", |
24300 | 24299 | "rawType": "integer", |
|
27036 | 27035 | "rawDescription": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: 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 out to this endpoint. For more information, see \"[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs).\"", |
27037 | 27036 | "childParamsGroups": [] |
27038 | 27037 | } |
27039 | | - } |
| 27038 | + }, |
| 27039 | + "nullable": true |
27040 | 27040 | } |
27041 | 27041 | } |
27042 | 27042 | } |
@@ -58258,14 +58258,17 @@ |
58258 | 58258 | } |
58259 | 58259 | ], |
58260 | 58260 | "description": "<p>The title of the issue.</p>", |
| 58261 | + "nullable": true, |
58261 | 58262 | "name": "title", |
58262 | 58263 | "in": "body", |
58263 | 58264 | "rawDescription": "The title of the issue.", |
| 58265 | + "type": "undefined or null", |
58264 | 58266 | "childParamsGroups": [] |
58265 | 58267 | }, |
58266 | 58268 | "body": { |
58267 | | - "type": "string", |
| 58269 | + "type": "string or null", |
58268 | 58270 | "description": "<p>The contents of the issue.</p>", |
| 58271 | + "nullable": true, |
58269 | 58272 | "name": "body", |
58270 | 58273 | "in": "body", |
58271 | 58274 | "rawType": "string", |
@@ -58399,14 +58402,17 @@ |
58399 | 58402 | } |
58400 | 58403 | ], |
58401 | 58404 | "description": "<p>The title of the issue.</p>", |
| 58405 | + "nullable": true, |
58402 | 58406 | "name": "title", |
58403 | 58407 | "in": "body", |
58404 | 58408 | "rawDescription": "The title of the issue.", |
| 58409 | + "type": "undefined or null", |
58405 | 58410 | "childParamsGroups": [] |
58406 | 58411 | }, |
58407 | 58412 | { |
58408 | | - "type": "string", |
| 58413 | + "type": "string or null", |
58409 | 58414 | "description": "<p>The contents of the issue.</p>", |
| 58415 | + "nullable": true, |
58410 | 58416 | "name": "body", |
58411 | 58417 | "in": "body", |
58412 | 58418 | "rawType": "string", |
@@ -65670,13 +65676,13 @@ |
65670 | 65676 | "x-codeSamples": [ |
65671 | 65677 | { |
65672 | 65678 | "lang": "Shell", |
65673 | | - "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\",\"path\":\"path\"}'", |
65674 | | - "html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\",\"path\":\"path\"}'</code></pre>" |
| 65679 | + "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\"}'", |
| 65680 | + "html": "<pre><code class=\"hljs language-shell\">curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\"}'</code></pre>" |
65675 | 65681 | }, |
65676 | 65682 | { |
65677 | 65683 | "lang": "JavaScript", |
65678 | | - "source": "await octokit.request('POST /repos/{owner}/{repo}/pulls/{pull_number}/comments', {\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 42,\n body: 'body',\n path: 'path'\n})", |
65679 | | - "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/pulls/{pull_number}/comments'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">pull_number</span>: <span class=\"hljs-number\">42</span>,\n <span class=\"hljs-attr\">body</span>: <span class=\"hljs-string\">'body'</span>,\n <span class=\"hljs-attr\">path</span>: <span class=\"hljs-string\">'path'</span>\n})\n</code></pre>" |
| 65684 | + "source": "await octokit.request('POST /repos/{owner}/{repo}/pulls/{pull_number}/comments', {\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 42,\n body: 'body'\n})", |
| 65685 | + "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'POST /repos/{owner}/{repo}/pulls/{pull_number}/comments'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">pull_number</span>: <span class=\"hljs-number\">42</span>,\n <span class=\"hljs-attr\">body</span>: <span class=\"hljs-string\">'body'</span>\n})\n</code></pre>" |
65680 | 65686 | } |
65681 | 65687 | ], |
65682 | 65688 | "summary": "Create a review comment for a pull request", |
|
65715 | 65721 | }, |
65716 | 65722 | "path": { |
65717 | 65723 | "type": "string", |
65718 | | - "description": "<p><strong>Required</strong>. The relative path to the file that necessitates a comment.</p>", |
| 65724 | + "description": "<p>The relative path to the file that necessitates a comment.</p>", |
65719 | 65725 | "name": "path", |
65720 | 65726 | "in": "body", |
65721 | 65727 | "rawType": "string", |
|
65787 | 65793 | } |
65788 | 65794 | }, |
65789 | 65795 | "required": [ |
65790 | | - "body", |
65791 | | - "path" |
| 65796 | + "body" |
65792 | 65797 | ] |
65793 | 65798 | }, |
65794 | 65799 | "examples": { |
|
65861 | 65866 | }, |
65862 | 65867 | { |
65863 | 65868 | "type": "string", |
65864 | | - "description": "<p><strong>Required</strong>. The relative path to the file that necessitates a comment.</p>", |
| 65869 | + "description": "<p>The relative path to the file that necessitates a comment.</p>", |
65865 | 65870 | "name": "path", |
65866 | 65871 | "in": "body", |
65867 | 65872 | "rawType": "string", |
|
66751 | 66756 | "rawDescription": "An array of team `slug`s that will be requested.", |
66752 | 66757 | "childParamsGroups": [] |
66753 | 66758 | } |
66754 | | - } |
| 66759 | + }, |
| 66760 | + "anyOf": [ |
| 66761 | + { |
| 66762 | + "required": [ |
| 66763 | + "reviewers" |
| 66764 | + ] |
| 66765 | + }, |
| 66766 | + { |
| 66767 | + "required": [ |
| 66768 | + "team_reviewers" |
| 66769 | + ] |
| 66770 | + } |
| 66771 | + ] |
66755 | 66772 | }, |
66756 | 66773 | "example": { |
66757 | 66774 | "reviewers": [ |
|
66889 | 66906 | "properties": { |
66890 | 66907 | "reviewers": { |
66891 | 66908 | "type": "array of strings", |
66892 | | - "description": "<p>An array of user <code>login</code>s that will be removed.</p>", |
| 66909 | + "description": "<p><strong>Required</strong>. An array of user <code>login</code>s that will be removed.</p>", |
66893 | 66910 | "items": { |
66894 | 66911 | "type": "string" |
66895 | 66912 | }, |
|
66911 | 66928 | "rawDescription": "An array of team `slug`s that will be removed.", |
66912 | 66929 | "childParamsGroups": [] |
66913 | 66930 | } |
66914 | | - } |
| 66931 | + }, |
| 66932 | + "required": [ |
| 66933 | + "reviewers" |
| 66934 | + ] |
66915 | 66935 | }, |
66916 | 66936 | "example": { |
66917 | 66937 | "reviewers": [ |
|
66955 | 66975 | "bodyParameters": [ |
66956 | 66976 | { |
66957 | 66977 | "type": "array of strings", |
66958 | | - "description": "<p>An array of user <code>login</code>s that will be removed.</p>", |
| 66978 | + "description": "<p><strong>Required</strong>. An array of user <code>login</code>s that will be removed.</p>", |
66959 | 66979 | "items": { |
66960 | 66980 | "type": "string" |
66961 | 66981 | }, |
|
0 commit comments