From: Paul Spooren Date: Wed, 23 Feb 2022 18:51:43 +0000 (+0100) Subject: CI: allow dots in commit subject area X-Git-Tag: v21.02.6~98 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6d4d665147b2e9628494a64612c510f641d11337;p=openwrt%2Fstaging%2Fhauke.git CI: allow dots in commit subject area Due to a limited grep pattern, subjects containing dots like `image.mk` were falsely reported as problematic. Extend pattern to allow dots. Signed-off-by: Paul Spooren (cherry picked from commit fb5d0dc362e5206dbedb694dbe27953582eb887b) --- diff --git a/.github/workflows/formal.yml b/.github/workflows/formal.yml index 74e8fd6942..5046b5a180 100644 --- a/.github/workflows/formal.yml +++ b/.github/workflows/formal.yml @@ -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 '; then success "Commit subject line seems ok ($subject)" else err "Commit subject line MUST start with ': ' ($subject)"