Skip to main content

github.branchprotection

Description

GitHub repository branch protection

Fields

IDTYPEDESCRIPTION
idstringRepository branch protection ID
requiredStatusChecksdictRequire status checks to pass before merging
requiredPullRequestReviewsdictRequire a pull request before merging
requiredConversationResolutiondictRequire conversation resolution before merging
requiredSignaturesboolWhether signed commits are required
requireLinearHistorydictRequire linear history
enforceAdminsdictInclude administrators
restrictionsdictRestrict who can push to matching branches
allowForcePushesdictAllow force pushes
allowDeletionsdictAllow deletions