Aident logoAident logo centerAident Loadout
Use CasesPricingDocs
ENStart Now
AppsGitLab ToolsGitlab Protect Branch
GitLab Tools

Gitlab Protect Branch

Protects a repository branch in a GitLab project by setting access controls for push, merge, and unprotect operations. Use this action when you need to enforce branch protection rules to prevent unauthorized modifications or deletions of important branches like main, master, or…

Write actionRisk level 2 of 5OAuth connection
Use Gitlab Protect Branch

Pricing and limits

Aident logo

Product

Aident LoadoutAident Playbook EditorOpen-CUAK

About

AppsSkillsUse CasesDocsBlogPricingDownloadsPrivacy PolicyTerms of Service

Alternatives

vs Composiovs Zapier
llms.txtGet an AI summary of Aident LoadoutSummarize with ChatGPTSummarize with ClaudeSummarize with GeminiSummarize with Perplexity

© Aident Labs, 2024-2026

Pricing
Free
Unified payment
Not currently supported

Inputs

  • namestring
    Required
    The name of the branch or wildcard pattern to protect
  • project_id
    Required
    The ID or URL-encoded path of the project
  • allowed_to_pusharray
    Array of access levels allowed to push, with each described by a hash of user_id, group_id, deploy_key_id, or access_level (Premium/Ultimate only)
  • allow_force_pushboolean
    When enabled, members who can push to this branch can also force push
  • allowed_to_mergearray
    Array of access levels allowed to merge, with each described by a hash of user_id, group_id, or access_level (Premium/Ultimate only)
  • push_access_levelinteger
    Default access level allowed to push. Valid values: 0 (No access), 30 (Developer), 40 (Maintainer, default), 60 (Admin)
  • merge_access_levelinteger
    Default access level allowed to merge. Valid values: 0 (No access), 30 (Developer), 40 (Maintainer, default), 60 (Admin)
  • allowed_to_unprotectarray
    Array of access levels allowed to unprotect, with each described by a hash of user_id, group_id, or access_level (Premium/Ultimate only)
  • unprotect_access_levelinteger
    Default access level allowed to unprotect. Valid values: 30 (Developer), 40 (Maintainer, default), 60 (Admin)
  • code_owner_approval_requiredboolean
    Prevent pushes to this branch if it matches an item in the CODEOWNERS file (Premium and Ultimate only)

Observable output

  • data
    Required
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    Required
    Whether or not the action execution was successful or not

Skills that use this Action

Related use cases

No verified related use cases are linked yet.

Official source

Provider source

Skills that use this Action

No published Skills explicitly reference this Action yet.