Skip to content

leonardo-ornelas/check-PR-base-branch-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Check PR base branch against spec

Github Action for check PR base branch against spec

Inputs

spec

Required Json definition for allowed base branch for given PR branch.

Example:

    {
    "develop": ["feature/.*", "hotfix/.*","release/.*"],
    "main": "(hotfix|release)/.*"
    }

ignore

Ignored base branch name list

Example usage

uses: leonardo-ornelas/check-PR-base-branch-action@main
with:
  spec: >
    {
    "develop": ["feature/.*", "hotfix/.*","release/.*"],
    "main": "(hotfix|release)/.*"
    }

About

Enforce base branch validation on PR

Resources

Stars

Watchers

Forks

Packages

No packages published