fix(board): resolve comments #1155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Branch Name Check | |
on: | |
push: | |
branches-ignore: | |
- main | |
- staging | |
- production | |
jobs: | |
check-branch-name: | |
name: Check branch name | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check branch name | |
run: | | |
BRANCH_NAME=${GITHUB_REF#refs/heads/} | |
if ! [[ $BRANCH_NAME =~ ^(feature|feat|fix|bugfix|hotfix|release|chore|docs|style|refactor|perf|dependabot)/.+ ]]; then | |
echo "❌ Branch name '$BRANCH_NAME' doesn't follow the conventional branch format." | |
echo "Branch name should be in format: type/description" | |
echo "Allowed types: feature, feat, fix, bugfix, hotfix, release, chore, docs, style, refactor, perf, dependabot" | |
exit 1 | |
else | |
echo "✅ Branch name follows convention: $BRANCH_NAME" | |
fi |