[openwrt/openwrt] CI: allow dots in commit subject area
LEDE Commits
lede-commits at lists.infradead.org
Thu Feb 24 07:41:07 PST 2022
aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fb5d0dc362e5206dbedb694dbe27953582eb887b
commit fb5d0dc362e5206dbedb694dbe27953582eb887b
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Wed Feb 23 19:51:43 2022 +0100
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 <mail at aparcar.org>
---
.github/workflows/formal.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 '<area>: ' ($subject)"
More information about the lede-commits
mailing list