Aident logoAident logo centerAident Loadout
Use CasesPricingDocs
ENStart Now
AppsGitHub ToolsGithub Update Branch Protection
GitHub Tools

Github Update Branch Protection

Updates the protection settings for an existing branch in a repository, which must not contain wildcard characters.

Write actionRisk level 2 of 5OAuth connection
Use Github Update Branch Protection

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

  • repostring
    Required
    The name of the repository, without the `.git` extension (not case-sensitive).
  • ownerstring
    Required
    The account owner of the repository (not case-sensitive).
  • branchstring
    Required
    Name of the branch to protect; wildcard characters are not allowed (use GraphQL API for wildcard support).
  • lock_branchboolean
    If `True`, sets the branch to read-only, preventing pushes.
  • enforce_adminsboolean
    Enforces configured restrictions for repository administrators. Set to `True` to enforce for admins, or `None`/`null` to disable.
  • allow_deletionsboolean
    Allows deletion of the protected branch.
  • block_creationsboolean
    If `True`, push restrictions also apply to creating matching new branches, unless pusher has explicit push access.
  • allow_force_pushesboolean
    Permits force pushes to the protected branch. Set to `True` to allow, `None`/`null` to block.
  • allow_fork_syncingboolean
    Allows users to pull upstream changes into their fork when the branch is locked.
  • restrictions__appsarray
    App `slug`s with push access. Cannot be used with `restrictions_users` or `restrictions_teams`. Empty list removes all.
  • restrictions__teamsarray
    Team `slug`s with push access. Cannot be used with `restrictions_apps` or `restrictions_users`. Empty list removes all.
  • restrictions__usersarray
    User `login`s with push access. Cannot be used with `restrictions_apps` or `restrictions_teams`. Empty list removes all.

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.