GitLab CI/CD · Capability
GitLab API — protected_branches
GitLab API — protected_branches. 5 operations. Lead operation: protected_branches. Self-contained Naftiko capability covering one Gitlab Ci business surface.
What You Can Do
GET
Getapiv4projectsidprotectedbranches
— Get a project's protected branches
/v1/api/v4/projects/{id}/protected-branches
POST
Postapiv4projectsidprotectedbranches
— Protect a single branch
/v1/api/v4/projects/{id}/protected-branches
GET
Getapiv4projectsidprotectedbranchesname
— Get a single protected branch
/v1/api/v4/projects/{id}/protected-branches/{name}
PATCH
Patchapiv4projectsidprotectedbranchesname
— Update a protected branch
/v1/api/v4/projects/{id}/protected-branches/{name}
DELETE
Deleteapiv4projectsidprotectedbranchesname
— Unprotect a single branch
/v1/api/v4/projects/{id}/protected-branches/{name}
MCP Tools
get-project-s-protected-branches
Get a project's protected branches
read-only
idempotent
protect-single-branch
Protect a single branch
get-single-protected-branch
Get a single protected branch
read-only
idempotent
update-protected-branch
Update a protected branch
idempotent
unprotect-single-branch
Unprotect a single branch
idempotent