Github API - Test Config

PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews
repos

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's products in the GitHub Help documentation.

Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.

Note: Passing new arrays of users and teams replaces their previous values.
Update pull request review protection

Arguments
key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key branch

branch [scalar]

The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json protected-branch-pull-request-review

protected-branch-pull-request-review [object]

Protected Branch Pull Request Review

Attributes
bypass_pull_request_allowances 2065

Allow specific users, teams, or apps to bypass pull request requirements.

dismiss_stale_reviews boolean

dismissal_restrictions 2066

require_code_owner_reviews boolean

require_last_push_approval boolean

Whether the most recent push must be approved by someone other than the person who pushed it.

required_approving_review_count integer

url string

API:
Github Open API
(version: 1.1.4)
422 validation_failed

validation_failed [scalar]

Validation failed, or the endpoint has been spammed.

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)