GitHub · Capability
github-repos-api — Protections
github-repos-api — Protections. 15 operations. Lead operation: GitHub Get Branch Protection. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
GET
Getbranchprotection
— GitHub Get Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection
PUT
Updatebranchprotection
— GitHub Update Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection
DELETE
Deletebranchprotection
— GitHub Delete Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection
GET
Getadminbranchprotection
— GitHub Get Admin Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/enforce-admins
POST
Setadminbranchprotection
— GitHub Set Admin Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/enforce-admins
DELETE
Deleteadminbranchprotection
— GitHub Delete Admin Branch Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/enforce-admins
GET
Getpullrequestreviewprotection
— GitHub Get Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
PATCH
Updatepullrequestreviewprotection
— GitHub Update Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
DELETE
Deletepullrequestreviewprotection
— GitHub Delete Pull Request Review Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews
GET
Getcommitsignatureprotection
— GitHub Get Commit Signature Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-signatures
POST
Createcommitsignatureprotection
— GitHub Create Commit Signature Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-signatures
DELETE
Deletecommitsignatureprotection
— GitHub Delete Commit Signature Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-signatures
GET
Getstatuschecksprotection
— GitHub Get Status Checks Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
PATCH
Updatestatuscheckprotection
— GitHub Update Status Check Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
DELETE
Removestatuscheckprotection
— GitHub Remove Status Check Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
MCP Tools
github-get-branch-protection
GitHub Get Branch Protection
read-only
idempotent
github-update-branch-protection
GitHub Update Branch Protection
idempotent
github-delete-branch-protection
GitHub Delete Branch Protection
idempotent
github-get-admin-branch-protection
GitHub Get Admin Branch Protection
read-only
idempotent
github-set-admin-branch-protection
GitHub Set Admin Branch Protection
github-delete-admin-branch-protection
GitHub Delete Admin Branch Protection
idempotent
github-get-pull-request-review
GitHub Get Pull Request Review Protection
read-only
idempotent
github-update-pull-request-review
GitHub Update Pull Request Review Protection
idempotent
github-delete-pull-request-review
GitHub Delete Pull Request Review Protection
idempotent
github-get-commit-signature-protection
GitHub Get Commit Signature Protection
read-only
idempotent
github-create-commit-signature-protection
GitHub Create Commit Signature Protection
github-delete-commit-signature-protection
GitHub Delete Commit Signature Protection
idempotent
github-get-status-checks-protection
GitHub Get Status Checks Protection
read-only
idempotent
github-update-status-check-protection
GitHub Update Status Check Protection
idempotent
github-remove-status-check-protection
GitHub Remove Status Check Protection
idempotent