GitHub · Capability
github-repos-api — Branches
github-repos-api — Branches. 11 operations. Lead operation: GitHub Get Branch. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
GET
Getbranch
— GitHub Get Branch
/v1/repos/{owner}/{repo}/branches/{branch}
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
Getappswithaccesstotheprotectedbranch
— GitHub Get Apps with Access to the Protected Branch
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
GET
Getteamswithaccesstotheprotectedbranch
— GitHub Get Teams with Access to the Protected Branch
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
GET
Getuserswithaccesstotheprotectedbranch
— GitHub Get Users with Access to the Protected Branch
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
POST
Renamebranch
— GitHub Rename Branch
/v1/repos/{owner}/{repo}/branches/{branch}/rename
MCP Tools
github-get-branch
GitHub Get Branch
read-only
idempotent
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-apps-access-protected
GitHub Get Apps with Access to the Protected Branch
read-only
idempotent
github-get-teams-access-protected
GitHub Get Teams with Access to the Protected Branch
read-only
idempotent
github-get-users-access-protected
GitHub Get Users with Access to the Protected Branch
read-only
idempotent
github-rename-branch
GitHub Rename Branch