Actions71
- Branch Actions
- File Actions
- Group Actions
- Issue Actions
- Merge Request Actions
- Pipeline Actions
- Project Actions
- Raw API Actions
- Release Actions
- Tag Actions
Branch → Unprotect
AI-generatedSummary
Removes branch protection settings from a specified branch in a GitLab project.
Inputs
- authentication — Select whether to use saved credentials or custom fields (Optional, default: credential).
- server — Base URL of your GitLab instance, for example "https://gitlab.com" (Optional, default: https://gitlab.com).
- accessToken — Personal access token with API permissions (Optional).
- projectOwner — Namespace or owner of the project. Used when "Project Locator" is set to "Path" (Optional).
- projectName — Project slug or name. Used when "Project Locator" is set to "Path" (Optional).
- projectId — Numeric project ID. Used when "Project Locator" is set to "ID" (Optional, default: 0).
- projectLocator — Choose how to identify the project for project-scoped GitLab API endpoints (Optional, default: id).
- branch (required) — Branch name, for example 'feature/login'.
Output shape
A list of items containing the GitLab API response for the protected branch deletion.
Returns the GitLab API response (typically JSON) confirming the branch protection was removed. Returns an empty item on failure.
Examples
Example 1: Remove protection from a development branch to allow force pushes.
Set Resource to 'Branch', Operation to 'Unprotect', Project Locator to 'ID' (or Path), and specify the branch name.
Example 2: Unprotect a protected branch before merging it into the main branch.
Select 'Path' for Project Locator to identify the project by namespace/name, and enter the branch name.