Skip to content

Commit 7b8cb50

Browse files
committed
fix(comitlint config): config
1 parent 0fb8c09 commit 7b8cb50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
2121
echo "Validating branch name: $BRANCH_NAME"
2222
23-
if [[ "$BRANCH_NAME" =~ ^(feat|fix|bugfix|hotfix|build|chore|ci|docs|perf|refactor|revert|style|test)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]]; then
23+
if [[ "$BRANCH_NAME" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|sample|security|config|bugfix|hotfix)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]]; then
2424
echo "✅ Branch name is valid"
2525
else
2626
echo "❌ Invalid branch name: $BRANCH_NAME"
2727
echo "Branch names must follow one of the allowed prefixes:"
28-
echo " feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*"
28+
echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
2929
exit 1
3030
fi
3131
#continue-on-error: true
@@ -39,8 +39,11 @@ jobs:
3939
with:
4040
fetch-depth: 0
4141
- uses: wagoid/commitlint-github-action@v5
42+
with:
43+
configFile: .commitlintrc.json
4244
#continue-on-error: true #we dont want to package etc if bad commits also pre-commit preferred
4345

46+
4447
gitguardian-scan:
4548
runs-on: ubuntu-latest
4649
if: success() || failure()

0 commit comments

Comments
 (0)