CI: allow PRs for CONTRIBUTING.md and README.md files

Also grep for CONTRIBUTING.md and README.md in the subject.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
Yegor Yefremov authored and Rosen Penev committed 2023-12-01 15:13:42 -08:00
1 parent 661a22c594
commit 13553e6641
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
fi
subject="$(git show -s --format=%s $commit)"
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert ' -e '^CONTRIBUTING.md' -e '^README.md'; then
success "Commit subject line seems ok ($subject)"
else
err "Commit subject line MUST start with '<package name>: ' ($subject)"