- This action makes sure the current branch tries to merge into the right base branch on pull request
- What's right is based on git-flow branching strategy
Name | Required | Description | Default |
---|---|---|---|
githubToken |
✅ | Github Token that has access to repository | - |
mainBranch |
Branch name for production releases | "main" |
|
devBranch |
Branch name for development | "develop" |
|
featureBranch |
Branch name prefix for feature | "feature" |
|
releaseBranch |
Branch name prefix for release | "release" |
|
hotfixBranch |
Branch name prefix for hotfix | "hotfix" |
|
prefixSeparator |
Branch name prefix separator | "/" |
on: [pull_request]
jobs:
check_branches_on_pr:
runs-on: ubuntu-latest
name: Check Branches on PR
steps:
- name: Check Branches on PR
uses: dramancompany/branch-guard@v1.0.0
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
$ pnpm build
$ git tag -am "v1.0.0" v1.0.0
$ git push --follow-tags