Skip to content
check-circle

GitHub Action

Check PR base branch

v0.0 Pre-release

Check PR base branch

check-circle

Check PR base branch

Github Action for check base branch on PR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Check PR base branch

uses: leonardo-ornelas/[email protected]

Learn more about this action in leonardo-ornelas/check-PR-base-branch-action

Choose a version

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)/.*"
    }