Skip to content

Commit d832a9b

Browse files
author
Zvi Fried
committed
ci: remove commit message validation blocking PRs
1 parent 7eb9c06 commit d832a9b

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

.github/workflows/validate-conventions.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,4 @@ jobs:
2727
exit 1
2828
fi
2929
30-
validate-commit-messages:
31-
name: Validate Commit Messages
32-
runs-on: ubuntu-latest
33-
if: github.event_name == 'pull_request'
34-
35-
steps:
36-
- name: Checkout code
37-
uses: actions/checkout@v5
38-
with:
39-
fetch-depth: 0
40-
41-
- name: Validate commit messages
42-
run: |
43-
# Get commits in this PR
44-
base_sha="${{ github.event.pull_request.base.sha }}"
45-
head_sha="${{ github.event.pull_request.head.sha }}"
46-
47-
echo "Validating commits from $base_sha to $head_sha"
48-
49-
# Get commit messages
50-
commits=$(git rev-list --reverse $base_sha..$head_sha)
51-
52-
for commit in $commits; do
53-
message=$(git log --format=%s -n 1 $commit)
54-
echo "Checking commit: $commit - $message"
55-
56-
# Check if commit message follows conventional commits format
57-
if [[ $message =~ ^(feat|fix|docs|style|refactor|perf|test|chore|ci|build)(\(.+\))?:\ .+ ]]; then
58-
echo "✅ Commit message follows conventional commits format"
59-
else
60-
echo "❌ Commit message must follow conventional commits format:"
61-
echo " type(scope): description"
62-
echo " Where type is one of: feat, fix, docs, style, refactor, perf, test, chore, ci, build"
63-
echo " Current message: $message"
64-
exit 1
65-
fi
66-
done
30+

0 commit comments

Comments
 (0)