infamous-riddles/Branch Guardian

Create and/or delete branch protection rules based on a supplied branch pattern.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Apr 4, 2022
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: infamous-riddles/branch-guardian@4aa8d860752b63edc2ff1ec1c7c74034e471e5e4 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
BASE-BRANCH-PATTERNThe pattern of the base branch
PERSONAL-ACCESS-TOKENPersonal access token to read branch protection rules
RULES-LIMITThe number of branch protection rules to check in order to find and delete100
REQUIRED-NUMBER-OF-REVIEWERSThe number of required reviewers when creating a branch protection rule1
REQUIRED-STATUS-CHECKSThe status check that need to be successful before a PR can be merged.
REQUIRE-REVIEW-FROM-CODEOWNERSSet to true if you need to require an approved review in pull requests including files with a designated code owner.false
DISMISS-STALE-PR-APPROVALS-ON-NEW-COMMITSSet to true if you need new reviewable commits pushed to a matching branch to dismiss pull request review approvals.false
REQUIRE-LINEAR-HISTORYSet to true if you need linear history on your Pull Requests.false
ALLOW-FORCE-PUSHESSet to true if you want to permit force pushes for all users with push access.false
ALLOW-DELETIONSSet to true if you want to allow users with push access to delete matching branches.false
INCLUDE-ADMINISTRATORSSet to true if you want to enforce all configured restrictions for administrators, as well.false
RESTRICTIONS-USERSList of users allowed to push on the protected branch.""
RESTRICTIONS-TEAMSList of teams allowed to push on the protected branch.""
RESTRICTIONS-APPSList of apps allowed to push on the protected branch.""

no outputs