CI: allow PRs for CONTRIBUTING.md and README.md files
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 29 Nov 2023 08:13:18 +0000 (09:13 +0100)
committerRosen Penev <rosenp@gmail.com>
Fri, 1 Dec 2023 23:13:42 +0000 (15:13 -0800)
Also grep for CONTRIBUTING.md and README.md in the subject.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
.github/workflows/formal.yml

index b3f824c524c4d3e619c7634f8d62cfd1a071edcc..1447a395991e5751759179dd08893a1dc09bcd73 100644 (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)"