Skip to content

Commit ee01a3e

Browse files
chore(check): add a minimal check script to iterate on commit
This is clearly a stub :)
1 parent 7b3361a commit ee01a3e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Behind the hood, the script use `git log` to list all the commit thus any syntax
184184

185185
See the [open issues](https://github.com/lumapps/commit-msg-validator/issues) for a list of proposed features (and known issues).
186186

187-
- [ ] list all the commit a run on each
187+
- [x] list all the commit, and run validation on each
188188
- [ ] enforce the overall commit message structure
189189
- [ ] enforce the overall commit header structure
190190
- [ ] enforce the overall commit header lenght

check.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash -e
2+
3+
COMMITS=`git log --no-merges --pretty="%H" --no-decorate $1`
4+
5+
while IFS= read -r COMMIT
6+
do
7+
MESSAGE=`git log -1 --pretty='%B' $COMMIT`
8+
echo "$MESSAGE"
9+
done <<< $COMMITS
10+
11+
echo "All commits succesfully checked"

0 commit comments

Comments
 (0)