Skip to content

Commit bc20cb5

Browse files
committed
Check all messages in the branch
Check the messages of all the commits in the branch we are about to merge to master.
1 parent a2d5ac9 commit bc20cb5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

multiple_commits.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -eu
3+
4+
commits_since_master=$(git rev-list HEAD ^master)
5+
6+
while read -r commit_hash; do
7+
commit_message="$(git log --format=%B -n 1 $commit_hash)"
8+
python3 bad_commit_message_blocker.py --message "$commit_message"
9+
done <<< "$commits_since_master"

0 commit comments

Comments
 (0)