/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_ruleReview custom deployment protection rules
Submits an approval or rejection for a custom deployment protection rule associated with a workflow run. Provide environment_name and either a comment or a state of approved or rejected, depending on the review form you use. GitHub Apps can review only their own custom deployment protection rules; use POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments for reviews assigned to a person or team.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A review for a custom deployment protection rule, using either a comment-only form or an approval or rejection form.
environment_name is required in every request. The body must match one of two forms: include comment when state is omitted, or include state set to approved or rejected; comment is optional in the latter form.
Was this helpful?