Github Action for check PR base branch against spec
Required Json definition for allowed base branch for given PR branch.
Example:
{
"develop": ["feature/.*", "hotfix/.*","release/.*"],
"main": "(hotfix|release)/.*"
}
Ignored base branch name list
uses: leonardo-ornelas/check-PR-base-branch-action@main
with:
spec: >
{
"develop": ["feature/.*", "hotfix/.*","release/.*"],
"main": "(hotfix|release)/.*"
}