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