diff --git a/docs/pulls/createReviewComment.md b/docs/pulls/createReviewComment.md index a11028be1..cee90fb47 100644 --- a/docs/pulls/createReviewComment.md +++ b/docs/pulls/createReviewComment.md @@ -1,6 +1,6 @@ --- name: Create a review comment for a pull request -example: octokit.pulls.createReviewComment({ owner, repo, pull_number, body, path }) +example: octokit.pulls.createReviewComment({ owner, repo, pull_number, body }) route: POST /repos/{owner}/{repo}/pulls/{pull_number}/comments scope: pulls type: API method @@ -22,7 +22,6 @@ octokit.pulls.createReviewComment({ repo, pull_number, body, - path, }); ``` @@ -56,7 +55,7 @@ The text of the review comment. 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`. -pathyes +pathno The relative path to the file that necessitates a comment. diff --git a/docs/pulls/removeRequestedReviewers.md b/docs/pulls/removeRequestedReviewers.md index 98664b1f9..b73907320 100644 --- a/docs/pulls/removeRequestedReviewers.md +++ b/docs/pulls/removeRequestedReviewers.md @@ -1,6 +1,6 @@ --- name: Remove requested reviewers from a pull request -example: octokit.pulls.removeRequestedReviewers({ owner, repo, pull_number }) +example: octokit.pulls.removeRequestedReviewers({ owner, repo, pull_number, reviewers }) route: DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers scope: pulls type: API method @@ -13,6 +13,7 @@ octokit.pulls.removeRequestedReviewers({ owner, repo, pull_number, + reviewers, }); ``` @@ -36,7 +37,7 @@ octokit.pulls.removeRequestedReviewers({ pull_numberyes -reviewersno +reviewersyes An array of user `login`s that will be removed. diff --git a/docs/teams/updateInOrg.md b/docs/teams/updateInOrg.md index 239638db4..e80f282c7 100644 --- a/docs/teams/updateInOrg.md +++ b/docs/teams/updateInOrg.md @@ -1,6 +1,6 @@ --- name: Update a team -example: octokit.teams.updateInOrg({ org, team_slug, name }) +example: octokit.teams.updateInOrg({ org, team_slug }) route: PATCH /orgs/{org}/teams/{team_slug} scope: teams type: API method @@ -16,7 +16,6 @@ To edit a team, the authenticated user must either be an organization owner or a octokit.teams.updateInOrg({ org, team_slug, - name, }); ``` @@ -39,7 +38,7 @@ octokit.teams.updateInOrg({ team_slug parameter -nameyes +nameno The name of the team. diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 6cf671d53..d4b5a81a8 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -18329,7 +18329,7 @@ "type": null, "required": false, "enum": null, - "allowNull": false, + "allowNull": true, "mapToData": null, "validation": null, "alias": null, @@ -18342,7 +18342,7 @@ "type": "string", "required": false, "enum": null, - "allowNull": false, + "allowNull": true, "mapToData": null, "validation": null, "alias": null, @@ -26432,7 +26432,7 @@ "description": "The relative path to the file that necessitates a comment.", "in": "BODY", "type": "string", - "required": true, + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -28062,7 +28062,7 @@ "description": "An array of user `login`s that will be removed.", "in": "BODY", "type": "string[]", - "required": false, + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -48393,7 +48393,7 @@ "description": "The name of the team.", "in": "BODY", "type": "string", - "required": true, + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -48447,7 +48447,7 @@ "type": "integer", "required": false, "enum": null, - "allowNull": false, + "allowNull": true, "mapToData": null, "validation": null, "alias": null,