{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","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.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"run_id":{"type":"integer","description":"The unique identifier of the workflow run."}},"required":["owner","repo","run_id"],"additionalProperties":false},"body":{"type":"object","properties":{"environment_ids":{"type":"array","description":"The list of environment ids to approve or reject","items":{"type":"integer","examples":[161171787]},"examples":[[161171787,161171795]]},"state":{"type":"string","description":"Whether to approve or reject deployment to the specified environments.","enum":["approved","rejected"],"examples":["approved"]},"comment":{"type":"string","description":"A comment to accompany the deployment review","examples":["Ship it!"]}},"required":["environment_ids","state","comment"],"examples":[{"environment_ids":[161171787],"state":"approved","comment":"Ship it!"}]}},"required":["path","body"],"additionalProperties":false},"name":"Review pending deployments for a workflow run","id":"github.actions.review-pending-deployments-for-run","example":{"path":{"owner":"octocat","repo":"hello-world","run_id":1},"body":{"environment_ids":[161171787],"state":"approved","comment":"Ship it!"}},"maxRequests":1,"summary":false}}