diff --git a/.github/workflows/commit-message.yml b/.github/workflows/commit-message.yml index cf6dff2..6ce4f57 100644 --- a/.github/workflows/commit-message.yml +++ b/.github/workflows/commit-message.yml @@ -11,7 +11,6 @@ permissions: jobs: validate-commit-messages: name: Validate commit messages - if: github.actor != 'dependabot[bot]' runs-on: ubuntu-latest steps: @@ -24,7 +23,7 @@ jobs: - name: Validate commit message shell: bash run: | - pattern='^(feat|fix|docs|style|refactor|test|chore|ci|build|perf)\(#[0-9]+\): .{1,50}$' + pattern='^((feat|fix|docs|style|refactor|test|chore|ci|build|perf)\(#[0-9]+\): .{1,50}|chore\(deps\): .{1,72})$' invalid=0 while IFS= read -r commit_message; do @@ -45,6 +44,7 @@ jobs: echo "" echo "Expected format:" echo " feat(#1): add feature" + echo " chore(#5): add a file to .gitignore" echo "" echo "Allowed types:" echo " feat, fix, docs, style, refactor, test, chore, ci, build, perf"