Skip to content

Commit

Permalink
fix: clarify docs to make it clear that `POST /repos/{owner}/{repo}/a…
Browse files Browse the repository at this point in the history
…ctions/runs/{run_id}/pending_deployments` is only available to required reviewers (#506)
  • Loading branch information
octokitbot committed Jul 5, 2022
1 parent 034de15 commit 015cabe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/actions/reviewPendingDeploymentsForRun.md
Expand Up @@ -10,7 +10,7 @@ type: API method

Approve or reject pending deployments that are waiting on approval by a required reviewer.

Anyone with read access to the repository contents and deployments can use this endpoint.
Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.

```js
octokit.rest.actions.reviewPendingDeploymentsForRun({
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/generated/endpoints.json
Expand Up @@ -5991,7 +5991,7 @@
"isDeprecated": false,
"deprecationDate": null,
"removalDate": null,
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.",
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
"documentationUrl": "https://docs.github.com/rest/reference/actions#review-pending-deployments-for-a-workflow-run",
"previews": [],
"headers": [],
Expand Down
2 changes: 1 addition & 1 deletion src/generated/method-types.ts
Expand Up @@ -1454,7 +1454,7 @@ export type RestEndpointMethods = {
/**
* Approve or reject pending deployments that are waiting on approval by a required reviewer.
*
* Anyone with read access to the repository contents and deployments can use this endpoint.
* Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
*/
reviewPendingDeploymentsForRun: {
(
Expand Down

0 comments on commit 015cabe

Please sign in to comment.